{"id":17736,"date":"2007-04-12T08:08:21","date_gmt":"2007-04-12T16:08:21","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/powershell\/?p=17736"},"modified":"2019-05-20T08:10:22","modified_gmt":"2019-05-20T16:10:22","slug":"active-directory-cmdlets","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/active-directory-cmdlets\/","title":{"rendered":"Active Directory Cmdlets"},"content":{"rendered":"<p><P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">More great cmdlets from our partners. <B style=\"mso-bidi-font-weight: normal\">Quest Software<\/B>, known for its ActiveRoles Server and <A href=\"http:\/\/powergui.org\/documentation.jspa\" mce_href=\"http:\/\/powergui.org\/documentation.jspa\"><FONT color=#800080>PowerGUI<\/FONT><\/A>, is offering its new Active Directory cmdlets to the community free of charge. <?xml:namespace prefix = o ns = \"urn:schemas-microsoft-com:office:office\" \/><o:p><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">To get them, click: <SPAN style=\"COLOR: navy\"><A title=http:\/\/www.quest.com\/2_0\/registration.aspx?requestdefid=13255 href=\"http:\/\/www.quest.com\/2_0\/registration.aspx?requestdefid=13255\"><FONT color=#800080>PowerShell Cmdlets for Active Directory<\/FONT><\/A><\/SPAN><\/SPAN><SPAN style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial\">.<\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial\"><o:p><\/o:p><\/SPAN>&nbsp;<\/P><\/SPAN>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">The ZIP file includes a Setup.exe executable that registers the PsSnapin and adds it to a custom console. To open the console, click: <SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN>Start | All Programs | Quest Software | ActiveRoles Server | ActiveRoles Management Shell for Active Directory (beta).<\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><\/SPAN>&nbsp;<\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Quest graciously used a &#8220;QAD&#8221; prefix on their nouns, instead of &#8220;AD&#8221; to leave room for &#8220;official&#8221; Active Directory cmdlets. <o:p><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">To find them in PowerShell, type:<\/SPAN><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>get-command -pssnapin quest*<o:p><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>-or-<o:p><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>get-command *qad* <o:p><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Cmdlets are:<o:p><\/o:p><\/SPAN><\/P>\n<UL style=\"MARGIN-TOP: 0in\" type=disc>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Get-QADUser<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Set-QADUser<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">New-QADUser<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">New-QADGroup<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Add-QADGroupMember<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Remove-QADGroupMember<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Connect-QADService<o:p><\/o:p><\/SPAN><\/LI>\n<LI class=MsoNormal style=\"MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">Disconnect-QADService<o:p><\/o:p><\/SPAN><\/LI><\/UL>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">The download&nbsp;site also offers&nbsp;documentation for the cmdlets with some&nbsp;handy examples. <\/SPAN><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">&nbsp;<\/SPAN><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">(Just FYI, the examples&nbsp;use a $pwd variable to store passwords. If you use this variable name, it&nbsp;overwrites the $pwd automatic variable that stores the path to the current directory.) <\/SPAN><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\">And be sure to check out the free PowerShell&nbsp;Directory Services&nbsp;provider in <A href=\"http:\/\/www.codeplex.com\/PowerShellCX\"><FONT color=#800080>PowerShell Community Extensions <SPAN style=\"mso-bidi-font-weight: bold\">PSCX 1.1<\/SPAN><\/FONT><\/A>. <A href=\"http:\/\/thepowershellguy.com\/blogs\/posh\/archive\/2007\/04\/06\/powershell-community-extensions-active-directory-provider-part-1.aspx\"><FONT color=#800080>The PowerShell Guy<\/FONT><\/A> has a nice demo of the provider. (Sorry for missing this!)<o:p><\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><\/SPAN><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><SPAN lang=EN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-ansi-language: EN\">June Blender [MSFT]<BR>Senior Programming Writer<BR>Windows PowerShell<o:p><\/o:p><\/SPAN><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>More great cmdlets from our partners. Quest Software, known for its ActiveRoles Server and PowerGUI, is offering its new Active Directory cmdlets to the community free of charge. &nbsp; To get them, click: PowerShell Cmdlets for Active Directory. &nbsp; The ZIP file includes a Setup.exe executable that registers the PsSnapin and adds it to a [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[12,286],"class_list":["post-17736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-cmdlet","tag-quest"],"acf":[],"blog_post_summary":"<p>More great cmdlets from our partners. Quest Software, known for its ActiveRoles Server and PowerGUI, is offering its new Active Directory cmdlets to the community free of charge. &nbsp; To get them, click: PowerShell Cmdlets for Active Directory. &nbsp; The ZIP file includes a Setup.exe executable that registers the PsSnapin and adds it to a [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/17736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=17736"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/17736\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=17736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=17736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=17736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}