{"id":83419,"date":"2010-01-25T00:01:00","date_gmt":"2010-01-25T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2010\/01\/25\/hey-scripting-guy-whats-up-with-active-directory-domain-services-cmdlets\/"},"modified":"2010-01-25T00:01:00","modified_gmt":"2010-01-25T00:01:00","slug":"hey-scripting-guy-whats-up-with-active-directory-domain-services-cmdlets-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/hey-scripting-guy-whats-up-with-active-directory-domain-services-cmdlets-2\/","title":{"rendered":"Hey, Scripting Guy! What&#8217;s Up with Active Directory Domain Services Cmdlets?"},"content":{"rendered":"<p class=\"MsoNormal\">&nbsp;<a class=\"addthis_button\" href=\"http:\/\/www.addthis.com\/bookmark.php?v=250&amp;pub=scriptingguys\"><img decoding=\"async\" alt=\"Bookmark and Share\" src=\"http:\/\/s7.addthis.com\/static\/btn\/v2\/lg-share-en.gif\" width=\"125\" height=\"16\"><\/a><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p><img decoding=\"async\" title=\"Hey, Scripting Guy! Question\" border=\"0\" alt=\"Hey, Scripting Guy! Question\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" width=\"34\" height=\"34\"><\/p>\n<p class=\"MsoNormal\">Hey, Scripting Guy! I have heard that Windows PowerShell 2.0 includes cmdlets to work with Microsoft Active Directory Domain Services (AD DS). However, when I use the <b>Get-Command<\/b> cmdlet to list the available cmdlets in my Windows PowerShell session, I do not see any AD DS cmdlets. What gives? Is this more of the notorious Microsoft <a href=\"http:\/\/en.wikipedia.org\/wiki\/Vaporware\"><font face=\"Segoe\">vaporware<\/font><\/a>? <\/p>\n<p class=\"MsoNormal\">&#8212; JM<\/p>\n<p class=\"MsoNormal\">\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\"><img decoding=\"async\" title=\"Hey, Scripting Guy! Answer\" border=\"0\" alt=\"Hey, Scripting Guy! Answer\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" width=\"34\" height=\"34\">Hello JM, <\/p>\n<p class=\"MsoNormal\">Microsoft Scripting Guy Ed Wilson here. Today is a lovely day in Charlotte. The sky is clear blue with high <a href=\"http:\/\/en.wikipedia.org\/wiki\/Cirrus_cloud\"><font face=\"Segoe\">cirrus clouds<\/font><\/a>, the sun is shining brightly, and the birds are <a href=\"http:\/\/en.wikipedia.org\/wiki\/Moonwalk_(dance)\"><font face=\"Segoe\">moonwalking<\/font><\/a> on my front lawn while looking for <a href=\"http:\/\/en.wikipedia.org\/wiki\/Takeout\">take-away<\/a> meals. Charlotte has successfully dug out from the 2010 snowstorm that never came. Just because Charlotte did not receive any snow did not keep our citizens from acting in sympathy with our northern neighbors. The stores were all mobbed by panic buyers. Businesses were closed and schools shuttered their doors. And (wait for it) the snow never arrived. We were robbed! I wanted to take a snow day, and make a snow version of Dr. Scripto in my front yard<span>&mdash;<\/span>major bummer. Meg in New York on Twitter offered to box up and ship some snow to us, but I figured it would melt before it arrived so I politely declined. The sky outside reminds me of when I was in London teaching a Windows Management Instrumentation (WMI) class to a Microsoft Premier customer. One day the sky cleared, revealing a beautiful deep blue sky. <\/p>\n<p class=\"Fig-Graphic\"><img decoding=\"async\" title=\"Image of The London Eye\" alt=\"Image of The London Eye\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/qanda\/hsg\/2010\/january\/hey0125\/hsg-01-25-10-01.jpg\" width=\"600\" height=\"469\"><\/p>\n<p class=\"Fig-Graphic\">\n<p>&nbsp;<\/p>\n<\/p>\n<p class=\"MsoNormal\">JM, the AD DS Windows PowerShell cmdlets are not vaporware, but unless you are running Windows Server 2008 R2 with the AD DS role on your laptop, you probably do not have access to the cmdlets. The first thing you need to do is download the <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?displaylang=en&amp;FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d\">Remote Server Administration Tools (RSAT) for Windows 7<\/a>. After you have downloaded and installed the RSAT tools, you still have to go into Programs and Features in Control Panel, and click <b>Turn Windows features on or off<\/b>. This opens the Windows Features dialog box, which is shown in the following image.<\/p>\n<p class=\"Fig-Graphic\"><img decoding=\"async\" title=\"Image of Windows Features dialog box\" alt=\"Image of Windows Features dialog box\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/qanda\/hsg\/2010\/january\/hey0125\/hsg-01-25-10-02.jpg\" width=\"400\" height=\"350\"><\/p>\n<p class=\"Fig-Graphic\"><br>After you have accessed the Windows Features dialog box, you still must choose the administrative tools you wish to install. Just installing the RSAT module does not actually install any of the RSAT tools. It merely gives you the ability to install RSAT tools. Though this is a nice granular feature, it can be a bit annoying because there is no &ldquo;click to install all the tools&rdquo; feature. The nice thing is if you find you have left something out, you can easily add it back in without needing to have access to the original bits again. You use the same <b>Turn Windows features on or off<\/b> dialog box that you use to, for example, add or remove games. The <b>Turn Windows features on or off<\/b> dialog box is seen in the following image, with a portion of the RSAT section highlighted. There are so many tools, they will not fit on the screen without scrolling (depending on your screen resolution of course). <\/p>\n<p class=\"Fig-Graphic\"><img decoding=\"async\" title=\"Image of so many tools in the Windows Features dialog box\" alt=\"Image of so many tools in the Windows Features dialog box\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/qanda\/hsg\/2010\/january\/hey0125\/hsg-01-25-10-03.jpg\" width=\"400\" height=\"457\"><\/p>\n<p class=\"Fig-Graphic\">\n<p>&nbsp;<\/p>\n<\/p>\n<p class=\"MsoNormal\">After you have installed the RSAT tools and added the appropriate, there is one more thing you must do before you are able to use the AD DS cmdlets. You must import the Active Directory module. You can use a wildcard character to shorten the typing requirements, as seen here:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; Import-Module active*<br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">If everything is working correctly, you will see the Windows PowerShell progress bar displayed in your Windows PowerShell console, which is shown in the following image.<\/p>\n<p class=\"Fig-Graphic\"><img decoding=\"async\" title=\"Image of Windows PowerShell progress bar\" alt=\"Image of Windows PowerShell progress bar\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/qanda\/hsg\/2010\/january\/hey0125\/hsg-01-25-10-04.jpg\" width=\"600\" height=\"419\"><\/p>\n<p class=\"Fig-Graphic\">\n<p>&nbsp;<\/p>\n<\/p>\n<p class=\"MsoNormal\">To check to see if the AD DS cmdlets have been imported to your Windows PowerShell console session, use the <b>Get-Command<\/b> cmdlet with the <b>&ndash;module<\/b> parameter:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">Get-Command -Module active*<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">The <b>Get-Command<\/b> cmdlet, when used with the <b>&ndash;module<\/b> parameter, will return cmdlets that are exported by the specified module. If you are curious about how many cmdlets are exported, you can pipe the results to the <b>Measure-Object<\/b> cmdlet, as seen here:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; Get-Command -Module active* | Measure-Object<\/p>\n<p><br>Count<span>&nbsp;&nbsp;&nbsp; <\/span>: 76<br>Average<span>&nbsp; <\/span>:<br>Sum<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>:<br>Maximum<span>&nbsp; <\/span>:<br>Minimum<span>&nbsp; <\/span>:<br>Property :<\/p>\n<p>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">If you are not sure of the name of the module, you can use the <b>Get-Module<\/b> cmdlet with the <b>&ndash;ListAvailable<\/b> switch. Keep in mind that the list of modules returned by this command will depend on which modules you have created or installed on your system:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; Get-Module -ListAvailable<\/p>\n<p>ModuleType Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ExportedCommands<br>&#8212;&#8212;&#8212;- &#8212;-<span>&nbsp;&nbsp; <\/span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;-<br>Script<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>BasicFunctions<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Script<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>DotNet<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>FileSystem<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>IsePack<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>PowerShellPack<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>PSCodeGen<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>PSImageTools<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>PSRSS<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>PSSystemTools<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>PSUserTools<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>TaskScheduler<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>WPK<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>&nbsp;<\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>ActiveDirectory<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>AppLocker<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>BitsTransfer<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>FailoverClusters<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>GroupPolicy<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>NetworkLoadBalancingCl&#8230; {}<br>Manifest<span>&nbsp;&nbsp; <\/span>PSDiagnostics<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<br>Manifest<span>&nbsp;&nbsp; <\/span>TroubleshootingPack<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>{}<\/p>\n<p><br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">To create a new user in Active Directory, use the <b>New-ADUser<\/b> cmdlet. Two parameters are required when creating a new user: the <b>name<\/b> parameter and the <b>path<\/b> parameter. The <b>name<\/b> parameter is the name of the user object to create, and the <b>path<\/b> parameter specifies the organizational unit that will contain the new object. The <b>path<\/b> parameter uses standard LDAP syntax, as seen here:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">New-ADUser -Name HSG_Test -Path &#8220;ou=test,dc=nwtraders,dc=com&#8221;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">If you do not specify the path when creating a new user, an error message will be returned after a few seconds:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; New-ADUser -Name HSG_Test1<br>New-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down,<br>does not have the Active Directory Web Services running.<br>At line:1 char:11<br>+ New-ADUser &lt;&lt;&lt;&lt;<span>&nbsp; <\/span>-Name HSG_Test1<br><span>&nbsp;&nbsp;&nbsp; <\/span>+ CategoryInfo<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: ResourceUnavailable: (:) [New-ADUser], ADServerDownException<br><span>&nbsp;&nbsp;&nbsp; <\/span>+ FullyQualifiedErrorId : Unable to contact the server. This may be because this server does not exist, it i<br><span>&nbsp;&nbsp; <\/span>ently down, or it does not have the Active Directory Web Services running.,Microsoft.ActiveDirectory.Manageme<br><span>&nbsp; <\/span>mmands.NewADUser<\/p>\n<p>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">If you try to supply the name of the new user object in the path and leave out the <b>name<\/b> parameter, you will be prompted for the user name: <\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; New-ADUser -Path &#8220;cn=HSG_TestUser1,ou=test,dc=nwtraders,dc=com&#8221;<\/p>\n<p>cmdlet New-ADUser at command pipeline position 1<br>Supply values for the following parameters:<br>Name: <\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">After you supply the name for the user object, an error will then be returned:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">New-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it<br>does not have the Active Directory Web Services running.<br>At line:1 char:11<br>+ New-ADUser &lt;&lt;&lt;&lt;<span>&nbsp; <\/span>-Path &#8220;cn=HSG_TestUser1,ou=test,dc=nwtraders,dc=com&#8221;<br><span>&nbsp;&nbsp;&nbsp; <\/span>+ CategoryInfo<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: ResourceUnavailable: (:) [New-ADUser], ADServerDownException<br><span>&nbsp;&nbsp;&nbsp; <\/span>+ FullyQualifiedErrorId : Unable to contact the server. This may be because this server does not exist, it is curr<br><span>&nbsp;&nbsp; <\/span>ently down, or it does not have the Active Directory Web Services running.,Microsoft.ActiveDirectory.Management.Co<br><span>&nbsp; <\/span>mmands.NewADUser<\/p>\n<p>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">After the <b>New-ADUser<\/b> cmdlet has been used to create the new user and the name and path supplied, no feedback is displayed on the Windows PowerShell console. You can use Active Directory Users and Computers to see if the user object has been created, as shown in the following image.<\/p>\n<p class=\"Fig-Graphic\"><img decoding=\"async\" title=\"Image of using Active Directory Users and Computers\" alt=\"Image of using Active Directory Users and Computers\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/qanda\/hsg\/2010\/january\/hey0125\/hsg-01-25-10-05.jpg\" width=\"600\" height=\"436\"><\/p>\n<p class=\"Fig-Graphic\">\n<p>&nbsp;<\/p>\n<\/p>\n<p class=\"MsoNormal\">If you do not want to bother with opening Active Directory Users and Computers, you can use the <b>Get-ADUser<\/b> cmdlet to search for your newly created user:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; Get-ADUser -Filter &#8220;name -like &#8216;hsg*'&#8221;<\/p>\n<p><br>DistinguishedName : CN=HSG_Test,OU=test,DC=NWTraders,DC=Com<br>Enabled<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: False<br>GivenName<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>:<br>Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: HSG_Test<br>ObjectClass<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: user<br>ObjectGUID<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: 62d45f11-dad4-4752-b82d-562f8f58243f<br>SamAccountName<span>&nbsp;&nbsp;&nbsp; <\/span>: HSG_Test<br>SID<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>: S-1-5-21-3746122405-834892460-3960030898-1159<br>Surname<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>:<br>UserPrincipalName :<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">JM, that is all there is to using the Windows PowerShell cmdlets to create a bunch of new users in Active Directory. Active Directory Week will continue tomorrow. <\/p>\n<p class=\"MsoNormal\">If you want to know exactly what we will be looking at tomorrow, follow us on <a href=\"http:\/\/bit.ly\/scriptingguystwitter\" target=\"_blank\">Twitter<\/a> or <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\" target=\"_blank\"><font face=\"Segoe\">Facebook<\/font><\/a>. If you have any questions, send e-mail to us at <a href=\"http:\/\/blogs.technet.commailto:scripter@microsoft.com\" target=\"_blank\"><font face=\"Segoe\">scripter@microsoft.com<\/font><\/a> or post your questions on the <a href=\"http:\/\/bit.ly\/scriptingforum\" target=\"_blank\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p class=\"MsoNormal\">\n<p>&nbsp;<\/p>\n<\/p>\n<p><b><span>Ed Wilson and Craig Liebendorfer, Scripting Guys<\/span><\/b><\/p>\n<p class=\"MsoNormal\">\n<p>&nbsp;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; Hey, Scripting Guy! I have heard that Windows PowerShell 2.0 includes cmdlets to work with Microsoft Active Directory Domain Services (AD DS). However, when I use the Get-Command cmdlet to list the available cmdlets in my Windows PowerShell session, I do not see any AD DS cmdlets. What gives? Is this more of [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,3,20,45],"class_list":["post-83419","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-active-directory","tag-scripting-guy","tag-user-accounts","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>&nbsp; &nbsp; Hey, Scripting Guy! I have heard that Windows PowerShell 2.0 includes cmdlets to work with Microsoft Active Directory Domain Services (AD DS). However, when I use the Get-Command cmdlet to list the available cmdlets in my Windows PowerShell session, I do not see any AD DS cmdlets. What gives? Is this more of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/83419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=83419"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/83419\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=83419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=83419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=83419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}