Help finding folders that have denied acces

Status
Not open for further replies.

crixx_creww

Beta member
Messages
1
Iam trying to search a server for all the folders on it,that have denied access.

My colleague is trying to move all the data off of one server, unto another but there are some folders that access is denied to.

These folders may have been modified by users so that no one but them has access to them, even though we are the administrators.

I need a way to search the directory of folders on the server and identify which folders my account wont have access to, before attempting to copy or move the folder and then get the windows error.

I hope iam being clear enuff, and not to nooby.
 
This is what I would do. First is use WMI to find the access on all of the folders. Then based on the folders you have access to, print all of the paths to a log and then once the WMI piece is done, process the log to copy the data to the new location. Or you can do it actively with a for each loop. The WMI class WIN32_directory has a flag for both readable and writable as well as access mask. You can use any of those to identify your access.
Good Luck
 
Status
Not open for further replies.
Back
Top Bottom