Files
claudetools/clients/cascades-tucson/scripts/verify-kiosk-2.ps1
Howard Enos 8d2ca14cac sync: auto-sync from HOWARD-HOME at 2026-07-17 14:14:41
Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-07-17 14:14:41
2026-07-17 14:15:20 -07:00

20 lines
1.2 KiB
PowerShell

Import-Module GroupPolicy
Write-Output "=== Kiosk GPO permissions ==="
Get-GPPermission -Name 'CSC - Nurse Station Kiosk' -All | ForEach-Object { Write-Output " $($_.Trustee.Name) ($($_.Trustee.SidType)): $($_.Permission) denied=$($_.Denied)" }
Write-Output ""
Write-Output "=== Kiosk GPO links ==="
$gpo = Get-GPO -Name 'CSC - Nurse Station Kiosk'
Write-Output " ID: $($gpo.Id) Status: $($gpo.GpoStatus)"
# Check links via AD
$links = Get-ADOrganizationalUnit -Filter * -Properties gpLink | Where-Object { $_.gpLink -match $gpo.Id }
$links | ForEach-Object { Write-Output " Linked: $($_.DistinguishedName)" }
Write-Output ""
Write-Output "=== Caregiver Workstation GPO permissions ==="
Get-GPPermission -Name 'CSC - Caregiver Workstation' -All | ForEach-Object { Write-Output " $($_.Trustee.Name) ($($_.Trustee.SidType)): $($_.Permission) denied=$($_.Denied)" }
Write-Output ""
Write-Output "=== Caregiver Workstation GPO links ==="
$gpo2 = Get-GPO -Name 'CSC - Caregiver Workstation'
Write-Output " ID: $($gpo2.Id) Status: $($gpo2.GpoStatus)"
$links2 = Get-ADOrganizationalUnit -Filter * -Properties gpLink | Where-Object { $_.gpLink -match $gpo2.Id }
$links2 | ForEach-Object { Write-Output " Linked: $($_.DistinguishedName)" }