Home » Posts tagged 'server 2012'

Tag Archives: server 2012

Backup your Server Roles and Features

The following short script gathers the installed roles and features on a server and outputs them to PowerShell script that can be used to redeploy them on another server. This can be useful during migration scenarios or when you need to deploy an additional server with the same requirements.

Copy the below code and save it as a ps1 file.


Server 2012 Network Issue / Bug. “No Internet Access”

Using Windows Server 2012 I have seen a weird issue with the network adapter several times using mainly Hyper-V and VMWare as hypervisors and the problem server being a virtual machine guest.

When you set a static IP and DNS your server may fail to ping outside its LAN. You check and double check the settings and you have all the correct DNS subnet and Gateway Settings, yet you cannot ping a simple website such as Google.

When I check the routing table on the server I notice a persistent route for mask via the local IP address of the server. I also noticed another non persistent route for mask ON-LINK via gateway ip address of the server.

These two routes are your problem.

The best way I have found to resolve this issue is to run this command in elevated command prompt

route delete

This will remove all default routes from the routing table. Then just add a persistent route for to route via the default gateway address like this

route add mask /p

Your server should now start behaving properly

%d bloggers like this: