Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Invoke-Command using -WorkingDirectory help

$
0
0

Hi all,

I am a bit of a powershell noob and I am trying to install an application on a pc using invoke command but the UNC path does not seem to register.

My command is as follows;

Invoke-Command –ComputerName pc_name_01 –ScriptBlock {Start-Process application.msi -WorkingDirectory genericserversoftwareappfolder}

I keep getting the directory not found exception however the dir exists. Any help would be greatly appreciated.

submitted by /u/EastKarana
[link] [comments]

The post Invoke-Command using -WorkingDirectory help appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images