{"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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Zubair Alexander\"\/>\n\t<meta name=\"google-site-verification\" content=\"xUGSODobCBguuxTNOCWOCVwAIhfY39LLtYAQOmExYzw\" \/>\n\t<meta name=\"msvalidate.01\" content=\"65829CD0C3C810D64E58EA860413DB21\" \/>\n\t<meta name=\"keywords\" content=\"active directory,powershell\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Alexander&#039;s Blog | Sharing knowledge with the global IT community since November 1, 2004\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Active Directory Cmdlets in Windows PowerShell | Alexander&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2004\/11\/AlexandersBlog_logo_590x590.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2004\/11\/AlexandersBlog_logo_590x590.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"590\" \/>\n\t\t<meta property=\"og:image:height\" content=\"590\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-12-05T16:02:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2018-01-17T19:11:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@zubairalexander\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Active Directory Cmdlets in Windows PowerShell | Alexander&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@zubairalexander\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2004\/11\/AlexandersBlog_logo_590x590.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#article\",\"name\":\"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog\",\"headline\":\"Active Directory Cmdlets in Windows PowerShell\",\"author\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/author\\\/sp_admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/Featured_AlexandersBlog_logo_1150x900.png\",\"width\":1150,\"height\":900,\"caption\":\"Alexander's Blog\"},\"datePublished\":\"2010-12-05T08:02:58-08:00\",\"dateModified\":\"2018-01-17T12:11:42-08:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#webpage\"},\"articleSection\":\"Active Directory, Scripting, Tips &#038; Tricks, Tools\\\/Utils, Windows 2008\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/category\\\/active-directory\\\/#listItem\",\"name\":\"Active Directory\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/category\\\/active-directory\\\/#listItem\",\"position\":2,\"name\":\"Active Directory\",\"item\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/category\\\/active-directory\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#listItem\",\"name\":\"Active Directory Cmdlets in Windows PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#listItem\",\"position\":3,\"name\":\"Active Directory Cmdlets in Windows PowerShell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/category\\\/active-directory\\\/#listItem\",\"name\":\"Active Directory\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/#organization\",\"name\":\"Alexander's Blog\",\"description\":\"Sharing knowledge with the global IT community since November 1, 2004\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/AlexandersBlog_logo_590x590.jpg\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/zubairalexander\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/zubairalexander\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/author\\\/sp_admin\\\/#author\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/author\\\/sp_admin\\\/\",\"name\":\"Zubair Alexander\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#webpage\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/\",\"name\":\"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog\",\"description\":\"Here\\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/author\\\/sp_admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/author\\\/sp_admin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/Featured_AlexandersBlog_logo_1150x900.png\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#mainImage\",\"width\":1150,\"height\":900,\"caption\":\"Alexander's Blog\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/active-directory-cmdlets-in-windows-powershell\\\/#mainImage\"},\"datePublished\":\"2010-12-05T08:02:58-08:00\",\"dateModified\":\"2018-01-17T12:11:42-08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/\",\"name\":\"Alexander's Blog\",\"description\":\"Sharing knowledge with the global IT community since November 1, 2004\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.zubairalexander.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog","description":"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List","canonical_url":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/","robots":"max-image-preview:large","keywords":"active directory,powershell","webmasterTools":{"google-site-verification":"xUGSODobCBguuxTNOCWOCVwAIhfY39LLtYAQOmExYzw","msvalidate.01":"65829CD0C3C810D64E58EA860413DB21","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#article","name":"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog","headline":"Active Directory Cmdlets in Windows PowerShell","author":{"@id":"https:\/\/www.zubairalexander.com\/blog\/author\/sp_admin\/#author"},"publisher":{"@id":"https:\/\/www.zubairalexander.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Featured_AlexandersBlog_logo_1150x900.png","width":1150,"height":900,"caption":"Alexander's Blog"},"datePublished":"2010-12-05T08:02:58-08:00","dateModified":"2018-01-17T12:11:42-08:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#webpage"},"isPartOf":{"@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#webpage"},"articleSection":"Active Directory, Scripting, Tips &#038; Tricks, Tools\/Utils, Windows 2008"},{"@type":"BreadcrumbList","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.zubairalexander.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog\/category\/active-directory\/#listItem","name":"Active Directory"}},{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog\/category\/active-directory\/#listItem","position":2,"name":"Active Directory","item":"https:\/\/www.zubairalexander.com\/blog\/category\/active-directory\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#listItem","name":"Active Directory Cmdlets in Windows PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#listItem","position":3,"name":"Active Directory Cmdlets in Windows PowerShell","previousItem":{"@type":"ListItem","@id":"https:\/\/www.zubairalexander.com\/blog\/category\/active-directory\/#listItem","name":"Active Directory"}}]},{"@type":"Organization","@id":"https:\/\/www.zubairalexander.com\/blog\/#organization","name":"Alexander's Blog","description":"Sharing knowledge with the global IT community since November 1, 2004","url":"https:\/\/www.zubairalexander.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2020\/10\/AlexandersBlog_logo_590x590.jpg","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#organizationLogo"},"image":{"@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/zubairalexander","https:\/\/www.linkedin.com\/in\/zubairalexander"]},{"@type":"Person","@id":"https:\/\/www.zubairalexander.com\/blog\/author\/sp_admin\/#author","url":"https:\/\/www.zubairalexander.com\/blog\/author\/sp_admin\/","name":"Zubair Alexander"},{"@type":"WebPage","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#webpage","url":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/","name":"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog","description":"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.zubairalexander.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#breadcrumblist"},"author":{"@id":"https:\/\/www.zubairalexander.com\/blog\/author\/sp_admin\/#author"},"creator":{"@id":"https:\/\/www.zubairalexander.com\/blog\/author\/sp_admin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Featured_AlexandersBlog_logo_1150x900.png","@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#mainImage","width":1150,"height":900,"caption":"Alexander's Blog"},"primaryImageOfPage":{"@id":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/#mainImage"},"datePublished":"2010-12-05T08:02:58-08:00","dateModified":"2018-01-17T12:11:42-08:00"},{"@type":"WebSite","@id":"https:\/\/www.zubairalexander.com\/blog\/#website","url":"https:\/\/www.zubairalexander.com\/blog\/","name":"Alexander's Blog","description":"Sharing knowledge with the global IT community since November 1, 2004","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.zubairalexander.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Alexander's Blog | Sharing knowledge with the global IT community since November 1, 2004","og:type":"article","og:title":"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog","og:description":"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List","og:url":"https:\/\/www.zubairalexander.com\/blog\/active-directory-cmdlets-in-windows-powershell\/","og:image":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2004\/11\/AlexandersBlog_logo_590x590.png","og:image:secure_url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2004\/11\/AlexandersBlog_logo_590x590.png","og:image:width":590,"og:image:height":590,"article:published_time":"2010-12-05T16:02:58+00:00","article:modified_time":"2018-01-17T19:11:42+00:00","twitter:card":"summary_large_image","twitter:site":"@zubairalexander","twitter:title":"Active Directory Cmdlets in Windows PowerShell | Alexander's Blog","twitter:description":"Here\u2019s a list of all the Active Directory cmdlets in Windows PowerShell that are available in Windows Server 2008 R2 with a link to Microsoft TechNet for each cmdlet for more details. Add-ADComputerServiceAccount Adds one or more service accounts to an Active Directory computer. Add-ADDomainControllerPasswordReplicationPolicy Adds users, computers, and groups to the Allowed List or the Denied List","twitter:creator":"@zubairalexander","twitter:image":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2004\/11\/AlexandersBlog_logo_590x590.png"},"aioseo_meta_data":{"post_id":"2728","title":null,"description":null,"keywords":[{"label":"active directory","value":"active directory"},{"label":"powershell","value":"powershell"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 04:12:08","updated":"2025-06-04 01:05:00","seo_analyzer_scan_date":null},"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}]}}