RSAT on Windows 10 1809 in Disconnected Environments

___________________________________________________________________________________________________________________________

IMPORTANT ANNOUNCEMENT FOR OUR READERS!

AskPFEPlat is in the process of a transformation to the new Core Infrastructure and Security TechCommunity, and will be moving by the end of March 2019 to our new home at https://aka.ms/CISTechComm (hosted at https://techcommunity.microsoft.com). Please bear with us while we are still under construction!

We will continue bringing you the same great content, from the same great contributors, on our new platform. Until then, you can access our new content on either https://aka.ms/askpfeplat as you do today, or at our new site https://aka.ms/CISTechComm. Please feel free to update your bookmarks accordingly!

Why are we doing this? Simple really; we are looking to expand our team internally in order to provide you even more great content, as well as take on a more proactive role in the future with our readers (more to come on that later)! Since our team encompasses many more roles than Premier Field Engineers these days, we felt it was also time we reflected that initial expansion.

If you have never visited the TechCommunity site, it can be found at https://techcommunity.microsoft.com. On the TechCommunity site, you will find numerous technical communities across many topics, which include discussion areas, along with blog content.

NOTE: In addition to the AskPFEPlat-to-Core Infrastructure and Security transformation, Premier Field Engineers from all technology areas will be working together to expand the TechCommunity site even further, joining together in the technology agnostic Premier Field Engineering TechCommunity (along with Core Infrastructure and Security), which can be found at https://aka.ms/PFETechComm!

As always, thank you for continuing to read the Core Infrastructure and Security (AskPFEPlat) blog, and we look forward to providing you more great content well into the future!

__________________________________________________________________________________________________________________________

Hello everyone, Ty McPherson here, along with some fellow engineers Andreas Pacius and Edwin Gaitan, and we wanted to put together and share some information to help you setup Remote Server Administration Tools with Windows 10 1809.

Starting with Windows 10 v1809 the Remote Server Administration Tools (RSAT) is now a Feature on Demand (FoD). Features can be installed at any time and the requested packages are obtained through Windows Update. However, some of you are not connected to the internet to retrieve these packages, but still need the RSAT features enabled. The below steps will allow you to install some or all of the RSAT features. There are a couple options available to you, so please read through them so you can determine the best course of action to meet your needs.

The first step in all cases is that you need to obtain the FoD media from your Volume License Servicing Center (VLSC). Login and do a search for Features on Demand, ensuring you select the same edition that you want to RSAT enabled on.

Figure 1 – VLSC Search for Features on Demand

Download Disk 1 of the latest release

Figure 2 – Download Disk 1 of the latest release

Before we install the RSAT let’s examine what’s available we’ll use Get-WindowsCapability. Run the following command:

Get-WindowsCapability -online | ? Name -like Rsat* | FT

Figure 3 – Check RSAT FoD Status

Here are your choices, some a great for single quick installations, while others can help make available the FoD resources for the Enterprise.

Option 1:

You can copy the files from the .iso media to a local directory and move to a network share and make it available to the administrative staff.

#Specify ISO Source location

$FoD_Source = $env:USERPROFILE\Downloads\1809_FoD_Disk1.iso”

#Mount ISO

Mount-DiskImage -ImagePath $FoD_Source

$path = (Get-DiskImage $FoD_Source| Get-Volume).DriveLetter

#Language desired

$lang = “en-US”

#RSAT folder

$dest = New-Item -ItemType Directory -Path $env:SystemDrive\temp\RSAT_1809_$lang-force

#get RSAT files

Get-ChildItem ($path+“:\”) -name -recurse -include *~amd64~~.cab,*~wow64~~.cab,*~amd64~$lang~.cab,*~wow64~$lang~.cab
-exclude *languagefeatures*,*Holographic*,*NetFx3*,*OpenSSH*,*Msix* |
ForEach-Object {copy-item -Path ($path+“:\”+$_) -Destination $dest.FullName -Force
-Container}

#get metadata

copy-item ($path+“:\metadata”) -Destination $dest.FullName -Recurse

copy-item ($path +“:\”+“FoDMetadata_Client.cab”) -Destination $dest.FullName -Force -Container

#Dismount ISO

Dismount-DiskImage -ImagePath $FOD_Source

Use the following PowerShell to install RSAT from the FoD source that was placed on a network share from Option 1.

Note:  The network share/resource needs to have permissions that allow computer objects to READ, as well as the user invoking the PowerShell.  This is due to the Windows Module Installer running as NT Authority\SYSTEM, and will need access to the READ the source.

#Specify ISO Source location

$FoD_Source = “C:\Temp\RSAT_1809_en-US”

#Grab the available RSAT Features

$RSAT_FoD = Get-WindowsCapability –Online | Where-Object Name -like ‘RSAT*’

#Install RSAT Tools

Foreach ($RSAT_FoD_Item in $RSAT_FoD)

{

Add-WindowsCapability -Online -Name $RSAT_FoD_Item.name -Source $FoD_Source -LimitAccess

}

Option 2:

Alternatively, you could mount the .ISO and specify the drive as the source. Using a local drive letter as the -source parameter specified when executing the Add-WindowsCapability PowerShell.

If installing from a mounted ISO the below is an example PowerShell script

#Specify ISO Source location

$FoD_Source = $env:USERPROFILE\Downloads\1809_FoD_Disk1.iso”

#

#Mount ISO

Mount-DiskImage -ImagePath $FoD_Source

$FoD_Drive = (Get-DiskImage $FoD_Source| Get-Volume).DriveLetter

#Grab the available RSAT Features

$RSAT_FoD = Get-WindowsCapability -Online | Where-Object Name -like ‘RSAT*’

#Install RSAT Tools

Foreach ($RSAT_FoD_Item in $RSAT_FoD)

{

Add-WindowsCapability -Online -Name $RSAT_FoD_Item.name -Source ($FoD_Drive+“:”) -LimitAccess

}

#Dismount ISO

Dismount-DiskImage -ImagePath $FoD_Source

After the installation we’ll use Get-WindowsCapability again to check the status of the RSAT features after the installation.

Figure 4 – Ensure RSAT features installed

Thank you for taking some time to read this and learning about the changes with RSAT in Windows 10 1809. We hope that this will help you as you transition to this recent build of Windows 10.

Good Luck!

 

 

Disclaimer
The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.