Brazil
2008-07-21 14:24:55 UTC
Hi,
I am trying to write a script which will list the path of a folder if
a specific secuirty group has permissions on that folder. I am trying
to run this script against a drive on a File Server. This is what I
have got at the moment, taken from Microsoft's site:
get-childitem \\FileServer\f$ –recurse | get-acl | select-object
path,owner,accesstostring,group | export-csv "C:\output.csv"
This works so far. It will output all permissions on all objects under
the F drive. What I would like to do now is to just output the path of
the folder if a specific group has permissions on the folder. I am not
sure how to structure the foreach statement.
Could someone please point me in the right direction?
Thanks,
Ben.
I am trying to write a script which will list the path of a folder if
a specific secuirty group has permissions on that folder. I am trying
to run this script against a drive on a File Server. This is what I
have got at the moment, taken from Microsoft's site:
get-childitem \\FileServer\f$ –recurse | get-acl | select-object
path,owner,accesstostring,group | export-csv "C:\output.csv"
This works so far. It will output all permissions on all objects under
the F drive. What I would like to do now is to just output the path of
the folder if a specific group has permissions on the folder. I am not
sure how to structure the foreach statement.
Could someone please point me in the right direction?
Thanks,
Ben.