Active Directory Cmdlets

CommandDescriptionCommon Parameters
Get-ADUserRetrieves one or more Active Directory users-Identity, -Filter, -Properties, -SearchBase
New-ADUserCreates a new Active Directory user-Name, -SamAccountName, -UserPrincipalName, -Path
Set-ADUserModifies properties of an existing Active Directory user-Identity, -EmailAddress, -Enabled, -PasswordNeverExpires
Remove-ADUserRemoves an Active Directory user-Identity, -Confirm
Get-ADGroupRetrieves one or more Active Directory groups-Identity, -Filter, -Properties, -SearchBase
New-ADGroupCreates a new Active Directory group-Name, -GroupScope, -GroupCategory, -Path
Set-ADGroupModifies properties of an existing Active Directory group-Identity, -Description, -ManagedBy
Remove-ADGroupRemoves an Active Directory group-Identity, -Confirm
Add-ADGroupMemberAdds one or more members to an Active Directory group-Identity, -Members
Remove-ADGroupMemberRemoves one or more members from an Active Directory group-Identity, -Members, -Confirm
Get-ADComputerRetrieves one or more Active Directory computer objects-Identity, -Filter, -Properties, -SearchBase
New-ADComputerCreates a new Active Directory computer object-Name, -SAMAccountName, -Path
Set-ADComputerModifies properties of an existing Active Directory computer object-Identity, -Description, -Enabled
Remove-ADComputerRemoves an Active Directory computer object-Identity, -Confirm
Get-ADOrganizationalUnitRetrieves one or more Active Directory organizational units-Identity, -Filter, -Properties, -SearchBase
New-ADOrganizationalUnitCreates a new Active Directory organizational unit-Name, -Path
Set-ADOrganizationalUnitModifies properties of an existing Active Directory organizational unit-Identity, -Description, -ProtectedFromAccidentalDeletion
Remove-ADOrganizationalUnitRemoves an Active Directory organizational unit-Identity, -Confirm
Get-ADDomainRetrieves information about the current or specified Active Directory domain-Identity, -Server
Get-ADForestRetrieves information about the current or specified Active Directory forest-Identity, -Server
Get-ADDomainControllerRetrieves one or more Active Directory domain controllers-Identity, -Filter, -Server
Move-ADObjectMoves an Active Directory object from one container to another-Identity, -TargetPath
Rename-ADObjectRenames an Active Directory object-Identity, -NewName
Set-ADAccountPasswordSets the password of an Active Directory account-Identity, -NewPassword, -Reset
Unlock-ADAccountUnlocks an Active Directory account-Identity
Enable-ADAccountEnables an Active Directory account-Identity
Disable-ADAccountDisables an Active Directory account-Identity
Get-ADGroupMemberRetrieves members of an Active Directory group-Identity, -Recursive
Search-ADAccountSearches for Active Directory accounts based on specific criteria-AccountDisabled, -AccountExpired, -AccountInactive, -PasswordExpired
This table covers the most commonly used Active Directory cmdlets in PowerShell. There are additional cmdlets and parameters available for more specific tasks. Always refer to the official Microsoft documentation for the most up-to-date and complete information on Active Directory PowerShell cmdlets.
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *