Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Scruot to check user rights on folders/subfolders

Reply
Thread Tools Display Modes

Scruot to check user rights on folders/subfolders

 
 
stefan
Guest
Posts: n/a

 
      02-16-2009
Hi,

I'm looking for a powershell script to check if theres a specified user
authorized on all subfolders and files in a directory...

I tried get-acl but I'm not a scripting guy...

Any help would be appreciated.


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      02-16-2009

"stefan" <> wrote in message
news:...
> Hi,
>
> I'm looking for a powershell script to check if theres a specified user
> authorized on all subfolders and files in a directory...
>
> I tried get-acl but I'm not a scripting guy...
>
> Any help would be appreciated.
>


The command cacls.exe "d:\Some Folder" /t | find /i "stefan" is a basic
method to give you this type of information. You must run it from a Command
Prompt. If you want something a little fancier then AccessEnum.exe might be
for you: http://technet.microsoft.com/en-us/s.../bb897332.aspx.


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      02-16-2009

"Pegasus (MVP)" <> wrote in message
news:%...
>
> "stefan" <> wrote in message
> news:...
>> Hi,
>>
>> I'm looking for a powershell script to check if theres a specified user
>> authorized on all subfolders and files in a directory...
>>
>> I tried get-acl but I'm not a scripting guy...
>>
>> Any help would be appreciated.
>>

>
> The command cacls.exe "d:\Some Folder" /t | find /i "stefan" is a basic
> method to give you this type of information. You must run it from a
> Command Prompt. If you want something a little fancier then AccessEnum.exe
> might be for you:
> http://technet.microsoft.com/en-us/s.../bb897332.aspx.


that will only show you on which folders a particular user has ACLs. Some
might be deny ACLs. Also, there might be folders he has no access to
(re-read the OP's question, he's looking for someone having access to all
folders), and he might have access through membership in a security group.

IMHO, without a bit more info from the OP, this could potentially be quite
complex.

/Al


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      02-16-2009

"Pegasus (MVP)" <> wrote in message
news:%...
>
> "stefan" <> wrote in message
> news:...
>> Hi,
>>
>> I'm looking for a powershell script to check if theres a specified user
>> authorized on all subfolders and files in a directory...
>>
>> I tried get-acl but I'm not a scripting guy...
>>
>> Any help would be appreciated.
>>

>
> The command cacls.exe "d:\Some Folder" /t | find /i "stefan" is a basic
> method to give you this type of information. You must run it from a
> Command Prompt. If you want something a little fancier then AccessEnum.exe
> might be for you:
> http://technet.microsoft.com/en-us/s.../bb897332.aspx.


that will only show you on which folders a particular user has ACLs. Some
might be deny ACLs. Also, there might be folders he has no access to
(re-read the OP's question, he's looking for someone having access to all
folders), and he might have access through membership in a security group.

IMHO, without a bit more info from the OP, this could potentially be quite
complex.

/Al


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problems with user rights added to folders Jim Helfer Active Directory 2 02-22-2008 10:56 AM
get the user rights for the folders of a domain controller ricky53 Scripting 3 01-13-2008 05:33 PM
Assigning User Rights for user home folders Roshan Dias Active Directory 3 11-11-2005 12:39 PM
Setting rights to shared folders by members of a User OU Bill Bradley Active Directory 2 06-02-2005 09:14 PM
grant a user rights to set rights for folders arno Active Directory 2 05-23-2005 02:40 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59