Moving local to global groups??
Under NT is there a simple way of transferring all the users of a local group to a global group and have the permissions either remain or be re-applied automatically?
Windows Forum
Under NT is there a simple way of transferring all the users of a local group to a global group and have the permissions either remain or be re-applied automatically?
by jomo123
by stubby
by haissam
You can do a bit of scripting to get the job done.
1- on the machine with the local group do
net localgroup %localgroupname% > localgroup.txt
this would put all the users in localgroupname into a text file
2- take the text file to a server
write a script that uses the 'for' command to add every user in the text file to the global group
the command to add the user is
net group %globalgroupname% %username% /add
with regards to the for command I'm afraid you have to check the help and get the correct format because it's quite an intricate command.
But I'm sure it would work
Regards,
Haissam
by stubby
by gadawg
by stubby
by stubby
This discussion is closed to new replies.
Sort by Trending