RSS

PS: Check all subfolders for the existence of a particular domain group

09 Mar

Recently we have a requirements to clean up the permissions and remove the Everyone group from the data area. So I cobbled up a few powershell scripts from the net a good a script to do the following:

1) Get from a external text file a list of directories to check

2) Any directory or subdirectory contain the Everyone group will be written to a log file

3) At the same time, we want to know if we got access denied (that is weird permissions) , it will also output this to the same log file

Basically, I coded this within 2 hours being someone who is not good with Powershell, especially the error handling portion which too most of my time to find out how to get it right. So the codes are not standard, but its not that hard to understand or change it.

Get-FoldersForGroup.ps1

Advertisements
 
Leave a comment

Posted by on March 9, 2010 in VBScripts, Windows

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: