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: Friday, July 18, 2014 7:51 AM
Points: 19, Visits: 102
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: Today @ 6:48 AM
Points: 7,094, Visits: 12,581
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