sync: auto-sync from HOWARD-HOME at 2026-05-20 17:08:25
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-05-20 17:08:25
This commit is contained in:
17
.claude/temp/frd-remove-authedusers.ps1
Normal file
17
.claude/temp/frd-remove-authedusers.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
$domain = 'cascades.local'
|
||||
$gpoName = 'CSC - Folder Redirection'
|
||||
|
||||
try {
|
||||
Set-GPPermission -Name $gpoName -Domain $domain `
|
||||
-PermissionLevel None -TargetName 'Authenticated Users' -TargetType Group `
|
||||
-Confirm:$false -EA Stop
|
||||
Write-Output "[OK] Removed Authenticated Users from security filter"
|
||||
} catch {
|
||||
Write-Output "[ERROR] $($_.Exception.Message)"
|
||||
}
|
||||
|
||||
Write-Output ""
|
||||
Write-Output "=== GPO Security Filter ==="
|
||||
Get-GPPermission -Name $gpoName -Domain $domain -All | ForEach-Object {
|
||||
Write-Output " $($_.Trustee.Name) [$($_.Trustee.TrusteeType)] — $($_.Permission)"
|
||||
}
|
||||
Reference in New Issue
Block a user