{"id":2363,"date":"2013-12-23T09:00:00","date_gmt":"2013-12-23T09:00:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/12\/23\/cmdlets-roasting-on-an-open-fire\/"},"modified":"2013-12-23T09:00:00","modified_gmt":"2013-12-23T09:00:00","slug":"cmdlets-roasting-on-an-open-fire","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/cmdlets-roasting-on-an-open-fire\/","title":{"rendered":"Cmdlets Roasting on an Open Fire"},"content":{"rendered":"<p><strong>Summary<\/strong>: Are there new cmdlets in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2?<\/p>\n<p>Microsoft Scripting Guy, Ed Wilson, is here. Today we have an extra guest post from Ian Farr, who explores if there are new cmdlets in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2. I like it when Christmas comes early&hellip;<\/p>\n<p>Are there any additional cmdlets included in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2? Let&rsquo;s look&hellip;<\/p>\n<p>I ran <strong>(Get-Command -Module ActiveDirectory).count<\/strong> on a computer running Windows Server&nbsp;2012 (HALODC01) and got 135. On the computer running Windows Server&nbsp;2012&nbsp;R2 (HALODC03), wait for it&hellip;<\/p>\n<p>147 were returned!<\/p>\n<p>I used Windows PowerShell to find out about these new cmdlets. I retrieved a list of Windows Server&nbsp;2012 Active Directory cmdlets:<\/p>\n<p style=\"padding-left: 30px\">$2012R1 = Invoke-Command -ComputerName HALODC01 -ScriptBlock {(Get-Command -Module ActiveDirectory).Name}<\/p>\n<p>Next, a list of Windows Server&nbsp;2012&nbsp;R2 Active Directory cmdlets:&nbsp;<\/p>\n<p style=\"padding-left: 30px\">$2012R2 = Invoke-Command -ComputerName HALODC03 -ScriptBlock {(Get-Command -Module ActiveDirectory).Name}<\/p>\n<p>Finally, a comparison of the cmdlets from the two modules:<\/p>\n<p style=\"padding-left: 30px\">Compare-Object -ReferenceObject $2012R1 -DifferenceObject $2012R2<\/p>\n<p>The results:<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/5556.Capture.PNG\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/5556.Capture.PNG\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<p>Merry Scriptmas, one and all!<\/p>\n<p>~Ian<\/p>\n<p>Thanks, Ian!<\/p>\n<p>I invite you to follow me on <a href=\"http:\/\/bit.ly\/scriptingguystwitter\" target=\"_blank\">Twitter<\/a> and <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\" target=\"_blank\">Facebook<\/a>. If you have any questions, send email to me at <a href=\"mailto:scripter@microsoft.com\" target=\"_blank\">scripter@microsoft.com<\/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><strong>Ed Wilson, Microsoft Scripting Guy<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Are there new cmdlets in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2? Microsoft Scripting Guy, Ed Wilson, is here. Today we have an extra guest post from Ian Farr, who explores if there are new cmdlets in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2. I like it when Christmas comes early&hellip; Are [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,191,56,472,3,4,45],"class_list":["post-2363","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-active-directory","tag-community","tag-guest-blogger","tag-ian-farr","tag-scripting-guy","tag-scripting-techniques","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Are there new cmdlets in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2? Microsoft Scripting Guy, Ed Wilson, is here. Today we have an extra guest post from Ian Farr, who explores if there are new cmdlets in the Active Directory PowerShell module in Windows Server&nbsp;2012&nbsp;R2. I like it when Christmas comes early&hellip; Are [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2363","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\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=2363"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2363\/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=2363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=2363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=2363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}