May 2019
Intermediate to advanced
620 pages
21h 41m
English
To read the userAccountControl attribute for a specific user object using Windows PowerShell, use the following lines of PowerShell on a system with the Active Directory module for Windows PowerShell:
Import-Module ActiveDirectoryGet-ADUser -Identity User -Properties userAccountControl | Format-Table name,useraccountcontrol
To read the userAccountControl attribute for all users using Windows PowerShell, use the following lines of PowerShell on a system with the Active Directory module for Windows PowerShell:
Import-Module ActiveDirectoryGet-ADUser -Filter * -Properties userAccountControl | Format-Table name,useraccountcontrol