… ok dudes … back to the subject, if you don’t mind…

Now I’m completely lost…. Don’t really know how to use remoteexec() and RUNNAS together ….

Doc suggested to “Pushing a tokenized script and batch file with Shawn's RUNNAS…”
I tired and done some tests.. no success so far… getting dizzy on this…
Could some give me a hand to solve this?

The subject is still to remotely execute this: “MsiExec.exe /i \\Appserv\StandardApps\Acdsee\Acdess.msi /quiet” - on a remote client using both remoteexec() udf and Shawn’s RUNNAS.

The “msi.bat” contains this: “MsiExec.exe /i \\Appserv\StandardApps\Acdsee\Acdess.msi /quiet”

$computer = "172.60.10.10"
$RemotePath = “\\172.60.10.10\c$\winnt\temp\”

Copy "msi.bat" $RemotePath /C

$rc = RemoteExec('cmd /c c:\Winnt\Temp\msi.bat', $computer)