Ok, let’s see if I got your point….

First I created a tok file as this:

runnas /user:domain\clientadm "MsiExec.exe /i \\Appserv\StandardApps\Acdsee\Acdess.msi /quiet" /password:silentadm /tok:Test.tok /allowargs

Now I have Test.tok. I copied both Runnas.exe and Test.tok to target PC root.
Then I execute it with RemoteExec()

$rc = RemoteExec('cmd /c c:\Runnas.exe Test.tok’, $computer)

Should this work? It doesn’t.

I tried to perform it manually on target PC console:
c:\Runnas.exe Test.tok

It’s not working!

What I’m doing wrong?