Jason,

 

What do you mean "does not work?" Are you getting an error? If so, what is
the error?

 

FYI, you have to enable Windows Remote Management (WinRM) to use
Invoke-Command. Use Enable-PSRemoting -Force or Set-WsmanQuickConfig, or use
Active Directory Group Policy to enable WinRM.

 

Cheers,

Trevor Sullivan

 

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com]
On Behalf Of jlos...@mpi.mb.ca
Sent: Thursday, January 16, 2014 10:03 AM
To: scripting@lists.myITforum.com
Subject: [scripting] Invoke-Command

 

Hi, we have a set of scripts that run on ServerA and they do not run on
identical  ServerB

The Invoke-Command does not work locally or remotely on ServerB

 

Any ideas?

 

Thanks,

 

Jason Loster

Senior IT Analyst

IT Security, Compliance and Risk Management
Manitoba Public Insurance
708-234 Donald St. 
Winnipeg, MB, R3C 4A4 
 <mailto:jlos...@mpi.mb.ca> jlos...@mpi.mb.ca 

 

 

 

 



Reply via email to