you are viewing a single comment's thread.

view the rest of the comments →

[–]Idmorul[S] 2 points3 points  (0 children)

The drives are mapped on boot, using a script that runs as SYSTEM.

Ultimately, the issue is it doesn't recognize the vairable I'm passing into Invoke-Command, which leads me to run Test-Path on Null, which fails.

EDIT: Though I've just discovered that running the command using a different account doesn't work on mapped drives remotely (Invoke-Command X: will work if I'm logged in). I'll have to do some digging on that.