Deploy the Client by Using an Unattended Installation Script

Applies To: Windows Server 2008, Windows Server 2008 R2

Another way of deploying the Windows Rights Management client is by creating an unattended installation script.

Including the installation of the AD RMS client in a script does not require extracting the Windows Installer files from the downloaded file, as the installation can be performed automatically through the following command:

WindowsRightsManagementServicesSP2-KB917275-Client-ENU.exe -override 1 /I MsDrmClient.msi REBOOT=ReallySuppress /q -override 2 /I RmClientBackCompat.msi REBOOT=ReallySuppress /q

This command starts the unattended installation of the RMS client. Because this is a completely unattended installation run in the background, the installer does not inform the user when it is complete. Success or failure of the installation should be determined through some other mechanism such as a software inventory service.

The following is an example of how you might deploy the client via an unattended installation script.

Fabrikam, a fictitious company, needs to deploy the Windows Rights Management client to 50 of their legacy Windows XP machines. These clients run logon scripts everyday when they log on to the network. The Fabrikam administrator has decided that he will use a logon script to deploy the executables. In order to do this, he sets up a network share called \\ADRMS\WRMClient. On that share, he copies the x86 client, WindowsRightsManagementServicesSP2-KB917275-Client-ENU-X86.exe. He uses the script below to force the unattended installation.

'
' Deploy Windows Rights Management x86 Client
'
' The purpose of this script is to map a network drive
' and then run the Windows Rights Management client installer 
' file in silent mode
'
' --------------------------------------------------------

Option Explicit
Dim objNetwork, strDrive, strUNC, WshShell
Set objNetwork = CreateObject("Wscript.Network")
strDrive = "K:"
sUNC = "\\ADRMS\WRMClient"
On Error Resume Next
objNetwork.RemoveNetworkDrive strDrive
On Error Goto 0
objNetwork.MapNetworkDrive strDrive, sUNC
Set WshShell = Wscript.CreateObject("WScript.Shell")
WshShell.Run "K:\WindowsRightsManagementServicesSP2-KB917275-Client-ENU-X86.exe -override 1 /I MsDrmClient.msi REBOOT=ReallySuppress /q -override 2 /I RmClientBackCompat.msi REBOOT=ReallySuppress /q"

' End Script