Avatar of RXGeorge
RXGeorge
 asked on

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

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?
Windows 10* Windows UpdatesWindows OSAzure

Avatar of undefined
Last Comment
McKnife

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RXGeorge

ASKER
Not sure how to confirm that this is the answer.  It will take time to know if this is the right solution.  I hope it is, but cannot confirm until we get a few more updates to OS.
McKnife

Take a test installation with windows 10 v1703, create that service, do an inplace upgrade to version v1709 and see if the service remains there. Of course you might be running other builds of windows 10, take those that you use.
McKnife

RXGeorge, it is not that hard to try. Please return with feedback or this will be deleted.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
RXGeorge

ASKER
Thanks
RXGeorge

ASKER
Your answer was correct.  It appears.  Thanks very much.
McKnife

You are welcome.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.