$GetLockoutStatus = Get-ADUser -Identity $WPFnamelookupbox.Text | Select-Object Enabled
if($GetLockoutStatus -eq $true){
$WPFlockedaccount.IsChecked = $true
}
The issue I have is that the checkbox does not seem to be getting checked. I can run the powershell command manually just fine and it shows that the account is enabled but not happening visually with the checkbox.
Am I missing something obvious here?
Aucun commentaire:
Enregistrer un commentaire