Tuesday, September 30, 2014

Windows 2012 Server Core: How To Disable And Enable TCP/IPv6?

Internet Protocol Version 6 (TCP/IPv6) has not been implemented in our environment.  For server’s network adapters, we would usually disable TCP/IPv6.

At the Powershell prompt, issue the below command to disable TCP/IPv6 for network adapter NIC2:
PS C:\> Disable-NetAdapterBinding -InterfaceAlias NIC2 –ComponentID ms_tcpip6

If the TCP/IPv6 is disabled, you will get this error message when configuring an IP address using SCONFIG:
C:\Windows\System32\en-US\sconfig.vbs(696, 21) SWbemObjectEx: Invalid index.

At the Powershell prompt, issue the below command to enable TCP/IPv6 for network adapter NIC2:
PS C:\> Enable-NetAdapterBinding -InterfaceAlias NIC2 –ComponentID ms_tcpip6

Windows 2012 Server Core: How To Uninstall A Program?

We would like to uninstall a program but we are not able to do it as Server Core does not have the add/remove program feature.

To uninstall a program in Server Core, we have to do the following steps:

1.     Open Editor (Start > Run > regedit).

2.     Navigate to 
             HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL

or
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL.  

3.     Search through the registry entries to look for the program you intend to uninstall.

4.     Look for the “UninstallString” and note down the registry value.  This value will be used as commandline.

5.     Open a command prompt and run the above copied registry value.  It will start to uninstall the intended program.

6.     Navigate back to the registry keys mentioned in step and you will notice that the registry entries you found earlier are no longer there.  Those program files residing in the hard-disk are also gone.

7.     Exit Registry Editor.