I know this topic has been discussed many times, but I have not found a solution to my problem.
I have just refueled several PCs with a new image of the latest version of Windows10 Enterprise N 2021 LTSC. Unfortunately, the FOGService is not switched from disabled.
I am using FOG Server version 126.96.36.199 and FOG Client version 0.12.1.
In audit mode I have created the file setupcomplete.cmd under C:\Windows\Setup\Scripts, since it contains other commands to clean up I know this will be executed.
Before closing via Sysprep I have set the FOGService to disabled and via the setupcomplete.cmd the service should later be set back to delayed start which unfortunately does not work. I also tried it with automatic start without delay, as well as without the blank between the start=delayed-auto or start=auto. But this is not the error.
I tested the command on an installed client and in the normal CMD I get the error:
[SC] OpenService ERROR 5:
Same by using the net start command.
Only when I start the CMD with administrator right the command works.
Has anything changed here with Windows10 in Enterprise?
I don’t know if it’s important or interesting, but on one of 16 PCs the FOGService wasn’t to be found under the services although the PC was fueled with the same image.
Here is the content of my setupcomplete.cmd:
del /Q /F c:\windows\system32\sysprep\unattend.xml
del /Q /F c:\windows\panther\unattend.xml
sc config FOGService start= delayed-auto
net start FOGService