Skip to content

4. Installation and Configuration

Leee Jeffries edited this page May 28, 2019 · 1 revision

Placing the configuration files

  • Create a folder called PowerScale on the C: drive of the server you are placing the scripts on
  • Unzip the script files in the release to this location


  • The machine you are installing on must have the Citrix PowerShell SDK installed
    • Its recommended to simply install Citrix Studio on the machine (A controller is fine)
  • WMI Access must be enabled and the user account specified must has access to the Citrix Session Servers

Initial Configuration Creation

  • Open the "Create Config File.ps1" in PowerShell ISE
  • Populate the details within the configuration file
  • Once all details are completed run the script, this will create an XML configuration file in the same folder
  • Please read the comments alongside each setting

##Scheduled Task

  • Open Task Scheduler
  • Create a new Basic Scheduled Task, call it PowerScale
  • Select next
  • Select "Daily" for the task run
  • Select next
  • Select the run time to be run on the closest hour
  • Select next
  • Select "Start a program"
  • Set "Program or Script" to "c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe" (without quotes)
  • Set Arguments to -ExecutionPolicy Unrestricted -File "C:\PowerScale\Decision Making.ps1"
  • Select next
  • Tick "Open the properties dialog for this task when I click Finish"
  • Select Finish

We need to select the account we want the scheduled task to run on. This account needs access to query the Citrix Farm.

  • Select "Run whether user is logged on or not"
  • Select "Change user or group"
  • Find the user account you wish to use
  • Select OK
  • Enter the password for the account and select ok
  • Select OK

If all is well you should be able to run the task on demand and see the logfile created in the C:\PowerScale folder.

You can’t perform that action at this time.