BUG: wuauserv state not verified if not English OS
Posted: 11.08.2017, 19:22
Hi! I recently started using wsusoffline and while implementing, I discovered a bug.
In the :WaitService section of client's DoUpdate.cmd, there is this line:
The problem is that the output of sc.exe is language dependant. My OS is in Spanish, so I had to change "STAT" to "ESTADO" for example, otherwise it would hang for 3 minutes everytime it wants to stop wuauserv.
To be sincere, I have no idea how to make it language independent, but still I wanted to let you know.
Best regards.
In the :WaitService section of client's DoUpdate.cmd, there is this line:
- Code: Select all
for /F "tokens=4" %%j in ('%SystemRoot%\System32\sc.exe query %1 2^>nul ^| %SystemRoot%\System32\find.exe /I "STAT"') do (
The problem is that the output of sc.exe is language dependant. My OS is in Spanish, so I had to change "STAT" to "ESTADO" for example, otherwise it would hang for 3 minutes everytime it wants to stop wuauserv.
To be sincere, I have no idea how to make it language independent, but still I wanted to let you know.
Best regards.