Quick Start

Get up and running in just a few steps:

1
Launch the Tool

Double-click HorizonAdvisor.bat or open PowerShell and run:

.\Start-HorizonAdvisor.ps1
2
Select a Tool from the Main Menu

The main menu window provides four tools:

  • Pre-Check Validations — Validate your infrastructure
  • Manage Secure Gateway — Enable/disable gateway services
  • Connection Server Lifecycle Management - Install or upgrade remote Connection Servers
  • ADLDS Maintenance Tools - Open the unified ADLDS workspace
3
Follow the On-Screen Prompts

Each tool guides you through required inputs and confirmations.

ℹ️
You can also launch tools directly from the command line — see Automation & Scripting for examples.

System Requirements

Before you get started, make sure your system meets these minimum requirements:

RequirementDetails
Operating SystemWindows (Server or client) with network access to a Horizon Connection Server
PowerShellWindows PowerShell 5.0 or later (5.1 recommended). The graphical interface runs in STA mode automatically.
Supported Horizon versionsPre-Check validates target versions from 2006 through 2606. Partition Migration requires the environment to be upgraded to 2606 or later first.
PermissionsA domain user account with local administrator privileges on the Connection Server machine and Horizon Full Administrator role.
AD module (RSAT)The RSAT-AD-PowerShell feature is required only for Active Directory checks and only on the machine that performs them. If you run the tool as a domain user account with local administrator privileges, it can install the feature automatically.
Network AccessHTTPS (port 443) to the Horizon Connection Server; ADWS (port 9389) to a domain controller for AD checks; WinRM to target servers for remote/multi-server Pre-Check.
Browser (for PDF export)Microsoft Edge (Chromium) or Google Chrome — optional, used to convert HTML reports to PDF
ℹ️
Important: Some operations (AD LDS maintenance, Secure Gateway management) must be run directly on the Horizon Connection Server itself. Others can be run from any Windows machine with network access to the server.

Using the Graphical Interface

The Main Menu Window

When you launch Horizon Advisor without parameters, you see the main menu with a dropdown list of four tools. Pick a tool, read its description, then click Launch:

Horizon Advisor main menu with the Pre-Check tool selected
Horizon Advisor main menu, showing the four available tools.
✔️

Pre-Check Validations

Validate your environment against Horizon requirements, including Active Directory, vCenter, Server, and LDAP settings.

🔒

Manage Secure Gateway

Enable or disable PCoIP and BLAST Secure Gateway services on the Horizon Connection Server.

CS

Connection Server Lifecycle Management

Install or upgrade Connection Servers on remote hosts over WinRM with live status monitoring.

AD

ADLDS Maintenance Tools

Open the unified workspace for data browsing, maintenance, CPA operations, administration, and partition migration.

How to Use the UI

1
Select a tool from the dropdown

Click the dropdown to see all available options.

2
Read the description

The panel below the dropdown explains what the selected tool does.

3
Click "Launch"

The tool opens in a new window or console.

⚠️
Every time Horizon Advisor starts, previously accepted TLS certificates are cleared. You will be re-prompted to accept any untrusted or self-signed certificates on each new run.

Launching Tools Directly from PowerShell

You can skip the main menu and launch tools directly using command-line parameters:

# Open the Pre-Check Validations tool
.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation'

# Open the current ADLDS Tools UI
.\Start-HorizonAdvisor.ps1 -Flow 'ADLDS Tools'

# Open the Secure Gateway Manager menu
.\Start-HorizonAdvisor.ps1 -Flow 'Manage Security Gateway'

# Run the config-driven Connection Server lifecycle tool
.\Start-HorizonAdvisor.ps1 -Flow lcm -Task install -Config lcm_install.json

# Open the full ADLDS Tools UI
.\adlds-tools\horizon-adlds-tools-ui.ps1

Connection Server Lifecycle Management

Lifecycle Management installs a new Horizon Connection Server or upgrades existing Connection Servers over WinRM. Select Install new Connection Server or Upgrade existing Connection Servers. Pre-Check can gate the operation, and run configurations can be saved or loaded. Upgrade one pod at a time; parallel upgrades of multiple pods are not supported. Run the operation during an approved maintenance window.

Current themed Connection Server Lifecycle Management form
Lifecycle form showing operation selection, optional Pre-Check, build source, target servers, MSI arguments, credentials, and Start.
UI areaPurpose and inputs
OperationSelect Install new Connection Server or Upgrade existing Connection Servers. Pre-Check can gate the operation; run configurations can be saved or loaded. Upgrade one pod at a time; parallel multi-pod upgrades are unsupported.
BuildProvide an SMB path or HTTPS URL. Examples: smb://mysserver/build/Omnissa-Horizon-Connection-Server-x86_64-2609-8.20.0-xxxxxx.exe or https://mywebserver/builds/Omnissa-Horizon-Connection-Server-x86_64-2609-8.20.0-xxxxxx.exe.
Target serversAdd server FQDNs and choose each server's install type. Per-target MSI arguments are editable before execution.
Credentials and outputUse DOMAIN\user for remote operations. The account must be a member of the Administrators group on each target server and, when using an SMB source, have access to the share. Progress and results are shown in the output pane.

For scripted operation, use -Flow lcm -Task install|upgrade -Config <path> or call Lcm\Start-LcmConfigRunner.ps1 directly. The JSON config stores task, build source, and target servers, but never credentials. Username and password are prompted when omitted; the password parameter accepts a SecureString.

.\Start-HorizonAdvisor.ps1 -Flow lcm -Task upgrade -Config lcm_upgrade.json -BuildMetadata .\build-metadata.json

Pre-Check Validations

Use Pre-Check to validate that your infrastructure meets all requirements for Omnissa Horizon before you install or upgrade. It checks your Active Directory configuration, vCenter compatibility, server settings, LDAP connectivity, and API access, then generates a detailed report with pass/fail/warning results.

Current Pre-Check Validations form with execution modes and Active Directory inputs
Pre-Check selects an execution mode and validation type, then displays the inputs required for that check.

Validation Types

TypeWhat It ChecksRequired Inputs
Active Directory Forest & domain functional levels, AD schema compatibility, DNS settings, and other AD prerequisites AD FQDN, Target Horizon version
vCenter vCenter version compatibility and configuration requirements vCenter FQDN, vCenter version, Target Horizon version
Server Local OS version, Connection Server settings, and Horizon-specific server requirements Target Horizon version
LDAP Authenticates to the Horizon REST API and validates LDAP configuration on the Connection Server Admin username, domain, password (securely prompted), Target Horizon version
Capacity Provider Validates a capacity provider (e.g. Nutanix Prism Central, Amazon WorkSpaces Core) — DNS resolution, reachability, and, where applicable, provider version. Provider types are data-driven from CapacityProvider.json. Provider type, provider FQDN, provider version (when applicable), Target Horizon version
Run All Runs all four validations and produces a single combined report All of the above
ℹ️
The tool validates each input as you enter it. After three failed attempts on any required input, the validation is aborted and you must restart.

Execution Modes

Pre-Check can run against the local machine or fan out to other servers. The Execution Mode (top of the form) controls where the checks run:

ModeWhat it does
Local ServerRuns all checks on the machine you launched from. This is the default.
List of Servers (CSV)Runs server/AD/vCenter checks on the remote servers listed in a CSV (over WinRM), then merges the results into a single report.
Local POD ServersDiscovers the Connection Servers in the local POD and validates each of them.
CPA FederationDiscovers every POD in a Cloud Pod Architecture federation (via the global partition) and validates the servers pod-by-pod.

Active Directory Module (RSAT-AD-PowerShell)

The domain-level AD checks (forest/domain functional level, read-write domain controller, DC operating system) use the ActiveDirectory PowerShell module, which needs RSAT-AD-PowerShell and a Kerberos ticket to reach the domain controller's ADWS endpoint.

  • Local mode (interactive): if the module is missing, the tool offers to install it (Yes/No). Choose Yes to install it and continue.
  • Remote / multi-server modes: the domain-level checks run on the orchestrator (the box you launched from, which has direct AD access) and are installed automatically only when you are an administrator; otherwise those specific rows are skipped with a clear message. Remote target servers do not have RSAT — they run only DNS reachability checks.

TLS Certificate Prompt

For LDAP and API validations, Horizon Advisor connects to the Connection Server over HTTPS. If the server uses a self-signed or untrusted certificate, a prompt shows the certificate details:

Untrusted TLS certificate detected for https://<server>/rest/...
Subject   : CN=<server>
Issuer    : CN=<server>
Thumbprint: XXXX...
Valid From: ...   Valid To: ...

Certificate appears to be self-signed.
[1] Accept this certificate for this run only
[2] Reject and stop the request
⚠️
Accepted certificates are never permanently stored. This prompt appears on every new run. Use -AcceptSelfSignedCertificate in non-interactive mode to suppress the prompt in automation.

Understanding Reports

After a validation completes, an HTML report (and PDF if a supported browser is available) is generated automatically.

Summary Section

ItemDescription
Validation TypeThe type of check performed
Target Horizon VersionThe version validated against
Execution TimeWhen the validation ran
Total ChecksTotal number of individual checks performed
PassedPASS Checks that met requirements
WarningsWARN Checks flagged for review
FailedFAIL Checks that did not meet requirements
SkippedSKIP Checks not applicable to this configuration

Detailed Results Table

ColumnDescription
Check KeyThe specific requirement being validated
StatusPASS WARN FAIL SKIP
DetailsThe current detected value or state
RecommendedFor FAIL and WARNING items — the recommended value or corrective action
✅
Always review the Recommended column for any FAIL or WARN item before proceeding with a Horizon installation or upgrade.

Report Location

%ProgramData%\Omnissa\Horizon\logs\HorizonAdvisor\PreCheckReports\
ValidationHTML FilenamePDF Filename
Active DirectoryAD_Precheck_Report.htmlAD_Precheck_Report.pdf
vCentervCenter_Precheck_Report.htmlvCenter_Precheck_Report.pdf
ServerServer_Precheck_Report.htmlServer_Precheck_Report.pdf
LDAPLDAP_Precheck_Report-<timestamp>.htmlLDAP_Precheck_Report-<timestamp>.pdf
Run AllComplete_PreCheck_Report_<timestamp>.htmlComplete_PreCheck_Report_<timestamp>.pdf
ℹ️
If Microsoft Edge or Google Chrome is not installed, the PDF is not generated — but the HTML report is always created regardless.

ADLDS Tools UI

The main menu entry ADLDS Maintenance Tools opens the unified ADLDS workspace. The same workspace can be started directly with adlds-tools\horizon-adlds-tools-ui.ps1 from the product root. Its navigation tree contains 30 task pages grouped into six workflow areas. Data Visualizer reads live Horizon directory data or selected LDIF files; the maintenance pages run the listed workflows. Data Visualizer has no equivalent standalone CLI command.

ADLDS Tools Data Visualizer with the complete navigation tree
ADLDS Tools navigation tree and Data Visualizer. The tree lists all supported page routes.

Page Details and Inputs

Each route below is part of the ADLDS Tools navigation tree. The shared live or file source selector applies to Data Visualizer pages; maintenance pages show their own connection, selection, preview, and run controls. Images below are current captures from this workspace and illustrate the corresponding workflow families.

Data Visualizer: Local ADLDS

ADLDS Tools Local ADLDS Data Visualizer and navigation tree
Local ADLDS pages share the live or LDIF data source, record-type selector, filter, refresh action, and details/output panes.
PageWhat it showsTypical controlsScreen
ServersConnection Server configuration records and server attributes.Live/file source, type selector, text filter, Refresh, record details.Servers page screenshot
Desktop and FarmsDesktop pools and farm configuration records.Source, record selector, filter, Refresh, selected-record details.Desktop and Farms page screenshot
vCenter ServersConfigured vCenter server records and their Horizon attributes.Source, type selector, filter, Refresh, details.vCenter Servers page screenshot
MachinesRegistered Horizon machine records.Source, machine/type selection, text filter, Refresh, details.Machines page screenshot
Capacity / CloudCapacity provider and cloud integration configuration.Source, type selector, filter, Refresh, details.Capacity and Cloud page screenshot
Global SettingsLocal partition configuration and global settings records.Source, record selector, filter, Refresh, details.Global Settings page screenshot
Event DatabaseEvent database configuration and related directory values.Source, type selector, filter, Refresh, details.Event Database page screenshot
AuthenticatorsAuthentication and identity provider configuration records.Source, type selector, filter, Refresh, details.Authenticators page screenshot
PermissionsHorizon permission and assignment records.Source, type selector, filter, Refresh, details.Permissions page screenshot
FSPForeign Security Principal records from the local partition.Source, type selector, filter, Refresh, details.Local FSP page screenshot

Data Visualizer: Global ADLDS

PageWhat it showsTypical controlsScreen
Global Desktop EntitlementsGlobal desktop entitlement records shared across the CPA federation.Live/global LDIF source, record selector, filter, Refresh, details.Global Desktop Entitlements page screenshot
Global App EntitlementsGlobal application entitlement records.Source, record selector, filter, Refresh, details.Global App Entitlements page screenshot
Pods and SitesFederation pod and site configuration records.Source, record selector, filter, Refresh, details.Pods and Sites page screenshot
GE AssociationsAssociations linking global entitlements to pods and local resources.Source, association/GE filter, Refresh, details.GE Associations page screenshot
FSPForeign Security Principal records from the global partition.Source, record selector, filter, Refresh, details.Global FSP page screenshot

Admin Ops

PageWhat it doesTypical inputs and actionsScreen
FSMO Roles ManagerQueries local and global ADLDS role owners and transfers Schema or Naming Master roles.ADLDS host; Query; choose a target Connection Server; select Schema Master or Naming Master.FSMO Roles Manager page screenshot
Decommission CSFinds Connection Server directory objects and prepares reviewed removal changes.Live or LDIF source, ADLDS host, pod filter, server selection, Dry Run, generate/apply local or global LDIF.Decommission CS page screenshot
Replication StatusDiscovers Connection Servers and inspects or synchronizes replication.Seed host, pod filter, scope, operation; Discover CS and Run. Sync operations require confirmation.Replication Status page screenshot
ADWS State ManagementChecks, enables, or disables AD Web Services on discovered Connection Servers.Single pod or CPA Federation scope, pod selection, Refresh, Check Status, Enable ADWS, Disable ADWS.ADWS State Management page screenshot
CLI OperationsLaunches one of seven catalogued command-line workflows in a separate PowerShell window.Select an operation, review description, required inputs and example command, then Launch.CLI Operations page screenshot

Local Tools

ADLDS Tools Stale User Preferences page with live and LDIF modes
Client preference cleanup is now the Stale User Preferences page in Local Tools. Delete mode generates reviewable LDIF; it does not directly delete directory entries.
PageWhat it doesTypical inputs and actionsScreen
Remove Horizon UserFinds and cleans up a selected Horizon user and related directory references.ADLDS host/partition; user SID or username and domain; optional global cleanup, REST, and machine actions; Dry Run; Apply LDIF File.Remove Horizon User page screenshot
Find Stale UsersFinds stale user references and creates cleanup and rollback LDIF/reports.Local partition and server; domain credential rows; optional global partition and machine cleanup; Run or Apply LDIF File.Find Stale Users page screenshot
Apply ADLDS LDIFApplies a reviewed LDIF file to local ADLDS.LDIF file, target server and port, Dry Run (WhatIf), Continue on Error, Apply.Apply ADLDS LDIF page screenshot
Stale User PreferencesCounts stale pae-Prop objects or writes a reviewable delete LDIF.Live ADLDS or LDIF source, age in days (default 90), server and partition; select reviewable LDIF output, then Run.Stale User Preferences page screenshot
FSP GUID SyncResolves Foreign Security Principal identities and synchronizes GUID/directory-name attributes.Optional user/domain and domain controller, global sync, group filtering, selected fields, Dry Run, Run.FSP GUID Sync page screenshot

CPA Tools

ADLDS Tools Orphan Assignments scan page
CPA maintenance pages target the Global ADLDS partition. Orphan Assignments writes proposed removals to a review-only LDIF file.
PageWhat it doesTypical inputs and actionsScreen
Orphan AssignmentsFinds global assignments with missing identity/local entitlement values or a missing global entitlement backlink.Global ADLDS server and port; Run Scan; inspect status and generated review-only LDIF.Orphan Assignments page screenshot
Apply LDIFApplies reviewed changes to Global ADLDS.LDIF file, server and port, Dry Run (WhatIf), Continue on Error, Run.CPA Apply LDIF page screenshot
ExportExports CPA directory data and backup files into categorized LDIF output.CPA host/port, local host/port, source and target partitions, output directory, pod selection, export categories and run options.CPA Export page screenshot
Local Pools ImportImports local pool data into a selected target pod using CPA input data.Pool association LDIF, source and target pod, CPA host, optional ActiveGE LDIF, Dry Run, Run.Local Pools Import page screenshot

Supported Pages

Navigation groupPagesPurpose
Data Visualizer: Local ADLDSServers; Desktop and Farms; vCenter Servers; Machines; Capacity / Cloud; Global Settings; Event Database; Authenticators; Permissions; FSPBrowse local partition records from a live directory connection or LDIF source. Select a record type, filter results, refresh, and inspect details.
Data Visualizer: Global ADLDSGlobal Desktop Entitlements; Global App Entitlements; Pods & Sites; GE Associations; FSPBrowse corresponding global partition records. This is a data-viewing workflow and does not apply directory changes.
Admin OpsFSMO Roles Manager; Decommission CS; Replication Status; ADWS State Management; CLI OperationsManage local/global FSMO roles, decommission a Connection Server, inspect or synchronize replication, manage ADWS state, or launch a catalogued command-line operation.
Local ToolsRemove Horizon User; Find Stale Users; Apply ADLDS LDIF; Stale User Preferences; FSP GUID SyncClean up a selected Horizon user, find stale user references, review/apply LDIF, count stale preferences or generate review-only LDIF, and synchronize FSP GUID values.
CPA ToolsOrphan Assignments; Apply LDIF; Export; Local Pools ImportFind orphan global assignments and write review-only LDIF, apply reviewed global changes, export CPA data, or import local pools.
Partition MigrationPartition MigrationOpen the guided partition migration workflow or its CLI in a separate PowerShell window. Run pre-checks and follow the local/global migration and cleanup sequence.

Settings

The ADLDS Tools Settings dialog manages the output folder, UI theme, log verbosity, and generated-output actions. The output folder is where logs, reports, archives, and maintenance output are stored; its current size is shown below the path.

ADLDS Tools Settings dialog showing output folder, UI theme, log level, and output actions
Settings controls the output location, UI theme, log level, and generated-output actions.
  • UI Theme offers Omnissa EXP, Omnissa, Dark, Silver, and Windows palettes. A theme change is applied after restarting the UI.
  • Log Level sets TRACE, DEBUG, INFO, WARN, or ERROR logging and applies to Script Output and log files.
  • Zip + Save Output archives the output folder, Open Output Folder opens it in Explorer, and Clean Output Folder removes its generated contents.
  • Restart saves the selected folder, theme, and log level; Cancel closes without saving pending selections.

Horizon REST API: Live Sessions and Machine Cleanup

Use Connect REST API in the ADLDS Tools header to authenticate to a Horizon Connection Server. Enter the server, Horizon administrator username, password, and domain in the dialog. The application checks the server certificate and asks you to trust a new or changed certificate. Ignore ALL certificate errors is intended only for lab or self-signed-certificate environments. The password is used for authentication and is not saved as a connection setting.

Connect to Horizon REST API dialog with blank server and credential fields
The REST connection dialog requests a Connection Server and Horizon administrator credentials.

Show connected users in Live mode

In Data Visualizer > Local ADLDS > Machines, use LIVE mode and connect REST API to the same Connection Server selected for the Local Pod. The directory query supplies machine records; a paginated REST sessions request matches each session's machine_id to a machine and fills its Connected User value. This helps identify who is connected before acting on a machine. The session data can be refreshed manually and refreshes every two minutes while the live Machines view is active. FILE/LDIF mode has no live session state.

Delete associated machines, optionally from disk

Remove Horizon User and Find Stale Users can also use the live REST connection to remove associated machines from Horizon inventory. The separate Delete from Disk option requests deletion of the VM files from the hypervisor datastore:

DELETE /inventory/v1/machines
    Content-Type: application/json

    [{"id":"<machine-id>","delete_from_disk":true,"force_logoff_session":false}]
⚠️
Delete from Disk is irreversible. It is a live REST operation, not an LDIF change; LDAP rollback files cannot recreate a deleted VM. Verify the connected-user information and selected machines, and use a dry run where available before running it.

Review-First Maintenance

Stale User Preferences accepts a live ADLDS source or an LDIF file and measures age in days (default 90). Count mode reports matching pae-Prop entries. Delete mode writes a reviewable delete LDIF; it does not delete directory entries. Use Apply ADLDS LDIF only after reviewing the generated file.

Stale User Preferences page with live and LDIF sources, a 90-day threshold, and reviewable LDIF option
Stale User Preferences supports live or offline LDIF input. Delete mode produces a file for review.

Orphan Assignments scans Global ADLDS and writes a review-only delete LDIF. An assignment is considered orphaned when its identity and local entitlement attributes are all empty, or its Global Entitlement backlink is missing. The scanner never applies its output.

Orphan Assignments page configured for Global ADLDS with a Run Scan action
Orphan Assignments scans Global ADLDS and writes proposed removals to LDIF without applying them.

CLI Operations and Launchers

The Admin Ops > CLI Operations page lists seven operations and displays each operation's purpose, inputs, and an example command before launching the selected script in a separate PowerShell window. Partition Migration has its own CLI launcher on its page. The application header's CLI Usage button opens the in-app usage guide. Replication syncall requires an additional confirmation because it can change directory state.

The ADLDS Tools header's CLI Usage and ? Help buttons open read-only command-reference dialogs. They show the same usage content in compact and expanded windows; neither launches a command. Settings and Connect REST API are documented in their respective sections above.

CLI Usage dialog showing the read-only ADLDS command reference
CLI Usage opens the compact command-reference window.
Help dialog showing the expanded read-only ADLDS command reference
Help opens the same reference in a larger window.
CLI Operations page showing the operation selector, usage guidance, and Launch button
CLI Operations shows the selected script's purpose, required inputs, and example before launch.
OperationScriptInputs and behavior
CPA Toolsadlds-core\horizon-adlds-tools.ps1Interactive CPA data export, recovery, and Local Pools Import workflow. Prompts for workflow inputs.
Replication Operationsadlds-core\Invoke-ReplicationOps.ps1showrepl, syncall, or scanall; scope is SelectedCS, PodLevel, or AllDiscoveredPods. PodLevel needs PodName; SelectedCS needs SelectedCS or SeedHost.
Orphan Assignmentsadlds-core\Find-OrphanAssignments.ps1Optional Server (default localhost), Port (default 22389), BaseDN (discovered from RootDSE), and OutputPath or OutputFolder. Writes review-only LDIF and never applies it.
Stale User Preferencesadlds-core\Invoke-StaleUserPreferences.ps1Live needs Server and PartitionDN; Ldif needs InputLdif. Days defaults to 90; Mode defaults to Count. Delete writes review-only LDIF.
Find Stale Usersadlds-core\Find-StaleUsers.ps1Requires LocalADLDSServer and LocalBaseDN. Optional GlobalADLDSServer and GlobalBaseDN include global cleanup. Can generate cleanup and rollback LDIF and reports.
Apply ADLDS LDIFadlds-core\Apply-AdldsLdif.ps1Requires LdifFile and Server. Supports Port, WhatIf preview, and ContinueOnError. Without WhatIf, this operation can change ADLDS.
Remove Horizon Useradlds-core\Remove-HorizonUser.ps1Requires ConnectionServer or LocalADLDSServer, plus UserSID or UserName and DomainNetBIOS. Optional REST and machine-deletion settings can extend cleanup.
Partition Migration CLIPartitionMigration\Start-PartitionMigration.ps1Launched from the Partition Migration page with -LaunchPartitionMigrationMenu. Opens the interactive migration menu; run pre-checks and follow the workflow prompts.

CLI Option Reference

Run these scripts from the adlds-tools directory. Switch names below are the declared parameters; named value sets are shown in parentheses. Unless noted, -Usage prints the script-specific syntax.

ScriptAll script-specific parameters
horizon-adlds-tools.ps1-Phase (Dump, Recover, Both, CpaJoin); -SourcePartition, -TargetPartition (vmware, horizon); -InputFile, -InputLdif, -SourcePodCn, -TargetPodCn, -InputAgeLdf, -VdmExportInput, -OutputDir, -LocalHost, -LocalPort, -LocalBase, -CpaHost, -CpaPort, -CpaBase, -ReplacePodId, -UseLatest, -Import, -NoLiveCpa, -NonInteractive, -DryRun, -CpaLiveAgeFile, -ExportPoolGe, -IncludeFiles, -CombineOutput, -ListPods, -ListLivePods, -PodCnMap, -Language, -Help (alias -Usage), and common -WhatIf.
Invoke-ReplicationOps.ps1-Operation (showrepl, syncall, scanall); -Scope (SelectedCS, PodLevel, AllDiscoveredPods); -SeedHost, -SelectedCS, -PodName, -Targets, -Port, -ContinueOnError, -Usage.
Find-OrphanAssignments.ps1-Server, -Port, -BaseDN, -OutputPath, -OutputFolder, -Usage.
Invoke-StaleUserPreferences.ps1-Source (Live, Ldif); -Mode (Count, Delete); -Days, -Server, -Port, -PartitionDN, -InputLdif, -OutputPath, -OutputFolder, -Usage.
Find-StaleUsers.ps1-LocalADLDSServer, -LocalADLDSPort, -LocalBaseDN, -GlobalADLDSServer, -GlobalADLDSPort, -GlobalBaseDN, -ADLDSUser, -ADLDSPassword, -ADCredentialFile, -ADDomain, -ADUser, -ADPassword, -OutputPath, -ConnectionServer, -HorizonAdminUser, -HorizonAdminPassword, -HorizonDomain, -DeleteMachines, -DeleteFromDisk, -SkipCertificateCheck, -CertificateThumbprint, -Usage.
Apply-AdldsLdif.ps1-LdifFile, -Server, -Port, -WhatIf, -ContinueOnError, -Usage.
Remove-HorizonUser.ps1-ConnectionServer, -UserSID, -UserName, -DomainNetBIOS, -HorizonAdminUser, -HorizonAdminPassword, -HorizonDomain, -LocalADLDSServer, -LocalADLDSPort, -LocalBaseDN, -GlobalADLDSServer, -GlobalADLDSPort, -GlobalBaseDN, -ADLDSCredential, -CertificateThumbprint, -SkipCertificateCheck, -Force, -DeleteMachines, -SkipMachineDeletion, -DeleteFromDisk, -LogFile, -OutputPath, -Usage, and common -WhatIf/-Confirm.
Start-PartitionMigration.ps1-LaunchPartitionMigrationMenu. Opens an interactive migration menu; workflow prompts are not exposed as script parameters.

CLI Examples

Run these examples from the adlds-tools directory. The CLI Operations page resolves the same scripts automatically.

# Start the interactive CPA workflow
.\adlds-core\horizon-adlds-tools.ps1

# Inspect replication on all discovered pods
.\adlds-core\Invoke-ReplicationOps.ps1 -Operation showrepl -Scope AllDiscoveredPods -SeedHost cs01.corp.local

# Find orphan global assignments; review the generated LDIF
.\adlds-core\Find-OrphanAssignments.ps1 -Server gcs01.corp.local -OutputFolder .\output

# Count stale preferences from live ADLDS (default threshold: 90 days)
.\adlds-core\Invoke-StaleUserPreferences.ps1 -Source Live -Server cs01.corp.local -PartitionDN "DC=vdi,DC=vmware,DC=int" -Mode Count

# Generate stale-user LDIF and reports for the local partition
.\adlds-core\Find-StaleUsers.ps1 -LocalADLDSServer cs01.corp.local -LocalBaseDN "DC=vdi,DC=vmware,DC=int"

# Preview an LDIF apply operation before making directory changes
.\adlds-core\Apply-AdldsLdif.ps1 -LdifFile "C:\temp\cleanup.ldif" -Server cs01.corp.local -WhatIf

# Identify a user by SID for Horizon cleanup
.\adlds-core\Remove-HorizonUser.ps1 -ConnectionServer cs01.corp.local -UserSID "S-1-5-21-123-456-789-1001"

# Open the partition migration CLI menu
.\PartitionMigration\Start-PartitionMigration.ps1 -LaunchPartitionMigrationMenu

Every CLI Operations script documents its switches with -Usage; CPA Tools also accepts -Help. The header's CLI Usage button opens the in-app guide.

Partition Migration

Partition Migration updates your Horizon AD LDS application partition from the legacy naming scheme to the new scheme introduced in recent Horizon releases. It is a guided, step-by-step operation you run directly on a Horizon Connection Server.

Current themed Partition Migration launcher in ADLDS Tools
Open the guided migration UI or CLI from the Partition Migration page in ADLDS Tools.

Before you begin

  • Upgrade Horizon to 2606 or later before running.
  • If you use Omnissa Access, upgrade the connector so it supports the new partition name.
  • Run during a maintenance window — avoid pool changes, entitlement changes, and desktop/app launches while migration is in progress.
  • Confirm there are no replication issues (check the Horizon Console dashboard).
  • Sign in with a domain user that is a local administrator on the Connection Server and a Horizon Full Administrator.
ℹ️
Full background and requirements are in the Omnissa KB article: https://kb.omnissa.com/s/article/6001593

Using the Partition Migration screen (3 phases)

1
Select the task and sign in

Choose a Task (Local, Global, or Old Partition Cleanup), enter your Horizon Administrator Username, Domain, and Password, then select Run Pre-checks.

2
Review the pre-checks

Results appear in the log area. Step buttons remain locked until pre-checks pass. Changing the task locks the steps again.

3
Run the steps in order

After pre-checks pass, run the enabled steps from top to bottom.

The three tasks

TaskWhen to use it
Local Partition MigrationThe standard migration for your POD's local partition. Start here.
Global Partition MigrationOnly when Cloud Pod Architecture (CPA) is enabled, and only after the new local partition is already in use.
Old Partition CleanupRun last, after migration is confirmed, to remove the legacy partition data (requires an explicit confirmation checkbox).

Local Partition Migration steps

Once pre-checks pass for the Local task, the five steps unlock. Run them top to bottom:

StepWhat it does
1. Validate prerequisites and prepare for migrationRuns the prerequisite checks and, when CPA is enabled, sets up the global partition.
2. Prepare current pod for migration and disable podPrepares the pod and disables the connection servers — you're asked to confirm because this takes the pod offline for brokering.
3. Initiate pod migrationCreates and populates the new local partition (not yet active).
4. Switch pod to Horizon local partitionMakes the new local partition active.
5. Validate and enable current podConfirms the new local partition is in use and re-enables the connection servers.
⚠️
Step 2 takes the pod offline. It disables the connection servers, so run it inside your maintenance window and don't broker new sessions until the migration is complete.

Global Partition Migration steps

Global migration is only for environments with CPA enabled, and only after the local migration is complete and in use. The screen groups the forward-migration steps and the recovery (revert) steps under a distinct Revert heading:

StepWhat it does
1. Initiate global partition migration for the federationMigrates the global partition data.
2. Switch federation to Horizon global partitionMakes the new global partition active.
3. Validate Horizon global partition in useConfirms the new global partition is in use.
Revert (recovery) — run only to undo the global migration; always asks for confirmation first.
1. Revert federation to the old global partitionRolls the federation back to the old global partition.
2. Validate the old global partition is in useConfirms the old global partition is back in use.
🛑
Revert is a recovery action. Only use it to undo the global migration. Any answer other than Yes at the confirmation cancels with no changes.
🛑
Old Partition Cleanup is permanent. It deletes the legacy partition data. Only run it after you are certain the migration completed successfully, and tick the confirmation checkbox to enable it.

Manage Secure Gateway Service

Use this tool to enable or disable the PCoIP Secure Gateway and BLAST Secure Gateway services on your Horizon Connection Server. Secure Gateways allow clients to connect securely from untrusted networks.

Current themed Secure Gateway Manager form
Current Secure Gateway Manager form showing the operation selector and action description.
OptionAction
1Enable PCoIP Secure Gateway
2Disable PCoIP Secure Gateway
3Enable BLAST Secure Gateway
4Disable BLAST Secure Gateway
5Enable both PCoIP and BLAST Secure Gateway
6Disable both PCoIP and BLAST Secure Gateway
7Exit to main menu

How to Use

1
Select "Manage Secure Gateway" from the main menu (or run directly with -Flow 'Manage Security Gateway').
2
Choose an action from options 1–6 above. The tool validates that you're running on a Horizon Connection Server.
3
Confirm your action when prompted.
4
Review the results — the tool reports success or displays any errors encountered.
ℹ️
What are Secure Gateways?

PCoIP and BLAST are protocols for remote desktop connections. Secure Gateways encrypt these connections when clients connect from outside your trusted network, providing an additional layer of security.

⚠️
This tool must be run directly on the Horizon Connection Server where the gateway services are installed. The tool automatically validates that a Horizon Connection Server installation is present before proceeding.

Automation & Scripting (Command-Line Mode)

The root script supports UI launch, interactive tool launchers, Pre-Check validation, and config-driven lifecycle operations. Some workflows securely prompt for credentials or open an interactive UI/console; use the dedicated parameterized commands below for automation.

Syntax

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation <type> -TargetHorizonVersion <version> [options]

Parameters

ParameterRequired?Description
-FlowNoOmit to open the main UI. Accepted values: Precheck Validation, ADLDS Operation, Manage Security Gateway, lcm, ADLDS Tools, --help, --h, /?, or help. ADLDS Operation is a legacy compatibility launcher; current ADLDS pages are under ADLDS Tools.
-ValidationBy flowactivedirectory, vcenter, server, ldap, all, capacityprovider, or adws. adws is for the ADLDS Operation flow.
-TaskFor lcminstall or upgrade.
-ConfigFor lcmLifecycle JSON config filename under Lcm\Config or an absolute path.
-BuildMetadataNoPath to official build metadata for lifecycle install/build resolution.
-TargetHorizonVersionFor Pre-CheckTarget Horizon version, for example 2606; requirements vary by validation type.
-ExecutionModeNoLocal (default), Remote, LocalPOD, or CPACluster — controls where checks run
-AdFqdnFor activedirectory / allActive Directory FQDN
-VCenterFqdnFor vcenter / allvCenter FQDN
-VCenterVersionFor vcenter / allvCenter version, e.g. 8.0.2
-CapacityProviderTypeFor capacityproviderProvider type from CapacityProvider.json, e.g. Nutanix_PrismCentral, Amazon_WorkSpaces_Core
-CapacityProviderFqdnFor capacityproviderFQDN of the capacity provider endpoint
-CapacityProviderVersionWhen applicableProvider version (omit for providers that have no version check)
-HorizonAdminUsernameFor ldap / allHorizon Administrator username
-HorizonDomainFor ldap / allHorizon domain
-HorizonAdminPasswordFor ldap / all (automated)Horizon Administrator password as a SecureString. If omitted, the password is securely prompted at runtime.
-AcceptSelfSignedCertificateNoSuppresses the TLS certificate prompt — accepted without user interaction
-RemoteServersCSVRemote modeCSV containing remote targets for WinRM execution.
-GetLocalPodServers, -GetAllCPAServersNoEnable local POD or CPA federation Connection Server discovery.
-TelemetryConsentNoenable, disable, reset, or status.
-HelpNoDisplays command-line help and examples

Examples

Server validation:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation server -TargetHorizonVersion '2503'

Active Directory validation:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation activedirectory `
    -AdFqdn 'dc.corp.example.com' -TargetHorizonVersion '2503'

vCenter validation:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation vcenter `
    -VCenterFqdn 'vcenter.corp.example.com' -VCenterVersion '8.0.2' -TargetHorizonVersion '2503'

LDAP validation — password prompted securely at runtime:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation ldap `
    -HorizonAdminUsername 'admin' -HorizonDomain 'corp'

LDAP validation — accept self-signed certificate without prompt:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation ldap `
    -HorizonAdminUsername 'admin' -HorizonDomain 'corp' -AcceptSelfSignedCertificate

Run all validations:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation all `
    -AdFqdn 'dc.corp.example.com' `
    -VCenterFqdn 'vcenter.corp.example.com' -VCenterVersion '8.0.2' `
    -TargetHorizonVersion '2503' `
    -HorizonAdminUsername 'admin' -HorizonDomain 'corp'

Capacity Provider validation (Nutanix Prism Central):

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation capacityprovider `
    -CapacityProviderType 'Nutanix_PrismCentral' -CapacityProviderFqdn 'prism.corp.example.com' `
    -CapacityProviderVersion 'pc.7.5' -TargetHorizonVersion '2606'

Run all validations against remote servers (over WinRM):

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation all -ExecutionMode Remote `
    -AdFqdn 'dc.corp.example.com' `
    -VCenterFqdn 'vcenter.corp.example.com' -VCenterVersion '8.0.2' `
    -TargetHorizonVersion '2606' `
    -HorizonAdminUsername 'admin' -HorizonDomain 'corp'

Open ADLDS Tools UI:

.\Start-HorizonAdvisor.ps1 -Flow 'ADLDS Tools'

Open Secure Gateway Manager menu:

.\Start-HorizonAdvisor.ps1 -Flow 'Manage Security Gateway'

Password Handling for Scheduled/Automated Tasks

When running Horizon Advisor automatically (in a scheduled task or CI/CD pipeline), you usually can't provide an interactive password prompt. Use the -HorizonAdminPassword parameter with a PowerShell SecureString to automate password entry.

⚠️
Security Best Practice: Never hardcode passwords in scripts as plain text. Always convert them to SecureString objects using your organization's credential management solution (e.g., password vault, secrets manager, Azure Key Vault, etc.).

Example: If you have a SecureString stored in a variable called $securePassword, run:

.\Start-HorizonAdvisor.ps1 -Flow 'Precheck Validation' -Validation ldap `
    -HorizonAdminUsername 'admin' -HorizonDomain 'corp' `
    -HorizonAdminPassword $securePassword
ℹ️
Horizon Advisor never logs, displays, or stores credential values. Passwords are only used to authenticate with the Horizon server for validation.

Getting Help & Troubleshooting

Getting Command-Line Help

To see all available command-line options, parameters, and examples directly from PowerShell:

.\Start-HorizonAdvisor.ps1 -Help

Where to Find Logs and Reports

When Horizon Advisor runs, it creates detailed logs and saves reports to:

%ProgramData%\Omnissa\Horizon\logs\HorizonAdvisor\

This folder contains:

  • PreCheckReports/ — HTML and PDF validation reports
  • Logs/ — Operation logs and debug information
ℹ️
Troubleshooting Tip: If something doesn't work as expected, check the logs in the above folder first. They often contain detailed error messages and helpful context.

Common Issues

❌ "Horizon Connection Server installation not detected"

You're trying to run AD LDS or Secure Gateway operations on a non-Connection Server machine. These tools must be run directly on the Connection Server.

❌ "Certificate verification failed" during LDAP validation

The Connection Server is using a self-signed or untrusted certificate. This is normal in lab/test environments. When prompted, select option [1] Accept this certificate. To suppress the prompt in automated runs, use the -AcceptSelfSignedCertificate flag.

❌ "Access denied" or permission errors

Horizon Advisor requires administrative privileges on the local machine. Run PowerShell as Administrator and try again.

❌ PowerShell execution policy blocks the script

If you see a "cannot be loaded because running scripts is disabled" error, run this command in PowerShell (as Administrator):

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Questions or Issues?

For additional help:

  • Consult the logs in %ProgramData%\Omnissa\Horizon\logs\HorizonAdvisor\
  • Review the -Help output for command-line usage
  • Check the Omnissa documentation or support resources