Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

PowerShell - Get Permissions Expand / Collapse
Author
Message
Posted Friday, July 6, 2012 2:44 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Yesterday @ 9:10 AM
Points: 20, Visits: 121
Can anyone help with my previous comment?

I need to be able to loop around each of the directories above to get the folder permissions. (cacls)
Post #1325900
Posted Friday, July 6, 2012 7:42 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 7:27 PM
Points: 7,127, Visits: 12,657
I didn't feel like learning your code because I provided a solution to get you to a list of directories. Picking up where my code left off you could do something like this:

foreach($filePath in $filePaths)
{

}



__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1326091
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse