Using PowerShell To Install The Remote Server Administration Tools On Windows 10 Version 1809
Beginning with Windows 10 version 1809, the Remote Server Administration Tools (RSAT) are delivered via Features on Demand which allows them to be installed with PowerShell. First, we’ll start off by retrieving a list of the available tools using the Get-WindowsCapability cmdlet. Next, we’ll retrieve a list of the PowerShell modules installed by default on Windows 10. Then we’ll perform the installations using the Add-WindowsCapability cmdlet. We’ll determine what PowerShell modules exist after the installation, return a list of all of the PowerShell commands were added, broken down by module. Finally, we’ll show what shortcuts were added, all without ever pointing and clicking in the GUI.
Prerequisites include: Windows 10 version 1809 or higher.
Today I'll be showing you how to install the remote server administration tools on Windows 10. Version 1809 and higher now printed this version of windows. You have to go. Find the MSI and performed the installation manually. Maybe you could script or something So what I'm going to do today is show you how to perform the installation with powershell, so I'll start out by running get windows capability. I'll specify the name parameter with our set star for the value are also specify the online parameter. And what that's going to do it's going to give us a list of all the tool names. The state, the display name the description, etc. An while this might be good information to have if you only want to install some of the tools. If you're like me and you want all of'em installed. It's not really anything. You need So what I recommend is run the same command, but pipe it to select object, and only select the display name in the state properties that gives you a much more concise list of the available. RSAT tools and whether or not. They are installed now. One thing you won't find anywhere else because most people while they can. Figure out how to use powershell to install the RSAT tools what they don't tell you is what powershell modules were added, and what commands did all those modules. Add So what I recommend is get a list of all the currently installed modules prior to performing the installation store that in a variable also return the count. You can see currently by default on this particular version of windows with nothing else installed there 79 powerShell modules now would I also want is what shortcuts are being added. So I want to get a list of all the shortcuts in the admin tools folder. I'm going to store it in a variable and I'll return the count of that as well. So you can see, there 20 shortcuts currently. Now, if you're running this in the powershell console, you can just up arrow few times get the previous command and then you can pipe the command to get the list of all the RSAT tools to the add Windows Capability Command. You also want to specify the online parameter and that references the online image or your current operating system. Because these commands do support offline servicing of images, although that's not covered in this video family. I'll pipe the results to out null. I sent him to the bit bucket. You might be wondering. Why would you send the results to the Bitbucket let's be cause they don't provide any useful output at least not in this particular scenario. This installation will take. A few minutes. OK, the installation completed and what I recommend to check to see if the installation completed successfully is just run the previous command. I talked about. That gives you the concise results. You'll be able to tell if they are installed or not you can see that they're all installed OK. I'll go back and run the command to get a list of the modules again. It's up this time, I'll use a variable by a different name. As you can see installing the remote server administration tools added numerous powershell modules what I can do is use compare object and use the variable where the results were stored prior to the installation after the installation. Ticket list of the differences are also store. These results in another variable called new modules. So you can see, there are a number of powerShell modules and my question is how else would you figure this out? And if you wanted to save this list any of this information can be sent to a file and pretty much any type of file you wanted to in powershell, so now, what I'm going to do. I'm going to use get command to get a list of all the commands that exist in these new modules. I'm going to pipe it to sort object. I'm going to sort by the source property in this scenario. The source property is the module name, then I'll pipe that to format table and group it by source and what that's going to do. That's going to give me a list of all the newly added powershell commands. That are grouped her broken down by powershell module an as you can see, there are a lot of new commands that were added. So one thing I've heard Jeffrey Snover say numerous times is the way that PowerShell Works is you think you type and you get and that kind of leads into the next command of updating the help because a lot of times when people sit down to use powershell. They forget about the thinking portion. They just want to type and get will take a moment to look at the help for these commands before attempting to use'em. And in order to use the help you'll 1st need to update the help for all the newly added modules now. You could just run update help for every module, but I've chosen the specify the name parameter and I'm using what we stored in new modules variable to only update the newly added modules OK. It's not uncommon to get an error when updating the help and as you can see this specific module failed because it does not support updatable help so you can safely ignore that. Until the module author add support for updatable help you will continue to receive this error each time you run update help OK the next command. I will re run the command to get a list of all the shortcuts in the admin tools folder and store. The results and available and output. The Count of the number of shortcuts so you can see. Now there are 45 short cuts before the installation. There was a 25 shortcuts have been added once again, I can use compare object to. Return a list of the newly added shortcuts and In addition, a short cuts. There's 1 folder that was added remote desktop services last but not least you can use show control panel item and specify administrative tools and that'll give you a graphical representation of all the shortcuts that currently exist in the folder. This doesn't show. You the differences. But it shows you the shortcuts that currently exists in the admin tools folder. I hope you've enjoyed this video thank you.