Hi there!

With WMI:
-I can, run a process remotely as myself[impersonate].
-I can, run a process remotely as another user.
-I CANNOT run a process remotely as anyone that interacts with any resources outside of the remote box! My head hurts! [Mad]

*Remotely as myself
code:
  
Break On
$RemoteBox = "your remote hostname here" ;No \\
$ServerShr = "\\Server\share"

$RCommand = "cmd /c Dir C:\>c:\output.txt & pause" ;Local Command
;$RCommand = "cmd /c Dir C:\>$ServerShr\output.txt & pause" ;Remote Command Fails

$Connect = GetObject("winmgmts:{impersonationLevel=impersonate}!//$RemoteBox/root/cimv2:Win32_Process")
? @serror
$Process = $Connect.Create($RCommand)
? @serror

If NOT $Process
? "Process executed successfully!"
Else
? "Process failed..."
EndIf

$Connect=""
$Process=""

:END

*Remotely as any user with local admin rights
code:
  
Break On
$RemoteBox = "your remote hostname here" ;No \\
$ServerShr = "\\Server\share"
$ID = "Domain\UserID" ; Use any account with local admin rights
$PW = "Password" ; Obvious security concerns

$RCommand = "cmd /c Dir C:\>c:\output.txt & pause" ;Local Command works
;$RCommand = "cmd /c Dir C:\>$ServerShr\output.txt & pause" ;Remote Command fails

$Connect = CreateObject("WbemScripting.SWbemLocator")
? @serror
$Con2 = $Connect.ConnectServer("$remotebox","root\cimv2","$ID","$PW")
? @serror
$Con3 = $Con2.Get("Win32_Process")
? @serror
$Process = $Con3.Create($RCommand)
? @serror

If NOT $Process
? "Process executed successfully!"
Else
? "Process failed..."
EndIf

$Connect=""
$Process=""
$Con2=""
$Con3=""

:END

Switch the $Commands, in both cases the remote fails... I have been upside down the SDK and the MSDN. I beg of someone, anyone, please, please, please, provide me with the answer! [Frown] I will consider naming my first born after you! (My wife probably wont agree though... [Smile]

I'm desperate!

-Jim

Note: I will UDF these after I figure this last one out.
_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.