Friday, December 17, 2021

CVAD 715 upgrade-to-1912

 This is a guide on how I upgraded my site from 7.15 flat all the way to 1912. I covered the basics of upgrading Licensing, D.D.C. upgrades, Storefront upgrades with NS VIP configuration, P.V.S. upgrades, WEM upgrades, V.D.A. upgrades, and some re-configuration of Snap-ins with the Director for A.D.M. and session recording. I also included moving off 2012R2 to 2016 D.D.C.s with some troubleshooting situations you might run into.




  1. References for detailed instructions

  2. https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/upgrade-migrate/upgrade.html

  3. https://www.carlstalhood.com/delivery-controller-1912-ltsr-and-licensing/#licensingupgrade















  1. Upgrade the licensing Server

  2. Go download the version you need. In this case, it 11.16.3.0 Build 29000

  3. Run the CTX_licesning installer
















  1. Check the box to agree.












  1. After upgrading Citrix Licensing Server, in Citrix Studio, go to Configuration and Licensing.

  2. On the right, click Authenticate Certificate.




  1. Open Citrix licensing Manager

  2. I was prompted to register my licensing Server with Citrix Cloud.

  3. Licensing Manager might prompt you to register with Citrix Cloud.


  1. On the Settings > Usage and Statistics page, in the Share usage statistics with Citrix section, click Register.














  1. You'll see a screen with a registration code. Click the Copy button and then click Register to be taken to Citrix Cloud.


  1. After logging in to Citrix Cloud, on the top left, click the menu (hamburger) icon and then click License & Usage. If you don't see this link, you might have to log out and log back in.





  1. In the License & Usage service, switch to the Registrations tab.


  1. Click the blue Register button in the middle of the page to register.












  1. Paste in the copied code and then click Continue. Click Register.






  1. On-premises Licensing Manager, it will eventually show as Registered.


  1. On the same Usage & Statistics page, scroll down and click Upload now. This should cause data to upload to Citrix Cloud and appear in Citrix Cloud License & Usage.


  1. Citrix.cloud.com reporting





  1. *Note*For me, I always check and make sure it shows activated within Studio and is set to the right product edition



  1. Upgrade V.D.A. to 1912

  2. I also upgrade my V.D.A.s ahead of time. It's easy and something I just do.

  3. Depending on your provision side. P.V.S., M.C.S. or old fashion servers( which is still used)

  4. Mount ISO and upgrade




  1. Upgrade Delivery Controllers 7.15.5000


  1. Snapshot your Delivery controller

  2. Backup your SQL databases

  3.  Attach the 7.15 CU5 media

  4. Run the Studio and Server Components for the upgrade

  5. Read and Accept

  6. Read and make sure you take the correct actions you need in your environment.

  7. Start your Preliminary Test and make sure you are good!


  1. Firewall Ports

  2. Summary


  1. Upgraded process started




  1. Connect to Call home if you need to

  2. 13 Launch Studio





  1. **NOTE**

  2. "If you already have 2 controllers, then In Load Balancing, reactivate the servers with the new Delivery Controller version and set the second half of the servers to Down. Follow the top steps on the second half of the Delivery Controller Server. Activate each Server with the new Delivery Controller Server version in Load Balancing again."


  1. 14. I am adding a 2016 server to move off 2012R2. I will add the Second 2016 server in, then make sure the 2016 is handling the connections. Then Decom 2012R2 and add a new second (replacement of 2012R2 as 2016 server.

  2. 15. Attach the 7.15.5000 ISO, click on XenDesktop or XenApp (depends on your deployment)

  3. 16. XenDesktop allows for both XenApp and XenDesktop. XenApp is only XenApp.

  4. 17. Select Delivery Controller

  5. 18. Read and Understand, accept


  1. 19. We only want, Delivery Controller, Studio and Director





  1. 20.  I don't want SQL express in the step, Uncheck it

  2. 21. Review and make sure firewall is configured based on your environment


  1. 22. Installs

  2. 23. This will take about 5-7 minutes



  1. 24. Select call home options

  2. 25. Finish, reboot, and then launch Studio

  3. 26. After Studio is opened, select "Connect this Delivery Controller to an existing site."

  4. 27. Add the primary D.D.C.






  1. 28. It will ask to update the D.B. automatically. I select yes and will put in my SQL creds


  1. 29. Studio will open and show the Site

  2. 30. Run a Site check to make sure it's good.

  3. This will take 10 minutes.

  4. Looks good.

  5. At this point, I have the following.

  1. 2012R2 715.5000 Deliver Controller

  2. 2016 7.15.5000 Delivery Controller.

  3. Bother are upgraded from 7.15 to 7.15.500


  1.  Now we will begin the 7.15.500 upgrade to 1912 L.T.S.R.

  2. Snapshot your Delivery controller

  3. Backup your SQL databases

  4.  Attach the 1912 media

  5. Run the Studio and Server Components for the upgrade


  1. Read and accept





  1. Make sure the following has been completed to ensure an upgrade will go smooth.

  2. Licensing Error I received when I clicked next. Even though I upgraded my licensing version to 11.16.3.0 build 29000, I had to update my licensing files past November 2019. I logged into my Citrix Licensing manager. Https://yourCTXlicServer.FQDN:8083, then selected check for available renewals. Follow the prompts to get an updated timestamp.



  1. Before 

  2. After

  3. This is not production; my specs are lower than what it wants. However, I will meet the minimum to ensure the upgrade is solid.




  1. Server specifications

  2. https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/system-requirements.html

  3. Let's pick back up where I left off. Preliminary Site Test( Run this to ensure no errors exist)



  1. Test in progress

  2. b. 2 test will not run, as they don't apply








  1. Results go through and test all the orchestrations of the environment.


  1. Firewall ports 



  1. Summary, then click upgrade



  1. Upgrade progress




  1. Upgraded, but reboot needed

  2. After reboot it will resume. Now on Post Install….

  3. Connect to Citrix Cloud for Diagnostics data if needed in your environment.





  1. Finished and now open Studio.

  2. Now upgrade the Database through Studio (my service account has permissions)




  1. It will ask you again, about backing up the D.B.

  2. Add the Creds, unless you are logged into the Server as the account (Account needs proper permissions, in Citrix, and on the servers)

  3. It's now started.

  4.  Going, 9 successful… G.O.O.O.D. so far.

  5. Still going well

  6. Finished


  1. You now need to do the second Delivery controller we added early in the process. It's the 2016 server.


  1. Remote to the Server, Attach the Media, and I double click on the mounted ISO from my hypervisor

  2. Click Upgrade on Studio and Server components.

  3. Read and Agree

  4. Ensure the following is completed, although it's a second D.D.C.

  5. Firewall for D.D.C. and Director








  1. Summary

  2. Warning pop up about not being able to stop it once it starts.


  1. Upgrading has started ( The Time says 13 minutes) Sometimes it's accurate, or not accurate.

  2. Machine needs to be rebooted to apply some .Net settings/updates

  3. Rebooted, and now it's still applying them.

  4. Log back in, and it will resume back to the place it was at. Be patient!










  1. Connect to Citrix Cloud for Diagnostics data if needed in your environment.








  1. Now launch Studio


  1. Start the automatic site upgrade

  2. Since this has already run, it shouldn't take long.



  1. Studio is now launched.

  2. Lets to a site Test on the Delivery controller.

  3. Things passed, and look good






  1. Let's do a Machine Catalog and Delivery group test. (Failed)?!! Looks like my Delivery controllers don't have the updated vcenter cert. Let me fix this. I simulated a failure to show the value of running the tests.

  2. I fixed my cert by following this

  3. https://support.citrix.com/article/CTX138640



  1. Now once both had updated 1912 Software, go into the first Delivery Controller and finish the "upgrade remaining delivery Controllers"

  2. Once all the Delivery Controllers and V.D.A.s are upgraded, within Citrix Studio, view your Catalog for the current functional level (Set to V.D.A. version you have in the catalogs). Citrix Virtual Apps and Desktops (C.V.A.D.) 1912 lets you upgrade your Catalogs and Delivery Groups to functional level 1811 if needed.

  3. **WARNING****

  4. Don't upgrade the Catalog or Delivery Group until all V.D.A.s with the Catalog and Delivery Group are V.D.A. version 1811 or newer.




  1. Then upgrade the Delivery Groups by right-clicking on a Delivery Group and clicking Upgrade Delivery Group.




  1. This concludes the upgrade for the Delivery controller.

  2. Now let's Decom one Delivery controller, that is 2012R2.


  1. *Note*

  2. https://discussions.citrix.com/topic/388816-decommission-delivery-controller/

  3. https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/manage-deployment/delivery-controllers.html

  4. Active connections should not be dropped if you remove a delivery controller from the site. Remove the controllers from Storefront first, then from Studio. Any V.D.A.s registered to the controller should re-register with the remaining controllers, however this may take a few minutes, so a resource that hasn't registered yet might be unavailable for a relatively short time.

  5. You could also stop the Broker service on the redundant controllers which would also cause any registered V.D.A.s to de-register.

  6. Whilst doing this during business hours should be OK, there's always a risk that for some reason a V.D.A. doesn't register with the remaining controllers, so unless you can't avoid it, doing it out of hours, or during low use phases is always preferable.





  1. Remove the controllers from Storefront first

  2. Then from Studio

  3. Make sure the Controller is powered on so that Studio loads in less than one hour. Once Studio loads the Controller you want to remove, power off the Controller when prompted to do so.

  4. Select Configuration > Controllers in the Studio navigation pane and then select the Controller you want to remove.



  1. Select Remove Controller in the Actions pane. If you do not have the correct database roles and permissions, you are offered the option of generating a script that allows your database administrator to remove the Controller for you.






  1. This error is out. So, I did it and selected no, here.

  2. Then it asked to generate a D.B. script, for the Database guys

  3. This still didn't remove it. So, at this time I found the C.T.X. link, 

  4. https://support.citrix.com/article/CTX139505

  5. https://www.jgspiers.com/remove-orphaned-delivery-controller-xenapp-xendesktop-site/


  1. Run “Get-BrokerController”


  1. Then run this POSH Script



  1. It will put a Evict.txt file in either your profile %userprofile% or C:\windows\system32. Give this file to your D.B.A. 


  1. Then Run it on the database.








  1. Check Studio and it's gone.


  1. Any V.D.A.s registered to the controller should re-register with the remaining controllers




  1. Adding a second 2016 Delivery controller now to slit the broker balancing out

  2. Install Virtual apps and Desktops





  1. Select Delivery Controller

  2. Read and accept



  1. Select the components you need.









  1. Install the Feature you need (NO Local SQL for me)

  2. Firewall ports



  1. Summary

  2. Extracting Files

  3. Machine needs to reboot

  4. Collect diagnostic Information

  5. Finished, now launch Studio

  6. Connect the delivery controller to an existing site

  7. Add the delivery controller address that is already a part of the site.

  8. For this part, in my environment I selected yes

  9. Enter my creds to add to the database, then let the process begin.

  10. I now have 2 controllers that are 2016


  1. Both servers are 


  1. Remember to update the List of D.D.C.s for the new D.D.C. to register the machines.

  2. https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/manage-deployment/vda-registration.html











  1. Finalize Citrix Director

  2. Finalize Director upgrade run this.c

  3. C:\inetpub\wwwroot\Director\tools\Directorconfig.exe /upgrade



  1. If you use Citrix A.D.M., and Citrix Session Recorder you will need to register the Snap In back after all the upgrades. This is so you can control the feature in Director


  1. Register Director ADM MAS back

  2. 21. If using HTTPS to connect to Insight Center then the Insight Center certificate must be valid and trusted by both the 22.

  3. 22. Director Server and the Director user's browser.


  1. 23. To link Citrix Director with NetScaler HDX Insight, on the Director server run

  2. 24.  C:\inetpub\wwwroot\Director\tools\DirectorConfig.exe /confignetscaler.


  1. 25. Enter Machine name or I.P.: Netscaler Insights machine or I.P. vs1ctxadm01.jaxnavy.org

  2. 26. Enter 1 for Citrix A.D.M. (aka M.A.S.).

  3. 27. Rest is self-explanatory




  1. Register Director Snapin back for Session recording


  1. 17. Run C:\inetpub\wwwroot\Director\tools\DirectorConfig.exe /configsessionrecording

  2. 18. Enter the Session Recording F.Q.D.N. (server. F.Q.D.N.) 19. Enter 1 for HTTPS.

  3. 20. Enter 443 as the port




Upgrading or replacing the SQL LocalDB for Local Host Cache for 1912 or 1912 CU1

There has been some recent change to the L.T.S.R. article around Local Host Cache upgrades

https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/upgrade-migrate/upgrade.html#replace-sql-server-express-localdb

  • When upgrading Delivery Controllers to Citrix Virtual Apps and Desktops version 1912 or 2003: Upgrading SQL Server Express LocalDB is optional. Local Host Cache works properly, with no loss of functionality, regardless of whether you upgrade SQL Server Express LocalDB. We added the option to move to a newer version of SQL Server Express LocalDB in case there are concerns about the end of support from Microsoft for SQL Server Express LocalDB 2014.

  • When upgrading Delivery Controllers to Citrix Virtual Apps and Desktops versions newer than 2003: The minimum supported version is SQL Server Express 2017 LocalDB Cumulative Update (CU) 16. If you originally installed a Delivery Controller earlier than version 1912, and have not replaced SQL Server Express LocalDB with a newer version since then, you must replace that database software now. Otherwise, Local Host Cache will not work.

As you can see here, at one time it stated you needed to upgrade, or it would not work. However, it doesn't seem that it is 100% anymore. I think that's why Citrix updated the doc. 

As can be seen here some had the same concerns or questions around it. I most certainly did. 

 

  1. So, let's get started. I always do a snapshot first. Which is completed. 

 

  1. Complete the upgrade of your Citrix Virtual Apps and Desktops components, databases, and site. (Those database upgrades affect the site, monitoring, and configuration logging databases. They do not affect the Local Host Cache database that uses SQL Server Express LocalDB.)


  1. As you can see, I am on 1912 CU1 and have M.S.Q.L. Express 2014


 

  1. On the Delivery Controller, download PsExec from Microsoft. See the Microsoft document PsExec v2.2.


 

  1. Stop the Citrix High Availability Service

  1. Open C.M.D. as Admin and open PsExec.exe

psexec -i -u "NT AUTHORITY\NETWORK SERVICE" cm

  1. Move to the folder containing SqlLocalDB.

cd "C:\Program Files\Microsoft SQL Server\120\Tools\Binn"

 

 

  1. Stop and delete CitrixHA (LocalDB).

If you don't stop is you will get this error  ( Me not paying attention)

SqlLocalDB stop Citrix

SqlLocalDB delete Citrix

 

  1. Remove the related files in C:\Windows\ServiceProfiles\NetworkService

 

  1. Uninstall SQL Server Express LocalDB 2014 from the Server, using the Windows feature for removing programs

 

  1. Install SQL Server Express LocalDB 2017. In the Support > SQLLocalDB folder on the Citrix Virtual Apps and Desktops installation media, double-click sqllocaldb.msi

 

 

  1. Reboot the Server and make sure this is started "Citrix High Availability Service".

 

 

 

 

 

  1. Logged on and it took about 15 seconds to show up

 

  1. Then 60 seconds or so on this

11. Check if the Citrix Db is created.

 

 CitrixHA is re-created the next time a configuration sync occurs. After a minute or two, use the SqlLocalDB utility to confirm that CitrixHA has been re-created.

SqlLocalDB i

CitrixHA

MSSQLLocalDB

 

 

Exmaple

While still in the PsExec session run this

C:\Program Files\Microsoft SQL Server\120\Tools\Binn>SqlLocalDB i

CitrixHA

MSSQLLocalDB

 

 

  1. You will see this until you do the second broker

 

  1. After I did my second Broker this was in the logs

 

  1. But then I see this almost every 2 minutes. I remember reading about this. But I thought it was fixed many versions ago. 

 

Did some google on the Errors and came up with the 2 links below.

https://support.citrix.com/article/CTX230775

https://blog.citrix24.com/xendesktop-7-15-local-host-cache-troubleshooting/

 

 

 

  1. LHC DB upgrade reference

 

https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/upgrade-migrate/upgrade.html#replace-sql-server-express-localdb

 

  1. Turns out some A.D. accounts were deleted over time, and it had some bad S.I.D.s.

  2. So, I ran the quick script to get the output.

 

Get-BrokerApplication |foreach {if ($_.AssociatedUserNames -match "S-1-5-21") {$_.Name; $_.AssociatedUserNames -match "S-1-5-21"; ""}}

 

 

  1. Went into Studio and deleted them from the location it displayed above. Which was in a Published application visibility.

 

  1. Then CTX230775 was needed to redo the LHC DB. So quickly ran through the process and it fixed the error. 

 

So, in summary, this is how I upgraded the LHC DB and some minor troubleshooting. Hope it helps someone

 

 

 




  1. Citrix StoreFront 7.15 to 1912 (Example I did on one S.F. server on the upgrade. But you would want 2 servers)



  1. If you have a Load balancer, disable it in your load balancer. This way traffic doesn't route to it. (Assuming you have 2 or more storefront servers)

  2. In my case I have a LB Vserver and I.P. is X.X.X.X. and back end servers are A.A.A.A  and B.B.B.B.

  3. Server A.A.A.A is disabled

  4. Browse the ISO

  5. Accept the terms


  1. Ready to install

  2. Installing

  3. Upgrade has finished



  1. I am adding a new StoreFront Server, so this will be a new install and add to the Storefront store. I just browse to the StoreFront application and run it.

  2. License agreement

  3. Review prerequisites

  4. Ready to install


  1. Installing Software

  2. Successfully installed Storefront

  3. Join existing server group

  4. On the Primary StoreFront Server click "Add Server" here to get an Authorization Code



  1. Take this information and input it on the secondary StoreFront Server


  1. Inputted information on Second Server


  1. Joining

  2. Sever joined

  3. Now Add IIS Cert and Bind it to 443 in IIS


  1. Add this second Server into NetScaler LB(I already have the one added in N.S.)

  2. https://docs.citrix.com/en-us/storefront/current-release/integrate-with-citrix-gateway-and-citrix-adc/load-balancing-with-citrix-gateway.html

  3. https://docs.citrix.com/en-us/storefront/current-release/integrate-with-citrix-gateway-and-citrix-adc/load-balancing-with-citrix-gateway.html#citrix-service-monitor



  1. Add Server in netscaler>Traffic Management>Load Balancing>Servers

  2. Add Server

  3. Add service

  4. Add monitor 


  1. Now go bind it, once you bind it to the Service you will notice its down. Which is normal, from what I have gathered.




  1. The StoreFront monitor by default is only via HTTP.I created earlier is trying to probe the backend services of our Server through HTTPS.


  1. To fix this do this:


  1. Run PowerShell as an administrator.

  2. PS C:\Program Files\Citrix\Receiver StoreFront\Scripts> .\ImportModules.ps1




  1. PS C:\Program Files\Citrix\Receiver StoreFront\Scripts> Get-DSServiceMonitorFeature http://localhost:8000/StorefrontMonitor





  1. Now run the command Set-DSServiceMonitorFeature -ServiceURL https://localhost:443/StoreFrontMonitor.


  1. All steps outlined in Red



  1. Now you will see the monitor come alive on the Service.



  1. Now bind it to the main Vserver


  1. Provisioning Server 1808 to 1912


  1. Please check if the previous version needs to be uninstalled first. Some versions, Citrix wanted you to uninstall the older version first. But most of the time you don't. 

  2. Example here: https://discussions.citrix.com/topic/400292-pvs-server-upgrade-1808-to-1811-please-uninstall-pvs-server/

  3. We are updating 1808 to 1912 so an in place upgrade is good.

  4. Before I start I make sure I use a service account that is tied to the database so it can upgrade the database.

  5. I put the account in the local admin of the P.V.S. servers and use it to do the upgrades


  1. Machine generated alternative text:
•I Panel 
All Control Panel Items Programs and Features 
Uninstall or change a program 
Search Programs and Fei 
To uninstall a program, select it from the list and then click Uninstall, Change, or Repair. 
Orga nize 
Uninstall Repair 
Citrix Diagnostics Facility 
Citrix Host Service PowerSheII snap-in 
Citrix Provisioning Consolexæ 1811.1.0 
Citrix Provisioning Server x64 1808.1.0 
Publisher 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Installed On 
8/30/2017 
12/28/2018 
12/28/2018 
10/16/2018


  1. After the uninstall has completed, restart the Server. When it comes back up, log back in with the service account.


  1. Attach the ISO.  Run Server installation


  1. Machine generated alternative text:
Citrix Provisioning 
Console Installation 
Server Installation 
Larget Device Installation 
Help and Support 
DVD 
Install the Server and its dependencies. 
O Exit


  1. Click "Install", the process will begin and then the window will disappear for a couple of minutes while it installs some of the pre-requisites. 


  1. Machine generated alternative text:
Citrix Provisioning Server x64 1906.1.0 InstallShieId Wizard 
Citrix Provisioning Server x64 1906.1.0 requires the following items to be installed on 
your computer Click Install to begin installing these requirements. 
Status 
succeeded 
Succeeded 
Installing 
Pending 
Pending 
Pending 
P ending 
Requir ement 
CDF x64 
Telemetry Service x64 
Broker Snapin v2 x64 
Host PovverSheII Snapln v2 x64 
DelegatedAdmin PonerSheII Snapln x64 
ConfigLogging_PonerSheIISnapInx64 
Con figur a ton _P o n er ShellSnapInx64 
Installing Broker Snapin v2 x64


  1. When the window pops back up Click "Next". 


  1. Machine generated alternative text:
Citrix Provisioning Server x64 19120.0 LTSR 
CiTRlX' 
Welcome to the Installation Wizard for Citrix 
Provisioning Server x64 1912.0.0 LTSR 
The InstallShieId(R) Wizard will install the Citrix Provisioning 
Server x64 1912.0 O LTSR on your computer To continue, dick 
WARNING : This program is protected by copyright Ian and 
international treabes. 
Next >


  1. Accept the License Agreement and click "Next"


  1. Machine generated alternative text:
Citrix Provisioning Server x64 19120.0 LTSR 
License Agreement 
You must view the enbre license agreement in order to continue. 
Last Revised: November I, 20 IS 
CITRIX LICENSE AGREEMENT 
CiTRlX 
This is a legal agreement AGREENENT") between the end-user customer ("you"), 
and the providing Citrix entity (the applicable providing entity is hereinafter refe«ed 
to as "CITRIX"). This AGREENENT includes the Data Processing Agreement: the 
Citrix Services Security Exhibit and any other documents incorporated herein by 
reference. Your location of receipt of the Citrix pro duct (hereinafter "PRODUCT") and 
maintenance (hereinafter "NIANTENANCE") detennines the providing entity as 
identified at https•J,".v•.v•.v BY 
accept the terms n the license agreement 
C) I do not accept the terms n the license agreement 
InstallShieId 
Next >



  1. Machine generated alternative text:
Citrix Provisioning Server x64 19120.0 LTSR - InstallShieId Wizard 
Default Firewall Ports 
Default firewall gu•rts used by Citrix Provisioning Server , target device, and 
CiTRlX 
Source 
CPV Server 
CPV Server 
CPV Server 
CPV Target Device 
Destination 
CPV Server 
MS SQL server 
Domain Controller 
DHCP server 
Type 
UDP 
TCP 
TCP 
UDP 
Port 
6890-6909 
389 
67 / 4011* 
Automatcally open all Citrix Provisioning Refer to supportarbde 
o 
CTX101810 for more informaton. 
@iwill open the Citrix Provisioning ports manually. 
InstallShieId 
Next >




  1. Enter "Something" in the User Name and Organization Fields, then click "Next"




  1. Machine generated alternative text:
Citrix Provisioning Server x64 19120.0 LTSR 
Custo mer Information 
Please enter your information. 
wstarcl 
Qrganiza bon: 
Install this application for: 
@Anyone who uses this computer (all users) 
C) Only for ne (Windows user) 
InstallShieId 
Next > 
CiTRlX


  1. Click "Next".


  1. Machine generated alternative text:
Citrix Provisioning Server x64 19120.0 LTSR 
Click Next to install to this folder , or dick Change to install to a different folder. 
Install Citrix Provisioning Server x64 1912.0. O LTSR to: 
C : program o visioning Services 
InstallShieId 
Next > 
CiTRlX


  1. Click "Install". 


  1. Machine generated alternative text:
Citrix Provisioning Server x64 19120.0 LTSR 
Ready to Install the Program 
The Wizard is ready to begin installation. 
Click Install to begin the installation. 
CiTRlX 
If pu want to review or change any of your installation settings, dick Back. Click Cancel to 
exit the wizard. 
InstallShieId 
Install


  1. Installing

  1. Machine generated alternative text:
Installing Citrix Provisioning Server x64 1912.0.0 LTSR 
CiTRlX 
The program features you selected are being installed. 
Please vvait while the Installation Wizard fistalls Citrix Provisioning Server 
x64 1912.0.0 LTSR. This may take several minutes. 
Status: 
•stallShieId

    1. Click "Finish".

  2. Machine generated alternative text:
Citrix Provisioning Server x64 1912.0.0 LTSR 
Installation Wizard Completed 
CiTRlX' 
The Installaton Wizard has successMIy installed Citrix 
Provisioning Server x64 1912.0. O LTSR. Click Finish to exit the 
Wizard.


  1. The Configuration wizard will start.

  2. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
CiTRlX 
Welcome to the Configuration Wizard 
The Configuraton Wizard provides an easy nay to 
setup a basic Server configuraton. 
The Wizard enables the collecton of Always on Tracing 
(AOT) logs. They are stored in the AOT folder at 
ProgramData\Citrixprovisioning Servicesuog. For more 
informaton, refer to the Troubleshootng secton in the 
Citrix Provisioning documentaton. 
For advanced configurations, see the Installation and 
Configuraton Guide. 
You can always run the Configuration Wizard again 
later from the Start Menu 
Next >




  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
DHCP Se rvices 
Specify the service that will provide [P address assignments to Citrix Provisioning 
target devices. 
C) The service that runs on this computer 
Microsoft DHCP 
Citrix Provisioning BOOTE service 
other 800TP or DHCP service 
@The service that runs on another computer 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
PXE Se rvices 
Specify which service will deliver this nformabon to target devices. 
During the PXE boot process the bootstrap fie name and FQDN/TP address of the 
TFTP server hosing the bootstrap are delivered via a PXE service or DHCP opbons 
66/67 
O 
Microsoft DHCP on this computer 
@Citrix Provisioning PXE service on this computer 
C) The service that runs on another computer 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Farm Configuration 
Create a nevv Farm or join an existing Farm. Can be skipped if already configured. 
@Earm IS already configured 
C) Create farm 
C) Join existing farm 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
License Se rver 
Enter the license server hostname and port. 
License server name: 
License server port: 
27000 
Z] Validate license server communica bon 
Select Citrix Provisioning license type: 
@On -pr emises 
[3 use Datacenter licenses for desktops if no Desktop licenses are available 
C) Cloud 
Next >

    1.  

    2. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
User account 
The Stream and SOAP Services will run under an user account. Please select what 
user account you will use. 
Note: The database will be configured for access from this account. If a Group 
Managed Service Account (gMSA) is used, use the UserName$' format for the 
username 
C) Ne service account 
@Specified user account 
Password: 
CQn firm password: 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Active Directory Computer Account Password 
Automate computer account password upda tes? 
Z] Automate computer account password updates 
Da ys be b,Neen password upda tes: 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Network Co m munications 
Specify neb,Nork settings. 
Streaming neb,Nork cards: 
Management neb,Nork card: 
10.50.210.8 
Enter the base port that will be used for newvork communicatons. A total of 20 ports 
are required. You must also select a for console communicatons. 
Note: All servers must have the same configurations. 
First communica bons por t: 
Console por t: 
54321 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
TFTP Option and Bootstrap Location 
Typically only one TFTP server is deployed as part of Citrix Provisioning. 
Z use the Citrix Provisioning TFTP service 
C : programData\Citrixprovisioning SIN 
Browse... 
Next >

  2.  


  1. For this screenshot I have 2 P.V.S. servers, depending on your Farm you could have 1 or more. The P.V.S. servers I.P. address will show here. If you have 1 server then  1 Ip will show. If you have 2 then 2 will show. 

  2. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Stream Servers Boot List 
Specify at least I and at most 4 boot servers. 
The bootstrap file specifies what servers target devices may contact to complete the 
boot process. 
Server IP Address 
Server Port Device Subnet Mask Device Gateway 
6910 
6910 
Next >

  3.  

  4. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Soap SSL Configuration 
For Linux target imaging using the PVS Soap Server, the Linux target requires a SSL connection 
using an X .50; certificate. You must add a certificate to the local machine certificate store on the 
PVS server and then select it from the list below. 
You should also extract the public certificate from the local certficate store using the Certficates 
snap-in and install it on the Linux Imaging Machine. 
Specify SSL Settings 
SSL guy t: 
SSL certficate: 
Expiration Date 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Problem Report Configuration 
Optionally enter your My Citrix credenbals in order to submit problem reports. 
These credenbals can also be configured from the console or when you submit a problem report. 
The token required to submit problem reports is empty. Please re-configure. 
My Citrix Username: 
Password: 
Confirm password: 
Note: The password will not be saved as a token will be acquired. 
The Wizard enables the collecton of Always on Tracing (AOT) Bgs. They are stored in the AOT 
folder at ProgramData\Citrixprovisioning Servicesuog. For more informaton, refer to 
the Troubleshooting secton in the Citrix Provisioning documentaton. 
Next >


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Confirm con figuration se tbngs. 
XE - Install Service 
icense Server:Port = VS : 27000 
ser Account = Jaxnavy.org\gtxpvs 
omputer account passnord changes every 7 days 
ommunicatons - First Port = 6890, Last Port = 6gog 
onsole - Soap Port = 54321 
IC - selected IP = 10.50,210.8 
anagement NIC - Selected IP = 10. SO. 210.3 
- Install Service 
File = ServicesTftpbootVARD8P32.81t . 
tream Service - Server IP, Server Port, Device Subnet, Device 
10.50.210.8, 6910, o.o.o.o, o.o.o.o 
10.50,210.9, 6910, o.o.o.o, o.o.o.o 
v Citrix Username= davisra 
Z] Automatcally Start Services


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Confirm con figuration settings. 
Stopping Neb,Nork Services 
Stopping Software Stream Service 
Con figuring Services 
Starting Software Stream Services 
Starting Neb,Nork Services 
Stopping Citrix PVS Stream Service 
Cancel

    1. Backup your database before starting.

    2. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
erequ 
Confirm con figuration settings. 
Nones 
user 
Comm 
The database will be upgraded. A backup should be done before the 
database is upgraded. Should the database upgrade be done now? 
Stre 
My Citrix Username= davisra1983 
Z] Automabcally Start Services


  1. Machine generated alternative text:
Citrix Provisioning Configuration Wizard 
Confirm con figuration settings. 
Stopping Neb,Nork Services 
Stopping Software Stream Service 
Con figuring Services 
Starting Software Stream Services 
Star ting Neb,Nork Services


  1. Machine generated alternative text:
Programs and Features 
Control Panel 
Control Panel Home 
View installed updates 
Turn Windows features on or 
Programs Programs and Features 
Uninstall or change a program 
To uninstall a program, select it from the list and then click Uninstall, Change, or Repair. 
Organize • 
Install a program from the 
network 
Uninstall Repair 
O 
Publisher 
Carbon Black, Inc. 
Carbon Black, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Citrix Systems, Inc. 
Microsoft Corporation 
Microsoft Corporation 
Microsoft Corporation 
Microsoft Corporation 
Microsoft Corporation 
Microsoft Corporation 
Microsoft Corporation 
Microsoft Corporation 
Trend Micro Inc. 
Installed On 
4/28/201 g 
4/7/201 g 
3/19/2019 
9/14/2019 
4/7/201 g 
3/19/2019 
3/1/2019 
3/1/2019 
3/19/2019 
3/19/2019 
3/18/2019 
3/18/2019 
3/19/2019 
Size 
Carbon Black Sensor 
Cb Protection Agent 
Citrix Broker PowerSheII Snap-In 
Citrix Configuration Logging Service PowerSheII snap... 
Citrix Configuration Service PowerSheII snap-in 
Citrix Delegated Administration Service PowerSheII sn... 
Citrix Diagnostics Facility 
Citrix Host Service PowerSheII snap-in 
Citrix Provisioning Consolex64 1811.1.0 
Citrix Provisioning Server x64 1906.1.0 
Microsoft Silverlight 
d 
Microsoft SQL Server 2012 Native Client 
Microsoft Visual C++ 2008 Redistributable - x64 9.03... 
Microsoft Visual C++ 2008 Redistributable - x86 9.03... 
Microsoft Visual C++ 2012 Redistributable (x64) 
Microsoft Visual C++ 2012 Redistributable (x86) 
Microsoft Visual C++ 2013 Redistributable (x64) 
Microsoft Visual C++ 2013 Redistributable (x86) 
• Trend Micro OfficeScan Agent 
Citrix Systems, Inc. Product version: 
Help link: 
-11.0... 
-11.0... 
- 12.0... 
- 12.0... 
243 MB 
11.6 MB 
166 MB 
1.78 MB 
0.97 MB 
156 MB 
305 MB 
241 MB 
50.7 MB 
4.88 MB 
876 KB 
20.5 MB 
173 MB 
20.5 MB 
17.1 MB 
Version 
6.12.71 log 
800.2562 
7.22.0.10 
7.22.0.7 
7.22.o.g 
7.22.0.8 
7.1.5.o 
7.22.0.8 
1811.1120018 
1906.1022028 
5.1 50918.0 
1112100.60 
9030729.6161 
9030729.6161 
110.60610.1 
110.60610.1 
12040660.0 
120.406600 
12.0.4430 
1906.102028 
http://www.citrix.com 
Support link: 
Size: 
http://www.citrix.com 
241 MB









  1. P.V.S. console upgrade



  1. Log into the Server with the service account.


  1. In C:\SRC\1906 open the "Console" Folder. 


  1. Right click on "PVS_Console_x64.exe" and run as administrator. 


  1. Once the .exe has launched Click next through the installation.


  1. Machine generated alternative text:
Citrix Provisioning Consolex64 1912.0.0 LTSR- Instal[ShieId Wizard 
CiTRlX' 
Welcome to the InstallShield Wizard for Citrix 
Provisioning Console x64 1912.0.0 LTSR 
The InstallShieId(R) Wizard will install Citrix Provisioning 
Console x64 1912.0. O LTSR on your computer. To continue, 
dick Next. 
W : This program is protected by copyright Ian and 
internatonal treates. 
Next >


  1. (Additional Screenshots of steps)


  1. If you run into any issues during the installation of the pre-requisites refer to 

  1. https://www.carlstalhood.com/provisioning-services-server-install/


  1. Accept licensing terms.


  1. Machine generated alternative text:
Citrix Provisioning Consolex64 19120.0 LTSR - InstallShieId Wizard 
License Agreement 
You must view the enbre license agreement in order to continue. 
Last Revised: November I, 20 IS 
CITRIX LICENSE AGREEMENT 
CiTRlX 
This is a legal agreement AGREENENT") between the end-user customer ("you"), 
and the providing Citrix entity (the applicable providing entity is hereinafter refe«ed 
to as "CITRIX"). This AGREENENT includes the Data Processing Agreement: the 
Citrix Services Security Exhibit and any other documents incorporated herein by 
reference. Your location of receipt of the Citrix product (hereinafter "PRODUCT") and 
maintenance (hereinafter "NIANTENANCE") detennines the providing entity as 
identified at https•J,".v•.v•.v BY 
2ccept the terms in the license agreement 
C) I do not accept the terms n the icense agreement 
InstallShieId 
Next >

    1. Fill in the names

  2. Machine generated alternative text:
Citrix Provisioning Consolex64 19120.0 LTSR 
Please enter your information. 
user Name: 
user 
Qrganiza bon: 
Install this application for: 
- InstallShieId Wizard 
CiTRlX 
pne who uses this computer (all users) 
C) Only for ne (Windows user) 
InstallShieId 
Next >


  1. Install in the default directory

  1. Machine generated alternative text:
Citrix Provisioning Consolex64 19120.0 LTSR - InstallShieId Wizard 
Click Next to install to this folder , or dick Change to install to a different folder. 
Install Citrix Provisioning Console x64 1912.0. O LTSR to: 
C: program Filescitrixprovisioning Services Console 
InstallShieId 
Next > 
CiTRlX


  1. Install

  1. Machine generated alternative text:
Citrix Provisioning Consolex64 19120.0 LTSR 
Ready to Install the Program 
The Wizard is ready to begin installation. 
Click Install to begin the installation. 
- InstallShieId Wizard 
CiTRlX 
If pu want to review or change any of your installation settings, dick Back. Click Cancel to 
exit the wizard. 
InstallShieId

    1. Installing

  2. Machine generated alternative text:
Citrix Provisioning Consolex64 19120.0 LTSR - InstallShieId Wi... 
Installing Citrix Provisioning Console x64 1912.0.0 LTSR 
The program features you selected are being installed. 
CiTRlX 
Please nait while the InstallShieId Wizard installs Citrix Provisioning Console 
x64 1912.0. O LTSR. This may take several minutes. 
Status: 
Updating comgu)nent registration 
InstallShieId 
Cancel

    1. Finish

  3. Machine generated alternative text:
Citrix Provisioning Consolex64 19120.0 LTSR- Instal[ShieId Wizard 
CiTRIX' 
InstallShield Wizard Completed 
The InstallShieId Wizard has installed Citrix 
Provisioning Console x64 1912.0. O LTSR. Click Finish to exit the 
wizard.


  1. Open the console and check the version.

  1. Machine generated alternative text:
About Citrix Provisioning Console 
Citrix Provisioning Console 
Citrix Systems, Inc. 
Version: 7.24.0.24019 
@ 2001-2019 Citrix Systems, Inc. All rights



  1. You need to re-register those PowerShell snap-ins. Reregistering Citrix.PVS.Snapin.dll is well-known, but ta. Here are 5 other snap-ins that are necessary as well.

  1. https://support.citrix.com/article/CTX235079

  2. Citrix. P.V.S.Snapin

  3. Citrix.Broker.Admin.V2

  4. Citrix.Configuration.Admin.V2

  5. Citric.ConfigurationLogging.Admin.V1

  6. Ctrix.DelegatedAdmin.Admin.V1

  7. Citrix.Host.Admin.V2


  1. On the P.V.S. server, run C.M.D. as Administrator. Then in each of these folders:

  2. CD \Windows\Microsoft.NET\Framework64\v4.0.30319

  3. CD \Windows\Microsoft.NET\Framework\v4.0.30319

  4. Run all of these commands:


  1. .\InstallUtil.exe "C:\Program Files\Citrix\Provisioning Services Console\Citrix.PVS.Snapin.dll"


  1. .\InstallUtil.exe "C:\Program Files\Citrix\Broker\Snapin\v2\BrokerSnapin.dll"


  1. .\InstallUtil.exe "C:\Program Files\Citrix\Configuration\SnapIn\Citrix.Configuration.Admin.V2\Citrix.Configuration.PowerShellSnapIn.dll"


  1. .\InstallUtil.exe "C:\Program Files\Citrix\ConfigurationLogging\SnapIn\Citrix.ConfigurationLogging.Admin.V1\Citrix.ConfigurationLogging.PowerShellSnapIn.dll"


  1. .\InstallUtil.exe "C:\Program Files\Citrix\DelegatedAdmin\SnapIn\Citrix.DelegatedAdmin.Admin.V1\\Citrix.DelegatedAdmin.PowerShellSnapIn.dll"


  1. .\InstallUtil.exe "C:\Program Files\Citrix\Host\SnapIn\Citrix.Host.Admin.V2\\Citrix.Host.PowerShellSnapIn.dll"



  1. P.V.S. Targets upgrades

1. You will need to go to the P.V.S. server that you are working on and open the P.V.S. console.

2. Then go to vDisk Pools and create new versions. If you have 5 versions, then the 6th version will need to be merged with the last base and updates or updates only and needs to be Maintenance mode. It will take some time to create the merge base.


3. Now go into your Hypervisor and power on the Master VM up that has the new version.

4. Open the console so you can see the V.M.

5. It will ask you to press 1 for the new Maintenance version. Press 1, and it will boot into windows.

6. Now bring over the P.V.S. software, and put it on the C or D drive of the Target




Step 3 – Click Next at Welcome to the Installation Wizard for Citrix Provisioning Service Target Device x64


Step 4 – Select i accept the terms in the license agreement, Click Next


Step 5 – Leave as default, Click Next


Step 6 -Leave as default, Click Next


Step 7 -At Ready to install the program, Click Install


Step 8 -Installation will begin and take a few minutes to complete.





Step 9 – Click Finish at Installation Wizard Completed.


At this stage the vDisk should be re-sealed ( based on your sealing techniques and re-distributed/Coped to each Provisioning Server


Update the B.D.M. iso 

We use the BDM ISO 

Information

• Remember don't check this unless your troubleshooting

• 

• https://support.citrix.com/article/CTX230333

• Reason why is here.

https://discussions.citrix.com/topic/363293-pvs-76-xa65-tds-taking-10mins-to-boot/

Upload to your hypervisor storage. Datastor/Container

Now attach that ISO to the P.V.S. Targets you upgraded on 4c. It will need a new A.R.D.B.I.N. file. ( If you forget this step, it will still boot. But will be slower and could get stuck in a loop.


  1. Citrix WEM 1811 upgrade to 1912 L.T.S.R.


  1. Upgrade Deployments

  2. The data below is from Citrix Workspace Environment Manager 1912 Citrix Systems.

  3. https://docs.citrix.com/en-us/workspace-environment-management/current-release/upgrade.html


  1. The Workspace Environment Management components must be upgraded in the following order:

  2. Infrastructure services

  3. https://docs.citrix.com/en-us/workspace-environment-management/current-release/upgrade.html#step-1-upgrade-the-infrastructure-services


  1. Database

  2. https://docs.citrix.com/en-us/workspace-environment-management/current-release/upgrade.html#step-2-upgrade-the-database


  1. Administration console

  2.  https://docs.citrix.com/en-us/workspace-environment-management/current-release/upgrade.html#step-3-upgrade-the-administration-console


  1. Agent

  2.  https://docs.citrix.com/en-us/workspace-environment-management/current-release/upgrade.html#step-4-upgrade-the-agent









  1. The following changes are going to occur so be ready:


  1. A new clean installation of the WEM Agent will result in a complete change of Service Names and Folder Structures as below

  2. The new Service name is: Citrix WEM Agent Host Service

  3. The new process name is: Wem.Agent.Service.exe

  4. The new path structure is: %ProgramFiles%\Citrix\Workspace Environment Management Agent

  5. An upgraded installation of the WEM agent will result in partial changes to your environment:

  6. The new Service name is: Citrix WEM Agent Host Service

  7. The new process name is: Wem.Agent.Service.exe

  8. The path on the file system will not be altered and will remain as it was: %ProgramFiles%\Norskale\Norskale Agent Host

  9. Be aware also that in both clean and upgraded deployments, the Windows Event logs will change from Norskale Agent Service to WEM Agent Service 

  10. Source:

  11. https://jkindon.com/2019/09/11/citrix-wem-updated-start-up-scripts/






  1. Infrastructure services




  1. I need .Net 4.7.1

  2. For me, I selected yes now.

  3. Reboot and logged in







  1. Database


  1. Open the database management Utility




  1. I at this point just restarted the Server



















  1. 2a. Check Database parameters (open the WEM Infrastructure Service Configurations)






  1. You will notice the Port and old name (1811)

  2. You will notice the Port and new name -1912


  1. *One thing to note on Port* 

  2. Cache synchronization port. (Applicable to Workspace Environment Management 1909 and earlier; replaced by Cached data synchronization port in Workspace Environment Management 1912 and later.) The port on which the agent cache synchronization process connects to the infrastructure service to synchronize the agent cache with the infrastructure server. The cache synchronization port must be the same as the port you configured for the cache synchronization port (WEM Infrastructure Service Configuration > Network Settings) during the infrastructure services configuration. The port defaults to 8285 and corresponds to the AgentCacheSyncPort command-line argument.

  3. Cached data synchronization port. (Applicable to Workspace Environment Management 1912 and later; replaces Cache synchronization port of Workspace Environment Management 1909 and earlier.) The port on which the agent cache synchronization process connects to the infrastructure service to synchronize the agent cache with the infrastructure server. The cached data synchronization port must be the same as the port you configured for the cached data synchronization port (WEM Infrastructure Service Configuration > Network Settings) during the infrastructure services configuration. The port defaults to 8288 and corresponds to the CachedDataSyncPort command-line argument. Alternatively, you can specify the port using a command-line option in the silent installation of the WEM agent 

  4. Wayne Lui states its backwards compatible and still listens, But I would add this into your Firewall Rule set. 




















  1. Admin Console



  1. Agents

  2. Upgrade the Agent on the machines 

  3. I did this with the GUIbut I do this in production.

  4. ##Install CMDLine with an SCCM. task


  1. Task 1

  2. "Citrix Workspace Environment Management Agent Setup.exe" Cloud=0 VUEMAppCmdDelay=5 WaitForNetwork=30 SyncForegroundPolicy=1 GpNetworkStartTimeoutPolicyValue=5 /log WEM2003.txt /quiet



  1. Task 2

  2. ##Copys Startup script 



  1. xcopy "\\server\Citrix\Upgrade Files\WEM\2003\Workspace-Environment-Management-v-2003-01-00-01\WemRefreshCache\RefreshWEMAgentonReboot.bat" c:\scripts\refreshWemAgent /h /i /c /k /e /r /y


  1. Task 3

  2. Then it runs a 

  3. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update

  4. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe eqi 3


  1. I took James Kindon Script he made here https://jkindon.com/2019/09/11/citrix-wem-updated-start-up-scripts/


  1. Then it's called the same name as my older script (RefreshWEMAgentonReboot.bat), does an xcopy, and places it in the same location. This way the scheduled task will still have the same name it runs. The CLI parameters are different but will do the same deal




  1. We use B.I.S.F. to handle this during our sealing process


  2. Agents are completed.







No comments:

Post a Comment