"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