{"id":2980,"date":"2013-08-25T00:01:00","date_gmt":"2013-08-25T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/08\/25\/weekend-scripter-install-free-powershell-remote-server-admin-tools\/"},"modified":"2013-08-25T00:01:00","modified_gmt":"2013-08-25T00:01:00","slug":"weekend-scripter-install-free-powershell-remote-server-admin-tools","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/weekend-scripter-install-free-powershell-remote-server-admin-tools\/","title":{"rendered":"Weekend Scripter: Install Free PowerShell Remote Server Admin Tools"},"content":{"rendered":"<p><strong>Summary<\/strong>: Microsoft Scripting Guy, Ed Wilson, talks about installing the free Remote Server Administration Tools for Windows PowerShell&nbsp;3.0 in Windows&nbsp;8.<\/p>\n<p>Microsoft Scripting Guy, Ed Wilson, is here. This morning is an awesome morning. Our friends from Hamburg, Germany have been hanging out all weekend, and it has been a blast. We have spent a bit of time talking about Windows PowerShell training and some of the challenges related to that. We have also shared a love for tea. Yep. It has been a great weekend. Not only that, but the weather also cooperated&mdash;it has been sunny and not too humid.<\/p>\n<p>One of the first things I do when I build a new computer running Windows&nbsp;8, is install the Windows&nbsp;8 Remote Server Administration Tools (RSAT) tools. After I do this, I gain access to many new and useful cmdlets that make it easy to administer everything from Active Directory Domain Services to Windows Software Update Services.<\/p>\n<h2>Getting the Windows 8 RSAT tools<\/h2>\n<p>For a free download of the tools, see <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=28972\" target=\"_blank\">Remote Server Administration Tools for Windows 8<\/a> on the Microsoft Download Center. There are two versions available on the download page: a 32-bit version and a 64-bit version. Finding the actual download is pretty easy&mdash;I click the big red Download button that is shown in the following image.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7356.HSG-8-25-13-01.png\"><img decoding=\"async\" title=\"Image of menu\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7356.HSG-8-25-13-01.png\" alt=\"Image of menu\" \/><\/a><\/p>\n<p>I can install the RSAT tools for Windows&nbsp;8 on computers running Windows&nbsp;8 or Windows&nbsp;8 Pro. I cannot install them on my Windows Surface&nbsp;RT, but I can install them on my Windows Surface Pro.<\/p>\n<p>The first thing I need to know is if my computer x86 or is it x64. The way that I usually find this out is to query an environmental variable as shown here:<\/p>\n<p style=\"padding-left: 30px\">PS C:\\Users\\ed.IAMMRED&gt; $env:PROCESSOR_ARCHITECTURE<\/p>\n<p style=\"padding-left: 30px\">x86<\/p>\n<p>Before I install the RSAT tools on my computer, I use the following script to to see how many cmdlets and functions are currently on my computer&mdash; I have 989.<\/p>\n<p style=\"padding-left: 30px\">PS C:\\Users\\ed.IAMMRED&gt; gcm -CommandType cmdlet, function | measure<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">Count&nbsp;&nbsp;&nbsp; : 989<\/p>\n<p style=\"padding-left: 30px\">Average&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Sum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Maximum&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Minimum&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Property :<\/p>\n<p>So I click the big red Download button to select my appropriate package.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/6012.HSG-8-25-13-02.png\"><img decoding=\"async\" title=\"Image of dialog box\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/6012.HSG-8-25-13-02.png\" alt=\"Image of dialog box\" \/><\/a><\/p>\n<p>Now, I have a choice. I can download the package and install it offline. Or if I choose Run, the file spools to a Temp folder, and it performs the installation from there. This works great if I have good Internet bandwidth, and if I do not anticipate needing to perform the installation again anytime soon. I will open the file, and after a quick security scan, the installation begins. Here is the dialog box I see:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/1588.HSG-8-25-13-03.png\"><img decoding=\"async\" title=\"Image of dialog box\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/1588.HSG-8-25-13-03.png\" alt=\"Image of dialog box\" \/><\/a><\/p>\n<p>While the RSAT installs, a progress bar tracks the percentage of completion. This is shown here:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/4643.HSG-8-25-13-04.png\"><img decoding=\"async\" title=\"Image of dialog box\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/4643.HSG-8-25-13-04.png\" alt=\"Image of dialog box\" width=\"450\" height=\"318\" \/><\/a><\/p>\n<p>The first thing I do after the installation is complete is use the <strong>Update-Help<\/strong> cmdlet to update the Help for the newly installed modules. This is shown here:<\/p>\n<p style=\"padding-left: 30px\">PS C:\\Users\\ed.IAMMRED&gt; update-help -Module * -Force<\/p>\n<p>After I install the RSAT tools, I check to see how many cmdlets and functions I now have. The number is 1757 as seen here:<\/p>\n<p style=\"padding-left: 30px\">PS C:\\Users\\ed.IAMMRED&gt; gcm -CommandType cmdlet, function | measure<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">Count&nbsp;&nbsp;&nbsp; : 1757<\/p>\n<p style=\"padding-left: 30px\">Average&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Sum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Maximum&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Minimum&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Property :<\/p>\n<p>Unlike previous versions of the RSAT tools, now when I install the tools, all of the modules and support tools automatically install. In previous versions, I had to go into <strong>Programs<\/strong> in Control Panel, select <strong>Turn Windows features on or off<\/strong>, and then scroll down to <strong>Remote Server Administration Tools<\/strong> to turn on each tool. Now, I only need to do this if I want to turn off a feature. This menu is shown here:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/1321.HSG-8-25-13-05.png\"><img decoding=\"async\" title=\"Image of menu\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/1321.HSG-8-25-13-05.png\" alt=\"Image of menu\" \/><\/a><\/p>\n<p>After the tools install and I have updated the Help, I can open the Windows PowerShell console (or the Windows PowerShell ISE) and begin to use the tools. The cool thing is that I can use the cmdlets from the Active Directory module to query a domain controller that is running Windows Server 2008. This is shown here:<\/p>\n<p style=\"padding-left: 30px\">PS C:\\Users\\ed.IAMMRED&gt; Get-ADUser -Filter * -Server dc1 | select -Last 1<\/p>\n<p style=\"padding-left: 30px\">DistinguishedName : CN=anothertestuser,OU=Testou,DC=iammred,DC=net<\/p>\n<p style=\"padding-left: 30px\">Enabled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : False<\/p>\n<p style=\"padding-left: 30px\">GivenName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : anothertestuser<\/p>\n<p style=\"padding-left: 30px\">ObjectClass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : user<\/p>\n<p style=\"padding-left: 30px\">ObjectGUID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 36b19f4d-081b-4435-89cf-5979defe8c32<\/p>\n<p style=\"padding-left: 30px\">SamAccountName&nbsp;&nbsp;&nbsp; : $9E1000-86BJ2L7MPKB4<\/p>\n<p style=\"padding-left: 30px\">SID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : S-1-5-21-1457956834-3844189528-3541350385-1481<\/p>\n<p style=\"padding-left: 30px\">Surname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<\/p>\n<p style=\"padding-left: 30px\">UserPrincipalName :<\/p>\n<p>But I can also use cmdlets that only exist in Windows Server&nbsp;2012 as shown here:<\/p>\n<p style=\"padding-left: 30px\">PS C:\\Users\\ed.IAMMRED&gt; Get-DhcpServerInDC<\/p>\n<p style=\"padding-left: 30px\">&nbsp;<\/p>\n<p style=\"padding-left: 30px\">IPAddress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DnsName<\/p>\n<p style=\"padding-left: 30px\">&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;-<\/p>\n<p style=\"padding-left: 30px\">192.168.0.152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wds1.iammred.net<\/p>\n<p>Well, that is about it for today. Join me tomorrow as we begin a series written by Windows PowerShell MVP, Sean Kearney, about automating DiskPart. It is cool stuff.<\/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>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Microsoft Scripting Guy, Ed Wilson, talks about installing the free Remote Server Administration Tools for Windows PowerShell&nbsp;3.0 in Windows&nbsp;8. Microsoft Scripting Guy, Ed Wilson, is here. This morning is an awesome morning. Our friends from Hamburg, Germany have been hanging out all weekend, and it has been a blast. We have spent a bit [&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":[31,451,3,61,367,45],"class_list":["post-2980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-operating-system","tag-rsat","tag-scripting-guy","tag-weekend-scripter","tag-windows-8","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Microsoft Scripting Guy, Ed Wilson, talks about installing the free Remote Server Administration Tools for Windows PowerShell&nbsp;3.0 in Windows&nbsp;8. Microsoft Scripting Guy, Ed Wilson, is here. This morning is an awesome morning. Our friends from Hamburg, Germany have been hanging out all weekend, and it has been a blast. We have spent a bit [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2980","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=2980"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2980\/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=2980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=2980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=2980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}