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 06, 2012 2:44 AM


Group: General Forum Members
Last Login: Monday, February 24, 2014 9:20 AM
Points: 14, Visits: 90
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 06, 2012 7:42 AM



Group: General Forum Members
Last Login: Wednesday, April 16, 2014 9:25 AM
Points: 7,070, Visits: 12,523
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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1326091
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse