Category : acl

Back story: I am scripting Windows Failover Cluster setups using fileshare quorum and am having difficulty figuring out how to grant the cluster computer name object (CNO) modify permissions to both the filesystem, and the share itself. While I can run this without error: Winrs -r:$WitnessFileServer "icacls $WitnessSharePath /grant $DNSDomain$ClusterName$:(M)" Winrs -r:$WitnessFileServer "Powershell IF (!(Get-SMBShare ..

Read more

We are running the script mentioned below to change a heap of ACL permissions which needs to be down to the file level as we are migrating from one environment to another. The script below is working for folders/subfolders but appears to fail when it comes to the actual files themselves. $items = get-childitem file.location.com.auprojectpeopleuser1 ..

Read more

I’m trying to get all smb shares on my windows server with all user permissions on them for inventory check. This is what i have: $Shares = Get-SmbShare foreach($Share in $Shares) { Get-SmbShareAccess -Name $Share.Name | Where-Object {$_.AccountName -Match "DOMAINNAME"} } Which gets me all domain users with their shares and which access they have. ..

Read more