存成SUSClientID.bat檔,利用ad指派
==============================================================
@echo off
if exist %systemdrive%\SUSClientID.log goto end
net stop wuauserv
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f > %systemdrive%\SUSClientID.log 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f >> %systemdrive%\SUSClientID.log 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f >> %systemdrive%\SUSClientID.log 2>&1
net start wuauserv
wuauclt.exe /resetauthorization /detectnow
:end
exit
==============================================================
參考資料: http://support.microsoft.com/kb/903262/zh-tw
http://gallery.technet.microsoft.com/scriptcenter/9faf2085-f8ca-4799-8d45-b0e654da71f7
http://teacher.syset.com/viewtopic.mspx?t=3094&sid=ff59ab584a7a3aab92809df30fad30b4
http://msmvps.com/blogs/athif/pages/66376.aspx
沒有留言:
張貼留言