Difference between revisions of "Microsoft Remote Server Administration Tools"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(created page)
 
m
 
Line 105: Line 105:
  
 
</source>
 
</source>
 +
 +
 +
[[Category:Silent Installers]]
 +
[[Category:Microsoft software]]

Latest revision as of 10:21, 22 February 2014

Microsoft Remote Server Administration Tools

Download the tools for Windows 7 and for Windows 8, as needed.


<package
   id="remote_server_admin"
   name="Microsoft Remote Server Admin Tools"
   revision="1"
   reboot="false"
   priority="0">

    <variable name="PKG_SOURCE"         value="%SOFTWARE%\remote_server_admin\7_sp1\Windows6.1-KB958830-x86-RefreshPkg.msu" os="6\.1\.\d{4}" architecture="x86"/>
    <variable name="PKG_SOURCE"         value="%SOFTWARE%\remote_server_admin\7_sp1\Windows6.1-KB958830-x64-RefreshPkg.msu" os="6\.1\.\d{4}" architecture="x64"/>
    <variable name="PKG_SOURCE"         value="%SOFTWARE%\remote_server_admin\8.1\Windows8.1-KB2693643-x86.msu" os="6\.3\.\d{4}" architecture="x86"/>
    <variable name="PKG_SOURCE"         value="%SOFTWARE%\remote_server_admin\8.1\Windows8.1-KB2693643-x64.msu" os="6\.3\.\d{4}" architecture="x64"/>

    <!-- Is it installed? -->
    <check type="execute" condition="exitcodeequalto" path="dism /online /get-featureinfo /featurename:RemoteServerAdministrationTools" value="0" />

    <!-- Use this check if we're also going to force it enabled -->
    <check type="execute" condition="exitcodeequalto" path="dism /online /get-featureinfo /featurename:RemoteServerAdministrationTools | find &quot;State : Enabled&quot;" value="0" />

    <install cmd="wusa &quot;%PKG_SOURCE%&quot; /quiet /norestart" >
      <exit code="0" />
      <exit code="3010" /> <!-- add reboot="postponed" to force a reboot; otherwise, Windows will ask the user -->
      <exit code="-2145124329" /> <!-- seems to mean already installed -->
    </install>

    <!-- now enable all the features
         N.B. The /all option does not appear to work on Windows 7 -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools" />

    <!-- Server Manager -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-ServerManager" />

    <!-- Certificate services -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-CA" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-OnlineResponder" />

    <!-- AD roles -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-SnapIns" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-AdministrativeCenter" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-NIS" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-LDS" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-Powershell" />

    <!-- IP address management -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-DHCP" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-DNS" />

    <!-- File services -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-Dfs" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-Fsrm" />
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-StorageMgmt" />

    <!-- HyperV -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-HyperV" />

    <!-- RDS -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-RDS" />

    <!-- Features: -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features" />

    <!-- BitLocker -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-BitLocker" />

    <!-- Clustering -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-Clustering" />

    <!-- GP -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-GP" />

    <!-- LoadBalancing -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-LoadBalancing" />

    <!-- SmtpServer -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-SmtpServer" />

    <!-- StorageExplorer -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-StorageExplorer" />

    <!-- StorageManager -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-StorageManager" />

    <!-- Wsrm -->
    <install cmd="dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-Wsrm" />

    <upgrade include="install" />

    <remove cmd="wusa /uninstall /kb:958830 /quiet /norestart" os="6\.1\.\d{4}">
      <exit code="any" />
    </remove>
    <remove cmd="wusa /uninstall /kb:2693643 /quiet /norestart" os="6\.3\.\d{4}">
      <exit code="any" />
    </remove>

</package>