troubleshooting Question

Why is my Windows Service getting deleted after a Windows Update on Win 10

Avatar of RXGeorge
RXGeorge asked on
Windows 10* Windows UpdatesWindows OSAzure
7 Comments1 Solution144 ViewsLast Modified:
I am running a Windows 10 virtual machine on Azure.   I have deployed my application using  simple copy file approach (not MSI).   After which, i am successfully creating the service using SC.exe as follows:

sc create "VNCServer.Service" binPath="C:\server\VNCServer.exe"

net start "VNCServer.Service"

sc config "VNCServer.Service" start= auto  

Everything works as expected for weeks (including many reboots) until the next Windows update is taken.  After taking the Windows update, the service appears to have been deleted.  I need to rerun the script above to create the service each time a windows update occurs.

What is happening here?  What can I do?
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros