Jump to content
Sign in to follow this  

Users rights on mapped directory

Recommended Posts


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 by bbulldog

Share this post

Link to post
Share on other sites

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

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:


Edited by DarkMatter

[sub]Quantum mechanics: The dreams stuff is made of[/sub]

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.