bbulldog Posted April 9, 2008 Posted April 9, 2008 (edited) How can i list up all the users rights to a mapped directory on our domain. Can anyone point me in the right direction. many thanks Edited April 9, 2008 by bbulldog
DarkMatter Posted April 9, 2008 Posted April 9, 2008 (edited) An easy way to do this without having to lookup SIDs would be doing something similar to this:#include <Constants.au3> Dim $PID Dim $line $PID = Run("cacls DRIVELETTER", "C:\windows\system32", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line &= StdoutRead($PID) If @error Then ExitLoop Wend MsgBox(0, 0, $line)Then just parse out the $line variable for the data you want.If you want to go with looking up security information and then looking up SIDs you can have a look at the GetFileSecurity Function in Advapi32.dll:http://msdn2.microsoft.com/en-us/library/a...639(VS.85).aspx Edited April 9, 2008 by DarkMatter [sub]Quantum mechanics: The dreams stuff is made of[/sub]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now