![]() ![]() ![]() ![]() On top of this, stale objects in your AD database take space, which can affect the performance of your systems. $User = Read-Host -Prompt 'Input the user name' Get-ADUser -Filter Įxpired user accounts in a Microsoft Active Directory domain pose a security risk because anyone who has an account password could log on and utilize the account’s permissions for malicious purposes. Open the Windows PowerShell ISE on your domain controllerserver.Import-ModuleActiveDirectory Checking whether a specific user is disabled with a command-line query Prerequisite: Before running any of the following scripts, you need to import the PowerShell Active Directory module. How to Check If AD User Account Is Disabled Using PowerShell and Netwrix Auditor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |