I am trying to use psexec in a vbscript to register a dll on remote machines. The below syntax does not appear to be working. Can you suggest what is wrong with the syntax?
strFile = " \\" & strComputer & " "
Set wshShell = CreateObject("WScript.Shell")
intRegister = wshShell.Run("C:\temp\pstools\psexec.exe" & strFile & "regsrv32.exe /s c:\winnt\system32\some.dll")
Any help would be greatly appreciated.