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
Posted Friday, July 6, 2012 2:44 AM


Group: General Forum Members
Last Login: Sunday, October 5, 2014 2:22 AM
Points: 20, Visits: 124
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



Group: General Forum Members
Last Login: Yesterday @ 7:06 PM
Points: 7,125, Visits: 12,720
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