Windows Server 2016

Windows Server 2016 Hyper-V Server Core Uninstall Programs

When it comes to Windows Server 2016 Hyper-V Server Core Uninstall Programs we need to utilize the registry and the command line to remove programs

If you are working with Windows Server 2016 Hyper-V Server Core and need to uninstall programs, there is no GUI or built in menu to do this with theย sconfig utility. ย However using a remote registry connection and looking at the uninstall string of the application we want to remove, this is easily accomplished. ย So let’s look at accomplishing this topic ofย Windows Server 2016 Hyper-V Server Core Uninstall Programs.

Windows Server 2016 Hyper-V Server Core Uninstall Programs

The first thing we want to do from a remote workstation is connect to the registry of our Windows Server 2016 Hyper-V Server Core node and find the uninstall string that is associated with the program we want to remove. ย The uninstall string is in the format of using theย MsiExec.exe command and theย GUID identifier of the application that is installed. ย So we can use this uninstall string via the commandline to uninstall a program.

Connecting to Windows 2016 Server Hyper-V Server Core

You may need to disable the firewall temporarily so you can connect via a remote registry connection. ย To do this easily simply run the following command.

netsh advfirewall set allprofiles state off

Now we can connect via the registry editor from a workstation with connectivity to the Server Core server. ย You will need to navigate to the following registry location:

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionUninstall

Look for the program you want to uninstall. ย There should be anย UninstallString value that contains the command we are interested in.

coreun01

Double click the registry value to have an easy way to copy the command.

coreun02

Now we can remote to our Windows Server 2016 Hyper-V Server Core host and exit out to the command line. ย After doing that, we can simply paste in the uninstall string command like so.

coreun03

The program will then uninstall as any uninstaller would do in the GUI version of Windows Server 2016.

Thoughts

We have to do a little more work with Windows Server 2016 Hyper-V Server Core Uninstall Programs. ย Using the remote registry and looking at the uninstall string that is contained therein for the program that you want to uninstall, we can easily take care of removing installed programs

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.