{"id":2728,"date":"2010-12-05T08:02:58","date_gmt":"2010-12-05T16:02:58","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=2728"},"modified":"2018-01-17T12:11:42","modified_gmt":"2018-01-17T19:11:42","slug":"active-directory-cmdlets-in-windows-powershell","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/","title":{"rendered":"Active Directory Cmdlets in Windows PowerShell"},"content":{"rendered":"<p>Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server\u00a02008\u00a0R2 with a link to Microsoft TechNet for each cmdlet for more details.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617240.aspx\">Add-ADComputerServiceAccount<\/a><\/p>\n<p>Adds one or more service accounts to an Active\u00a0Directory computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617188.aspx\">Add-ADDomainControllerPasswordReplicationPolicy<\/a><\/p>\n<p>Adds users, computers, and groups to the Allowed List or the Denied List of the read-only domain controller (RODC) Password Replication Policy (PRP).<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617226.aspx\">Add-ADFineGrainedPasswordPolicySubject<\/a><\/p>\n<p>Applies a fine-grained password policy to one more users and groups.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617210.aspx\">Add-ADGroupMember<\/a><\/p>\n<p>Adds one or more members to an Active\u00a0Directory group.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617203.aspx\">Add-ADPrincipalGroupMembership<\/a><\/p>\n<p>Adds a member to one or more Active\u00a0Directory groups.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617213.aspx\">Clear-ADAccountExpiration<\/a><\/p>\n<p>Clears the expiration date for an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617197.aspx\">Disable-ADAccount<\/a><\/p>\n<p>Disables an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617205.aspx\">Disable-ADOptionalFeature<\/a><\/p>\n<p>Disables an Active\u00a0Directory optional feature.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617200.aspx\">Enable-ADAccount<\/a><\/p>\n<p>Enables an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617209.aspx\">Enable-ADOptionalFeature<\/a><\/p>\n<p>Enables an Active\u00a0Directory optional feature.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617214.aspx\">Get-ADAccountAuthorizationGroup<\/a><\/p>\n<p>Gets the Active\u00a0Directory security groups that contain an account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617227.aspx\">Get-ADAccountResultantPasswordReplicationPolicy<\/a><\/p>\n<p>Gets the resultant password replication policy for an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617192.aspx\">Get-ADComputer<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory computers.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617189.aspx\">Get-ADComputerServiceAccount<\/a><\/p>\n<p>Gets the service accounts that are hosted by an Active\u00a0Directory computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617244.aspx\">Get-ADDefaultDomainPasswordPolicy<\/a><\/p>\n<p>Gets the default password policy for an Active\u00a0Directory domain.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617224.aspx\">Get-ADDomain<\/a><\/p>\n<p>Gets an Active\u00a0Directory domain.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617217.aspx\">Get-ADDomainController<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory domain controllers, based on discoverable services criteria, search parameters, or by providing a domain controller identifier, such as the NetBIOS name.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617207.aspx\">Get-ADDomainControllerPasswordReplicationPolicy<\/a><\/p>\n<p>Gets the members of the Allowed List or the Denied List of the RODC PRP.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617194.aspx\">Get-ADDomainControllerPasswordReplicationPolicyUsage<\/a><\/p>\n<p>Gets the resultant password policy of the specified ADAccount on the specified RODC.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617231.aspx\">Get-ADFineGrainedPasswordPolicy<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory fine-grained password policies.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617232.aspx\">Get-ADFineGrainedPasswordPolicySubject<\/a><\/p>\n<p>Gets the users and groups to which a fine-grained password policy is applied.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617216.aspx\">Get-ADForest<\/a><\/p>\n<p>Gets an Active\u00a0Directory forest.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617196.aspx\">Get-ADGroup<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory groups.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617193.aspx\">Get-ADGroupMember<\/a><\/p>\n<p>Gets the members of an Active\u00a0Directory group.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617198.aspx\">Get-ADObject<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory objects.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617218.aspx\">Get-ADOptionalFeature<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory optional features.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617236.aspx\">Get-ADOrganizationalUnit<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory OUs.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617259.aspx\">Get-ADPrincipalGroupMembership<\/a><\/p>\n<p>Gets the Active\u00a0Directory groups that have a specified user, computer, or group.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617246.aspx\">Get-ADRootDSE<\/a><\/p>\n<p>Gets the root of a domain controller information tree.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617204.aspx\">Get-ADServiceAccount<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory service accounts.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617241.aspx\">Get-ADUser<\/a><\/p>\n<p>Gets one or more Active\u00a0Directory users.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617255.aspx\">Get-ADUserResultantPasswordPolicy<\/a><\/p>\n<p>Gets the resultant password policy for a user.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617223.aspx\">Install-ADServiceAccount<\/a><\/p>\n<p>Installs an Active\u00a0Directory service account on a computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617235.aspx\">Move-ADDirectoryServer<\/a><\/p>\n<p>Moves a domain controller in AD\u00a0DS to a new site.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617229.aspx\">Move-ADDirectoryServerOperationasterRole<\/a><\/p>\n<p>Moves operation master (also known as flexible single master operations or FSMO) roles to an Active\u00a0Directory domain controller.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617248.aspx\">Move-ADObject<\/a><\/p>\n<p>Moves an Active\u00a0Directory object or a container of objects to a different container or domain.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617245.aspx\">New-ADComputer<\/a><\/p>\n<p>Creates a new Active\u00a0Director computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617238.aspx\">New-ADFineGrainedPasswordPolicy<\/a><\/p>\n<p>Creates a new Active\u00a0Directory fine-grained password policy.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617258.aspx\">New-ADGroup<\/a><\/p>\n<p>Creates an Active\u00a0Directory group.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617260.aspx\">New-ADObject<\/a><\/p>\n<p>Creates an Active\u00a0Directory objet.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617237.aspx\">New-ADOrganizationalUnit<\/a><\/p>\n<p>Creates a new Active\u00a0Directory OU.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617211.aspx\">New-ADServiceAccount<\/a><\/p>\n<p>Creates a new Active\u00a0Directory service account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617253.aspx\">New-ADUser<\/a><\/p>\n<p>Creates a new Active\u00a0Directory user.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617250.aspx\">Remove-ADComputer<\/a><\/p>\n<p>Removes an Active\u00a0Directory computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617257.aspx\">Remove-ADComputerServiceAccount<\/a><\/p>\n<p>Removes one or more service accounts from a computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617264.aspx\">Remove-ADDomainControllerPasswordReplicationPolicy<\/a><\/p>\n<p>Removes users, computers, and groups from the Allowed List or the Denied List of the RODC PRP.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617233.aspx\">Remove-ADFineGrainedPasswordPolicy<\/a><\/p>\n<p>Removes an Active\u00a0Directory fine-grained password policy.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617187.aspx\">Remove-ADFineGrainedPasswordPolicySubject<\/a><\/p>\n<p>Removes one or more users from a fine-grained password policy.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617228.aspx\">Remove-ADGroup<\/a><\/p>\n<p>Removes an Active\u00a0Directory group.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617242.aspx\">Remove-ADGroupMember<\/a><\/p>\n<p>Removes one or more members from an Active\u00a0Directory group.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617219.aspx\">Remove-ADObject<\/a><\/p>\n<p>Removes an Active\u00a0Directory object.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617239.aspx\">Remove-ADOrganizationalUnit<\/a><\/p>\n<p>Removes an Active\u00a0Directory OU.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617243.aspx\">Remove-ADPrincipalGroupMembership<\/a><\/p>\n<p>Removes a member from one or more Active\u00a0Directory groups.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617190.aspx\">Remove-ADServiceAccount<\/a><\/p>\n<p>Removes an Active\u00a0Directory service account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617206.aspx\">Remove-ADUser<\/a><\/p>\n<p>Removes an Active\u00a0Directory user.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617225.aspx\">Rename-ADObject<\/a><\/p>\n<p>Changes the name of an Active\u00a0Directory object.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617201.aspx\">Reset-ADServiceAccountPassword<\/a><\/p>\n<p>Resets the service account password for a computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617262.aspx\">Restore-ADObject<\/a><\/p>\n<p>Restores an Active\u00a0Directory object.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617247.aspx\">Search-ADAccount<\/a><\/p>\n<p>Gets Active\u00a0Directory user, computer, and service accounts.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617249.aspx\">Set-ADAccountControl<\/a><\/p>\n<p>Modifies user account control (UAC) values for an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617256.aspx\">Set-ADAccountExpiration<\/a><\/p>\n<p>Sets the expiration date for an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617261.aspx\">Set-ADAccountPassword<\/a><\/p>\n<p>Modifies the password of an Active\u00a0Directory account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617263.aspx\">Set-ADComputer<\/a><\/p>\n<p>Modifies an Active\u00a0Directory computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617251.aspx\">Set-ADDefaultDomainPasswordPolicy<\/a><\/p>\n<p>Modifies the default password policy for an Active\u00a0Directory domain.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617212.aspx\">Set-ADDomain<\/a><\/p>\n<p>Modifies an Active\u00a0Directory domain.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617230.aspx\">Set-ADDomainMode<\/a><\/p>\n<p>Sets the domain functional level for an Active\u00a0Directory domain.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617191.aspx\">Set-ADFineGrainedPasswordPolicy<\/a><\/p>\n<p>Modifies an Active\u00a0Directory fine-grained password policy.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617221.aspx\">Set-ADForest<\/a><\/p>\n<p>Modifies an Active\u00a0Directory forest.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617220.aspx\">Set-ADForestMode<\/a><\/p>\n<p>Sets the forest mode for an Active\u00a0Directory forest.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617199.aspx\">Set-ADGroup<\/a><\/p>\n<p>Modifies an Active\u00a0Directory group.<\/p>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-server-2008-R2-and-2008\/ee617254(v%3dmsdn.10)\">Set-ADObject<\/a><\/p>\n<p>Modifies an Active\u00a0Directory object.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617208.aspx\">Set-ADOrganizationalUnit<\/a><\/p>\n<p>Modifies an Active\u00a0Directory OU.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617252.aspx\">Set-ADServiceAccount<\/a><\/p>\n<p>Modifies an Active\u00a0Directory service account.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617215.aspx\">Set-ADUser<\/a><\/p>\n<p>Modifies an Active\u00a0Directory user.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617202.aspx\">Uninstall-ADServiceAccount<\/a><\/p>\n<p>Uninstalls an Active\u00a0Directory service account from a computer.<\/p>\n<p><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee617234.aspx\">Unlock-ADAccount<\/a><\/p>\n<p>Unlocks an Active\u00a0Directory account.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server\u00a02008\u00a0R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active\u00a0Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":7694,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6,57,11,45,30],"tags":[],"class_list":["post-2728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-active-directory","category-scripting","category-tips-tricks","category-toolsutils","category-longhorn-server"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Featured_AlexandersBlog_logo_1150x900.png","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/2728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=2728"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/2728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media\/7694"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=2728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=2728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=2728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}