How does error handling work when I use Invoke-Command
over many computers? For example, what if a computer name is misspelled or the user doesn't exist on a specific computer?
Invoke-Command -ComputerName Computer1,Computer2,Computer3 -ScriptBlock {
Get-LocalUser -Name User1 -ErrorAction SilentlyContinue
}