Hello,
I am using a script to pull ACL on the shared folder.
Results:
I want to make a trigger that would alert me if the results from the script are more than one because I create folders in the share and need to remove the group "Everyone" but sometimes I forget.
I am using a script to pull ACL on the shared folder.
Code:
Get-Acl -Path \\share1\folder1\* | where-object { $_.AccessToString -match 'Everyone' }
Code:
Path Owner Access ---- ----- ------ test1 domain\user1 Everyone Allow FullControl
I want to make a trigger that would alert me if the results from the script are more than one because I create folders in the share and need to remove the group "Everyone" but sometimes I forget.