I am looking for a script to create local groups in a list of servers, i have got the batch script to create these local groups on a single server, but needs to run the script through a list of 100's of servers.
Please let me know how do i do that.
I have been trying this way:
for %%i in (%listsvrs%.txt) do (
net localgroup "testuser" /ADD /COMMENT:"test user"
but it doesn't run this way and stops at "set listsvrs=testusr" mentioning the syntax of the command is incorrect.