Currently Get-NetLocalGroup when run with the -ComputerFile Parameter can throw a lot of errors but the error messages are missing the current computer name.
This change adds the following things:
Output Servername on Exceptions
Remove newlines in Exception Messages. Currently many exceptios contain a newline messing with the output
Currently Get-NetLocalGroup when run with the
-ComputerFile
Parameter can throw a lot of errors but the error messages are missing the current computer name.This change adds the following things: