0
1
I have a list of about 200 machine names. I need to get the UserName of the person on each of those machines.
I can do it individually using the following command. But I'm not looking to do this 200 times and then manually write the results in spreadsheet.
wmic.exe /node:"<MachineName>" ComputerSystem Get UserName
I've been searching for a script that will run through a list of about 200 machine names one by one, and document the result back into a spreadsheet or text document. The format isn't as important as just being able to get that info out of the CMD line and email a document to someone.
get the UserName of the person on each of those machines... do you mean the username of the currently logged on user? – I say Reinstate Monica – 2018-11-14T17:01:47.427
I'm voting to close this question as off-topic because we are not a script writing service – Canadian Luke – 2018-11-19T21:50:28.587