W2K - AD related question....
Discussion
Access to directories on a W2K server are controlled by AD… now if I want to find out who has access to that directory, I would use the following at a comman prompt…
Net localgroup [AD group name] /domain
… question is, is there a way I can run a report of EVER group on the server to show who has access…?
Net localgroup [AD group name] /domain
… question is, is there a way I can run a report of EVER group on the server to show who has access…?
Right, sussed it...
At the command prompt;
net localgroup /domain |find /i "[GROUPIDENTIFYER]" >group.txt
Then you end up with a text file of all the groups that start with "abc" or whatever the identifyer happens to be.
Next I created a *.cmd file with the following…..
@echo off
cls
for /f "tokens=*" %%i in (y:stuffgroup.txt) do (
net localgroup %%i /domain >>y:polandallgrpinfo.txt
)
… and ta da…! Happy Pod.
At the command prompt;
net localgroup /domain |find /i "[GROUPIDENTIFYER]" >group.txt
Then you end up with a text file of all the groups that start with "abc" or whatever the identifyer happens to be.
Next I created a *.cmd file with the following…..
@echo off
cls
for /f "tokens=*" %%i in (y:stuffgroup.txt) do (
net localgroup %%i /domain >>y:polandallgrpinfo.txt
)
… and ta da…! Happy Pod.

Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



dammit where are the IT :geek: when you need them…!?!
