@ECHO OFF SET ACCOUNT=%1 IF NOT DEFINED ACCOUNT GOTO USAGE FOR /F "usebackq delims=XXX tokens=1" %%i IN (`dsquery ou`) DO ( dsacls %%i | find /I "%1" > nul IF ERRORLEVEL 1 ( echo Account %1 has no explicit entries in DACL ) ELSE ( echo Account %1 has explicit entries in the DACL of %%i ) ) GOTO END :USAGE echo. echo USAGE: %0 [account name or security group] echo. echo EXAMPLE: %0 Administrator :END
Excellent ! Keep them coming :)
Nice Article !
Thanks all
Just amazing .. keep going.. !
Thanks Gokhan Ozcifci
nice one.Great pat. Thanks for sharing this.
Wow, I'm pretty good at all this! =^)
Thanks for the unique reference!
I nominated this article to be featured. Great job, Patris!
Thanks Ed
Congratulations on being featured on the home page of TNWiki!