Ivanti/Appsense DesktopNow Load Balancing Server Prep – Powershell Script

Thanks to @UV_Wizard for providing the script.

It is available here DesktopNowLoadbalancing

This script should be used in conjunction with the following Load Balancing AppSense Management and Personalization Servers 10.1 using Netscaler 11.x/12.x and automates the Step 1-13

Preparing the script

Line 315-318 are the configurable variables that need to be configured per environment

$Global:AMCVIP = "LAB-APS" #e.g. AMC-VIP - Management VIP, don't include FQDN
$Global:EMPVIP = "LAB-APS" #e.g. PERS-VIP - Personalization VIP, don't include FQDN
$Global:NLBusername = "WILKYIT\svc-appsenselb" #e.g. domain\svc-lbuser
$PlainPassword = "Password1"

Running the Script

The powershell script has a menu to perform the relevant changes to the environment

  1. Configure Management Server for loadbalancing (run on each management server)
  2. Configure Personalzation Server for loadbalancing (run on each peronlization server)
  3. Configure the Network Load Balancer account ‘Service Delegations’ and ‘SPNs (Run once per environment
  4. Quit

desknowlb-1

 

In my case i have the Management/Personalization role on the server so i will run 1 & 2 options on the script.

  • Run the Script as Administrator, Select Option 1
  • You’ll be prompted for the NLB Account password, please enter and Click OK (this validates the username and password is correct)

desknowlb-2

  • The script will then run and make the modifications to the server

desknowlb-3

  • Run the Script as Administrator, Select Option 2
  • You’ll be prompted for the NLB Account password, please enter and Click Ok (this validates the username and password is correct)

desknowlb-4.PNG

  • Log off and log back on again as Domain Admin/Enterprise Admin and run the script with Option 3 which will adjust Active Directory SPN’s and delegation for the NLB Account
  • The necessary addin for powershell will be added during the script execution

desknowlb-5.PNG

Testing

Run through test load balancing connectivity  to website section in  Load Balancing AppSense Management and Personalization Servers 10.1 using Netscaler 11.x/12.x

Leave a Reply