Page 1 of 1

[RESOLVED] WSUS ID

Published: June 28, 2018 - 08:50
by vbirault
Good morning,
WAPT 1.5 server on Debian 9.4
Technical position in W7x64
We need to renew the WSUS IDs so that all the workstations appear in the console.
We found a script for this:

Code: Select all

@Echo off
if exist %systemdrive%\SUSClientID.log goto end
net stop wuauserv
net stop bits
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /va /f  > %systemdrive%\SUSClientID.log
net start wuauserv
wuauclt.exe /resetauthorization /detectnow         
:end
exit
It works when launched directly on the test machine, but when launched via pyscripter with a run command, the keys do not clear and I get an error message: 'wuauclt.exe' is not recognized as an internal command.
What are the differences between the two? Encoding issues? Rights issues?
Thank you in advance for your help.

Re: WSUS ID

Published: June 28, 2018 - 7:35 PM
by sfonteneau

Code: Select all

with disable_file_system_redirection():
	run('wsus.bat')

Re: WSUS ID

Published: June 29, 2018 - 08:21
by vbirault
Hello,
thanks to you the package is now working.
Thank you for your help.