I am looking to write a batch or vbs script to gather all users (local to the server. ie. administrators or a local account(not ad users)) on a collection of servers inside my network.
I assume I could do this by subnet. Could even put the server names into a csv text file for the script to read from and report back to. Lots to ask. I would use net user however I run into local access only.
Ideas? Or too many security walls to work?
Update: I do have access to these servers. It is mostly a security check to make sure that no other admin has changed the template. Powershell would be fine as well.
I know it can be done. Just been a while...
using PowerShell
source
or you could use an example from technet, as suggested. here is one