dales wrote: » I've just done exactly the same thing at work, I'm not very good at scripting but managed to come up with this logon script to detect who has local admins then distributed a script to remove it from the naughty users.Remove Admin Rights Scripts Dales-Diary Probably not the best way of doing it but it may give you something to work with.
rwwest7 wrote: » You can do the exact same thing with a GPO. Restricted Groups I believe is the setting.
dales wrote: » Yes what actually I think you may need to do is change the %nwusername% bits to %username%. We run a netware shop so my particular issue was getting which machine was running admin and who was logging into it as such. %nwusername% tells me the netware cred %username% should tell you the AD user cred. As I say its a bit scrappy and not the most elegant way of doing things but it works ok for me until I learn a better way.
coffeeking wrote: » Thanks Dale, will try that and let you know. one quick question and this might be very basic one since I am not very familiar with the whole process yet; I ran the script from my machine that is just one of the machines in the same domain and I am admin on my machine. so if I changed the %nwusername% to %username%, do you think it would still give the information for all workstations on that domain?