Power shell

Installing prerequisites for Citrix Xenapp 6.5 on Windows Server 2008 R2

Installing prerequisites for Citrix Xenapp 6.5 on Windows Server 2008 R2

I have been testing installing Xenapp 6.5 with PowerShell in a work test lab as part of our Implementation. All in all, using PowerShell with XA6.5 rocks, but getting the pre-reqs to install in one script has been a total Ballbag. However, as usual all the problems I had were of my own creation. Once such problem, which I think might be useful for others is below.

I tried the below code to install the needed roles, including RDS

Import-Module Servermanager

Add-WindowsFeature NET-Framework-Core,Ink-Handwriting,Remote-Desktop-Services,Desktop-Experience| Out-Null

When i ran this script i got the below errors, which was strange as I hadn’t specified the Hyper-V role.

PS C:> .test.ps1 Add-WindowsFeature : Hyper-V cannot be installed The processor on this computer is not compatible with Hyper-V. To install this role, the processor must have a supported version of hardware-assisted virtualization, and that feature must b e turned on in the BIOS. At C:test.ps1:2 char:19 + Add-WindowsFeature <<<<NET-Framework-Core,Ink-Handwriting,Remote-Desktop-Services,Desktop-Experience| Out-Null + CategoryInfo: InvalidOperation: (:) [Add-WindowsFeature], Exception + FullyQualifiedErrorId : ConfirmActionOrVetoFailed,Microsoft.Windows.ServerManager.Commands.

AddWindowsFeatureComm &nbsp;and Add-WindowsFeature : Install was cancelled. At C:XAPStest.ps1:2 char:19 + Add-WindowsFeature <<<<NET-Framework-Core,Ink-Handwriting,Remote-Desktop-Services,Desktop-Experience| Out-Null + CategoryInfo: OperationStopped: (:) [Add-WindowsFeature], Exception + FullyQualifiedErrorId : AbortAdd,Microsoft.Windows.ServerManager.Commands.


After a few days of searching and general head scratching I tried installing just RDS-RD-Server on its own which worked. I then realised that the feature Remote-Desktop-Services is the whole of RDS including Remote Desktop Virtualisation Host, which I assume is for VDI.Which would explain why I was getting the above error. annoying

The working script is below, it’s only 2 lines but represents a few hours of work.

Import-Module Servermanager
Add-WindowsFeature NET-Framework,Ink-Handwriting,Desktop-Experience,RDS-RD-Server