I am trying to deploy Remote Server Administration Tools as a part of task sequence when imaging a machine. For some reason I can't get it to install. I am attaching the script used to run please give me your thoughts:
REM ======================================================
REM SET DISM Directory based on OS Architecture
REM SET RSAT Version based on OS Architecture
REM ======================================================
IF EXIST %WINDIR%\SysNative\dism.exe (
set DISM=%WINDIR%\SysNative\dism.exe
set RSAT=amd64fre_GRMRSATX_MSU
) ELSE (
set DISM=%WINDIR%\System32\dism.exe
set RSAT=x86fre_GRMRSAT_MSU
)
REM ======================================================
REM RUN WUSA to install RSAT
REM ======================================================
RSAT-x64.msu /quiet
REM ======================================================
REM RUN DISM to enable features
REM ======================================================
%DISM% /online /enable-feature /featurename:RemoteServerAdministrationTools /featurename:RemoteServerAdministrationTools-Roles /quiet
REM ======================================================
REM EXIT Errorlevel
REM ======================================================
EXIT /b %errorlevel%