No. The remote computer does not execute the script so it does not need access to the script files and/or kix32.exe and/or wkix32.exe.

This should work.
The registry key and the computer names should be changed to fit your setup and the fnWMIService - Use the Win32_Service class of WMI to control services UDF must be included in the script or called from the script. Do not use shell because it executes on the local computer and therefore does not touch the remote computer and is of no use to you.

Code:

;Set the option to cancel the script withour beeing logged off
;when it does NOT Run as a logonscript.
If NOT @LOGONMODE
Break on
EndIf

;Put all computers into an array.
$sComputers = Split("computer1~computer2", "~")
$key = "put the registrykey here"

;Execute the command bellow on each computewr from the array filled above.
For Each $sComputer In $sComputers
;Delete the registry keys.
$Nul = DelValue("\\"+$sComputer+"\"+$Key,'AccountDomainSid')
?@ERROR
?@SERROR
Sleep 2
$Nul = DelValue("\\"+$sComputer+"\"+$Key,'PingID')
?@ERROR
?@SERROR
Sleep 2
$Nul = DelValue("\\"$sComputer+"\"+$Key,'SusClientId')
?@ERROR
?@SERROR
Sleep 2
;Stop and start the windows update service so new stuff gets initialized.
$Nul = fnWMIService('wuauserv','stop',$sComputer)
$Nul = fnWMIService('wuauserv','start',$sComputer)
Next



Edited by Mart (2006-09-27 08:32 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.