Hi there,
Hope your all doing well. I have an unwanted behavior with PosH 7 and the cmdlet Get-GPO. event loaded in compatibility mode, some informations are missing. Here is an exemple :
$GpoName = "HAD-LoginRestrictions-T1"
Import-Module -UseWindowsPowerShell -Name GroupPolicy
Try { $GpoADdata = Get-GPO -Name $GpoName -ErrorAction Stop } Catch { $GpoADdata = $null }
And there is the output :
./> $GpoADdata
DisplayName : HAD-LoginRestrictions-T1
DomainName : R1.F4.HAD
Owner : F4R1\Admins du domaine
Id : 4e8a02d6-21a9-444f-87dc-14c20632fd6d
GpoStatus : UserSettingsDisabled
Description : Harden AD -----------------
Blocks connections to tier 1 machines from other tier accounts
CreationTime : 04/01/2025 15:46:56
ModificationTime : 04/01/2025 15:47:00
UserVersion :
ComputerVersion :
WmiFilter :
Any idea of what is causing this?