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

Reply To: Invoke-Command issued to multiple remote computer

$
0
0

You could do something like this:

$computers = Get-Content .\computers.txt |
             ForEach-Object { $_ -split ',' }

Invoke-Command -ComputerName $computers -ScriptBlock { Do-Stuff }

Viewing all articles
Browse latest Browse all 13067

Latest Images

Trending Articles



Latest Images