I'm running a quick .bat to inject a SCCM account into all Administrator groups across our domain. The script is:
psexec @Computers.txt net localgroup Administrators "DOMAIN\svcsccm-push" /add
This is going through 1200 computers, and I would like to see the error codes (and the log file) exported to a file so that I can see which computers didn't get the command. I know using a GPO would be the easier solution, but that's for a different forum.
Ideally something like:
\\computer returned error code 0 or 1
\\computer could not be found on the domain
Basically whatever the DOS window shows would be great.