Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PS script to compare or missing permission

$
0
0

Hi All,

 I can get the folder permission by following script.

Working Script:Get-ChildItem -path \\ABC.XYZ.net\FOLDER -Recurse |?{$_.PsIsContainer } |get-acl | select-object path,owner,fullname,accesstostring,group | export-csv "D:\NAS\NASPROD2.csv"
 

But how do  i run this for just 2 depth.

How do i compare Nas1 and Nas2 ?

AS


Viewing all articles
Browse latest Browse all 15028

Trending Articles