Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

run powershell script on a list of remote machines

$
0
0

I have a PS script that I run from within my ISE window.   It reads a list of computers from a .TXT file and then tries to execute a Get-WMIObject on these machines.   for each machine it tries to run on I get an error.  The RPC server is unavailable.     I know our corp image has the firewalls turned off and the RPC service is enabled.   I also know my user ID has admin rights on all corp desktops. 

 

Do you have to use the Invoke-Command or enter-pssession in order to do this?  Or is there another way?

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles