Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Executing program on remote computer help

$
0
0

Hello and thank you for your time. Here is what I’m trying to do and the requirements behind it.

PowerShell 2.0

Must execute on remote computer

Script so far:

$RemoteDll = “c:\program files (x86)\test\location\application.dll”
invoke-command -computername ‘test-pc01′ -ScriptBlock { & ‘regsvr32′ $RemoteDll}

The above command does not work to register application.dll.

In addition to registering the DLL I need to unregister it. Therefore, I need to use the /u switch along with the /s switch for silent.

Where am I going wrong?


Viewing all articles
Browse latest Browse all 13067

Trending Articles