Citrix XenDesktop 7 – Create Persistent Hypervisor Connection and Hosting Unit, Unattended 13 Comments
I blogged about how to automate Citrix XenDesktop 7 deployment and database creation, and how to join and existing XenDesktop 7 site unattended, but now to continue and go a bit further in the automation process, I needed and wanted to know how to automate Hosting Configuration by Adding Connection and Resources to the DDC in an unattended way. This blog will cover creation process for XenServer 6.x and vCenter (vSphere) 5.1 since I don't have access to a Hyper-V (yet), I went over Citrix eDoc to check how I could do this and I found here : Thanks to Livio for some PowerShell help :) To Create a Persistent Hypervisor Connection new-item -path "xdhyp:\Connections" -Name MyConn -ConnectionType XenServer -HypervisorAddress "http:\\address" -UserName user -Password password -Persist PSPath: Citrix.HostingUnitService.Admin.V1.0\ Citrix.Hypervisor::XDHyp:\Connections\MyConn PSParentPath: Citrix.HostingUnitService.Admin.V1.0\ Citrix.Hypervisor::XDHyp:\Connections PSChildName: MyConn PSDrive: XDHyp PSProvider: Citrix.HostingUnitService.Admin.V1.0\ Citrix.Hypervisor PSIsContainer: True
Citrix XenDesktop 7 – Unattended from scratch 39 Comments
So auto-install and auto join an already XenDesktop 7 Site is cool but what if you need to automate the first DDC installation ? Here is how I did with help of a great blog (Timm Brochhaus) who made a script available for everyone, and I personally used it. Let's do it for a full automated installation, I will install all the components from XenDesktop 7. XenDesktopServerSetup.exe /COMPONENTS CONTROLLER,DESKTOPSTUDIO,DESKTOPDIRECTOR,LICENSESERVER,STOREFRONT /PASSIVE /NOREBOOT /CONFIGURE_FIREWALL /NOSQL New-XDDatabase -AdminAddress DDC02 -SiteName TEST-archynet_SITE -DataStore Site -DatabaseServer -DatabaseName XD7_archynet_Site -DatabaseCredentials\_XD New-XDDatabase -AdminAddress DDC02 -SiteName TEST-archynet_SITE -DataStore Logging -DatabaseServer -DatabaseName XD7_archynet_Logging -DatabaseCredentials\_XD New-XDDatabase -AdminAddress DDC02 -SiteName TEST-archynet_SITE -DataStore Monitor -DatabaseServer -DatabaseName XD7_archynet_Monitor -DatabaseCredentials\_XD Timm Brochhaus wrote a very cool blog and give you the explanation about a script he wrote to automate this part with a very useful script. Juts don't forget to run this script in 32bit mode.... I did use Timm's script and here is the result I got : Name : XD7-DB_Site DataStore : Site ServerAddress : MirrorServerAddress : IntegratedSecurity : True Name : XD7-DB_Logging DataStore : Logging ServerAddress : MirrorServerAddress : IntegratedSecurity : True Name : XD7-DB_Monitor DataStore : Monitor ServerAddress : MirrorServerAddress : IntegratedSecurity : True 3 databases were created, one for the Site informations, one for the log informations and a last one for monitoring (edgesight-like) Now we are ready for the next step which is site creation with the command New-XDSite New-XDSite -DatabaseServer -LoggingDatabaseName XD7-DB_Logging -MonitorDatabaseName XD7-DB_Monitor -SiteDatabaseName XD7-DB_Site -SiteName TEST_SITE2 -AdminAddress DDC02 with the result : Name : TEST_SITE2 Controllers : {METAL\DDC02} Databases : {Site, Logging, Monitor} DefaultIconUid : 1 LicenseInformation : PLT Metadata : {, , } If I use the script Timm make available and use
Citrix XenDesktop 7 – VDA Installation 7 Comments
The VDA version delivered with XenDesktop 7 bits is The VDA can be deployed two ways, via the GUI setup and in an unattended way. Using the GUI is easy and can be done very quickly - but it remains manual deployment. Here are screenshot so for the one who won't have time to check it out, you can already know what you might face very soon.   Next blog will be about VDA installation for Desktop and Server
Citrix XenDesktop 7 – Unattended Installation + Site join 18 Comments
We all need to automate things, we need to fast deploy, fast provision and stay lazy, not doing the same thing every day... So let check how we can industrialize XenDesktop 7 deployment (the easy part) and configuration (I guess the tricky part). First to deploy XenDesktop 7 using command line is simple and very well documented Installs XenDesktop Server Options can be (see documentation for further details): /COMPONENTS CONTROLLER, DESKTOPSTUDIO, DESKTOPDIRECTOR, LICENSESERVER, STOREFRONT /EXCLUDE <package> excludes a package from installation /HELP, /H, /? Shows this dialog /NOREBOOT Suppress reboot after installation (if needed) /PASSIVE, /QUIET Do not show UI during installation /REMOVE Remove components (instead of installing) /CONFIGURE_FIREWALL Configure Windows Firewall /NOSQL Do not install SQL Server Express 2012 /NO_REMOTE_ASSISTANCE Do not install Windows Remote Assistance when installing Director I will add a second server to my existing deployment (1 DDC, Windows 2012 XenDesktop 7) my command line to install components I need look like : XenDesktopServerSetup.exe /COMPONENTS CONTROLLER,DESKTOPSTUDIO /PASSIVE /NOREBOOT /NOSQL /CONFIGURE_FIREWALL The XenDesktop 7 "Framework" is now installed but the is still configuration an Site join to automate. Using Powershell this is an easy step as well : Add-XDController -SiteControllerAddress of one DDC) This command line will update the database automatically, if you do not wish to, you need to specify it : Add-XDController -SiteControllerAddress -DoNotUpdateDatabaseServer Note : if you had DesktopStudio open, to show the change on the new DDC, refreshing the mmc is not enough, you need to close and open it again. Last thing, to remove a DDC using command line, still with PowerShell : Remove-XDController -SiteControllerAddress of DDC you want to remove) This command line will update the database automatically, if you do not wish to, you need to specify it : Remove-XDController -SiteControllerAddress -DoNotUpdateDatabaseServer Note : You must execute this commend another DDC than the one you want to remove. So to sum-up, this is very easy to automate XenDesktop DDC deployment once the first DDC is set up. The next step will be to try to automate the first DDC installation and
Citrix XenDesktop 7 – Installation 14 Comments
XenDesktop 7 is now available with different features and entitlements (link) and yes there is a lot to read on this webpage but most of everything is already known features. So I will just write now what I read between the line : No more Citrix Streaming Application (RIP) in favor of Microsoft APP-V XenServer is now version 6.2 and Open Source ! Seamless Local Apps is now official and build-in. PVS is version 7 now and MCS continue its evolution. (I'll come back later on a blog post about that) Edgesight is included in XenDesktop 7 (Another blog post subject) Storefront is now version 2 Receiver for Windows is v4 Windows 8 and Windows 2012 supported Many other changes I need to cover later on Several editions are available today : Now this is time to show you how the installation process, pretty straight forward as I already mention and this is for those who are curious about this new version and don't have tie to POC it or try it right away.  
Symantec Endpoint Protection 12.1 RU1 and AppV 4.6 2 Comments
Another moment of pure fun with Symantec Endpoint Protection... I liked the version 11 so much and I was missing mysterious Symantec issue so much I decided to update the anti-virus software to 12 on all my customer XenDesktop virtual machines... The version we chose to deploy was Symantec Endpoint Protection 12.1 RU1 (version given by the security administration team), the update went fine, no BSOD, no weirdness and that was weird actually, I was prepare and ready for so much trouble, nothing happened ! the vDisk was updated and the only change this time was SEP, so I pushed the next vDisk into production. Few hours and next day, users were complaining about App-V applications launch issues, that was a known issue because the App-V infrastructure is a bit old (v4.5 on the server-side) and begin to have some weirdness after the weekly reboot (services started but no stream.., next blog post I guess) So we checked everything out around the App-V servers and App-V client (4.6 SP2) and the only things we saw was error in event log but nothing to really think App-V was the root of these issue. Some streamed applications were working some other not.
XenDesktop 5.6 – The WinRM service is unable to start. 10 Comments
During a XenDesktop 4 to 5.6 migration I had to deploy WinRM on Windows XP SP3 virtual machines. I had a Desktop Group of 60 Machines for developers with IIS installed on it. WinRM installation went fine but the configuration wasn't possible, I always got an error when the service was trying to start : The WinRM service is unable to start because of a failure during initialization. Additional Data The error code is 1300.   After trying to understand what was wrong I found in the Local Security Settings / Local Policies / User Rights Assignment / Generate security audits, only LOCAL SERVICE was authorize, so I just try to add NETWORK SERVICE account as well.
Windows Server 2012 – Migrating FSMO Roles 6 Comments
I installed one AD when Microsoft Windows Server 2012 was still in Release Candidate with the Datacenter edition, of course since few days my DC was rebooting every hour, the trial licence did expire few days ago.. So I had to install a new DC and promote it the transfer all FSMO roles from my "old" server to the new one. First thing I had to do is to add this new server to the existing forest as a new domain controller :
Microsoft Windows 8 Enterprise – Windows isn’t activated issue 1 Comment
This is an annoying issue, I just downloaded the ISO from Microsoft and had to face the impossibility to activate it... "Windows isn’t activated” Error Code : 0x8007007B, the filename, directory name, or volume label syntax is incorrect. The pre register product key is not good and you basically need to change it using the following command (using administrator privilege" Open a command prompt window slmgr /ipk HGTY3-JVFJH-3B5VD-WZR8D-JDGR8 (Your own product key of course) The old product key will be replaced with the new one and Windows 8 RTM will be activated