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:
21
.claude/temp/read-regxml.ps1
Normal file
21
.claude/temp/read-regxml.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
$domain = 'cascades.local'
|
||||
$srv = 'CS-SERVER'
|
||||
$sysvol = "\\$srv\SYSVOL\$domain\Policies"
|
||||
|
||||
$gpo = Get-GPO -Name 'CSC - Folder Redirection' -Domain $domain
|
||||
$guid = "{$($gpo.Id.ToString().ToUpper())}"
|
||||
$xmlPath = "$sysvol\$guid\User\Preferences\Registry\Registry.xml"
|
||||
|
||||
$bytes = [System.IO.File]::ReadAllBytes($xmlPath)
|
||||
Write-Output "REGXML_B64_START"
|
||||
Write-Output ([Convert]::ToBase64String($bytes))
|
||||
Write-Output "REGXML_B64_END"
|
||||
|
||||
# Also get LE GPO GPC attributes from AD
|
||||
Import-Module ActiveDirectory -EA SilentlyContinue
|
||||
$leGpo = Get-GPO -Name 'CSC - Folder Redirection (LE)' -Domain $domain
|
||||
$leGuid = $leGpo.Id.ToString().ToUpper()
|
||||
$gpcObj = Get-ADObject -Filter "Name -eq '{$leGuid}'" `
|
||||
-SearchBase "CN=Policies,CN=System,DC=cascades,DC=local" `
|
||||
-Properties gPCUserExtensionNames,gPCMachineExtensionNames,versionNumber -EA SilentlyContinue
|
||||
Write-Output "LEGPO_EXT: $($gpcObj.gPCUserExtensionNames)"
|
||||
Reference in New Issue
Block a user