XenApp 6.5 PowerShell Commands to install pre-requisites
The following steps detail installing some of the XenApp 6 prerequisites via PowerShell. My preference when it comes to install any pre-requisites is to try and get them done prior to any installs. I do have to mention that these are not the full requirements for XenApp as it requires a large number of IIS components. Anyone who wants the full list can have a look at the XenApp setup log file once complete. The list is quite big and details the individual roles and features.
The following details the minimal roles and features to run a fully automated install, for example missing out the Desktop Experience feature will prompt you to reboot mid-way through the install.
Run the following command in an administrative PowerShell window.
1. Set the Execution Policy to All Signed. As PowerShell is set to run with the most restrictive settings by default (Restricted), this will allow a PowerShell Window running in administrative mode to execute the policy immediately.
Set-ExecutionPolicy AllSigned –Force
2. Open the ServerManager module for Windows PowerShell. This will import the Servermanager cmdlet to allow you to add the required roles and features.
Import-Module ServerManager
3. Install .Net Framework
Add-WindowsFeature as-net-framework
4. Install Remote Desktop Services
Add-WindowsFeature RDS-RD-Server
5. Reboot the Server
6. Open the ServerManager module for Windows PowerShell
Import-Module ServerManager
7. Enable the Windows 7 Desktop Experience
Add-WindowsFeature Desktop-Experience
8. Reboot the Server
Now you will be able to run through the automated XenApp install using XenAppSetupConsole.
The following code snippet has all the commands in one window.
Set-ExecutionPolicy AllSigned –Force Import-Module ServerManager Add-WindowsFeature as-net-framework Add-WindowsFeature RDS-RD-Server Import-Module ServerManager Add-WindowsFeature Desktop-Experience
Regards
Christopher Tracy