Deploy RSAT (Remote Server Management Applications ) for Windows 10 v1909 using ConfigMgr and Powershell
Introduction
Was released to MSDN users a week True to tradition, I am updating my Powershell script, so helping you to set up RSAT for Windows 10 1909 automatically and unattended.
I received quite some comments on my 1903 script, and thanks To that I made some improvements to the 1909 version. That includes:
Added test for pending reboots. RSAT if reboot is pending Attributes might not install successfully
Additional test by Group Policy
If WSUS is configured with Group Policy, history reveals that Additional settings might be required for some environments
Installing and empowering remote server Management Programs Using ConfigMgr 2007
It took me a while to find out something that is actually Very simple and logical… I could not get the different areas of the Remote Server Administration Tools (RSAT) empowered by command-line on Windows 7 x64… On Windows 7 x86 it is pretty straight forward, since it can be carried out with the default option DISM commands. But on Windows 7 x64 it is sort of hard to have it to use the version of DISM.
Because the ConfigMgr client is, configMgrClientThis is 32-bit program and a 32-bit application wants to System32, it is going to be redirected to%windir%\SysWOW64. I tried everything, actually defining the whole path to the DISM executable, but it didn’t matter… Until I eventually figured out that there’s just something named SysNative. WOW64 admits SysNative as a alias used to signify that the file system shouldn’t divert the access. As it was hard to discover this info enable some attributes and I will post my answer here to install RSAT. Here really is the batch-file I finished up:
REM ======================================================
REM SET DISM Directory based on OS Architecture
REM SET RSAT Version predicated on OS Architecture
REM ======================================================
IF EXIST %WINDIR%\SysNative\dism.exe (
set
set RSAT=amd64fre_GRMRSATX_MSU
) ELSE (
set DISM=%WINDIR%\System32\dism.exe
set RSAT=x86fre_GRMRSAT_MSU
)
REM ======================================================
RSAT to be installed by REM RUN WUSA
REM ======================================================
REM ======================================================
Attributes to be enabled by REM RUN DISM
REM ======================================================
Percent DISM% /online /enable-feature
Featurename:RemoteServerAdministrationTools-Roles
Featurename:RemoteServerAdministrationTools-Roles-HyperV /quiet
REM ======================================================
REM EXIT Errorlevel
REM ======================================================
The factors were set by the first part of this batch-file based on The structure and the next part will do the actual installing and enabling (in the example it will enable the Hyper-V supervisor ).
Download the Entire installer(s ) ) of Remote Server Administration Tools (amd64fre_GRMRSATX_MSU. Msu and/ or x86fre_GRMRSAT_MSU.
Copy the code above and create a batch-file.
Create a new Bundle in ConfigMgr 2007 (Site Database > Computer Management > Software Distribution > Packages) and point the Data Source to the place where the installer(s) as well as also the batch-file are.
Make a New Program with the package and use As command-line the title of this batch file.
Create a new Advertisement of the program that is newly created and It is ready to put in and empower!
Powershell
The script needs accessibility as well as rights To the Web (RSAT is set up via Microsoft Update).
The script is built around Get-WindowsCapability,
Yet again the script comes with 4 options:
-All (-All is installing ALL the features within the RSAT bundle)
-Basic (-Basic is installing AD DS, DHCP, DNS, Group
-ServerManager (-ServerManager is only installing the Server Supervisor )
-Uninstall (-Uninstall removes all RSAT features )
-Fundamental parameter on Windows 10 1909
An
D of running the script using the another example
Notice the logging if WSUS Appears to be configured with Group Policy.
Configuration Manager
I’m placing the Powershell script to use with an application in SCCM. While this is pretty SCCM, I have included a few snippets of this application under.
The setup program:
-NonInteractive -NoProfile -WindowStyle Hidden -File. \Install-RSATv1809v1903v1909. Ps1 -Fundamental
The anti virus program:
powershell.exe -ExecutionPolicy Bypass -NoLogo \Install-RSATv1809v1903v1909. ps1 -Uninstall