Quick Start
Get up and running in just a few steps:
Double-click HorizonAdvisor.bat or open PowerShell and run:
.\Start-HorizonAdvisor.ps1
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
Each tool guides you through required inputs and confirmations.
System Requirements
Before you get started, make sure your system meets these minimum requirements:
| Requirement | Details |
|---|---|
| Operating System | Windows (Server or client) with network access to a Horizon Connection Server |
| PowerShell | Windows PowerShell 5.0 or later (5.1 recommended). The graphical interface runs in STA mode automatically. |
| Supported Horizon versions | Pre-Check validates target versions from 2006 through 2606. Partition Migration requires the environment to be upgraded to 2606 or later first. |
| Permissions | A 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 Access | HTTPS (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 |
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:
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.
Connection Server Lifecycle Management
Install or upgrade Connection Servers on remote hosts over WinRM with live status monitoring.
ADLDS Maintenance Tools
Open the unified workspace for data browsing, maintenance, CPA operations, administration, and partition migration.
How to Use the UI
Click the dropdown to see all available options.
The panel below the dropdown explains what the selected tool does.
The tool opens in a new window or console.
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.
| UI area | Purpose and inputs |
|---|---|
| Operation | Select 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. |
| Build | Provide 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 servers | Add server FQDNs and choose each server's install type. Per-target MSI arguments are editable before execution. |
| Credentials and output | Use 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.
Validation Types
| Type | What It Checks | Required 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 |
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:
| Mode | What it does |
|---|---|
| Local Server | Runs 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 Servers | Discovers the Connection Servers in the local POD and validates each of them. |
| CPA Federation | Discovers 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
-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
| Item | Description |
|---|---|
| Validation Type | The type of check performed |
| Target Horizon Version | The version validated against |
| Execution Time | When the validation ran |
| Total Checks | Total number of individual checks performed |
| Passed | PASS Checks that met requirements |
| Warnings | WARN Checks flagged for review |
| Failed | FAIL Checks that did not meet requirements |
| Skipped | SKIP Checks not applicable to this configuration |
Detailed Results Table
| Column | Description |
|---|---|
| Check Key | The specific requirement being validated |
| Status | PASS WARN FAIL SKIP |
| Details | The current detected value or state |
| Recommended | For FAIL and WARNING items — the recommended value or corrective action |
Report Location
%ProgramData%\Omnissa\Horizon\logs\HorizonAdvisor\PreCheckReports\
| Validation | HTML Filename | PDF Filename |
|---|---|---|
| Active Directory | AD_Precheck_Report.html | AD_Precheck_Report.pdf |
| vCenter | vCenter_Precheck_Report.html | vCenter_Precheck_Report.pdf |
| Server | Server_Precheck_Report.html | Server_Precheck_Report.pdf |
| LDAP | LDAP_Precheck_Report-<timestamp>.html | LDAP_Precheck_Report-<timestamp>.pdf |
| Run All | Complete_PreCheck_Report_<timestamp>.html | Complete_PreCheck_Report_<timestamp>.pdf |
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.
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
Data Visualizer: Global ADLDS
Admin Ops
Local Tools
CPA Tools
Supported Pages
| Navigation group | Pages | Purpose |
|---|---|---|
| Data Visualizer: Local ADLDS | Servers; Desktop and Farms; vCenter Servers; Machines; Capacity / Cloud; Global Settings; Event Database; Authenticators; Permissions; FSP | Browse local partition records from a live directory connection or LDIF source. Select a record type, filter results, refresh, and inspect details. |
| Data Visualizer: Global ADLDS | Global Desktop Entitlements; Global App Entitlements; Pods & Sites; GE Associations; FSP | Browse corresponding global partition records. This is a data-viewing workflow and does not apply directory changes. |
| Admin Ops | FSMO Roles Manager; Decommission CS; Replication Status; ADWS State Management; CLI Operations | Manage local/global FSMO roles, decommission a Connection Server, inspect or synchronize replication, manage ADWS state, or launch a catalogued command-line operation. |
| Local Tools | Remove Horizon User; Find Stale Users; Apply ADLDS LDIF; Stale User Preferences; FSP GUID Sync | Clean 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 Tools | Orphan Assignments; Apply LDIF; Export; Local Pools Import | Find orphan global assignments and write review-only LDIF, apply reviewed global changes, export CPA data, or import local pools. |
| Partition Migration | Partition Migration | Open 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.
- 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.
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}]
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.
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.
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.
| Operation | Script | Inputs and behavior |
|---|---|---|
| CPA Tools | adlds-core\horizon-adlds-tools.ps1 | Interactive CPA data export, recovery, and Local Pools Import workflow. Prompts for workflow inputs. |
| Replication Operations | adlds-core\Invoke-ReplicationOps.ps1 | showrepl, syncall, or scanall; scope is SelectedCS, PodLevel, or AllDiscoveredPods. PodLevel needs PodName; SelectedCS needs SelectedCS or SeedHost. |
| Orphan Assignments | adlds-core\Find-OrphanAssignments.ps1 | Optional Server (default localhost), Port (default 22389), BaseDN (discovered from RootDSE), and OutputPath or OutputFolder. Writes review-only LDIF and never applies it. |
| Stale User Preferences | adlds-core\Invoke-StaleUserPreferences.ps1 | Live needs Server and PartitionDN; Ldif needs InputLdif. Days defaults to 90; Mode defaults to Count. Delete writes review-only LDIF. |
| Find Stale Users | adlds-core\Find-StaleUsers.ps1 | Requires LocalADLDSServer and LocalBaseDN. Optional GlobalADLDSServer and GlobalBaseDN include global cleanup. Can generate cleanup and rollback LDIF and reports. |
| Apply ADLDS LDIF | adlds-core\Apply-AdldsLdif.ps1 | Requires LdifFile and Server. Supports Port, WhatIf preview, and ContinueOnError. Without WhatIf, this operation can change ADLDS. |
| Remove Horizon User | adlds-core\Remove-HorizonUser.ps1 | Requires ConnectionServer or LocalADLDSServer, plus UserSID or UserName and DomainNetBIOS. Optional REST and machine-deletion settings can extend cleanup. |
| Partition Migration CLI | PartitionMigration\Start-PartitionMigration.ps1 | Launched 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.
| Script | All 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.
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.
Using the Partition Migration screen (3 phases)
Choose a Task (Local, Global, or Old Partition Cleanup), enter your Horizon Administrator Username, Domain, and Password, then select Run Pre-checks.
Results appear in the log area. Step buttons remain locked until pre-checks pass. Changing the task locks the steps again.
After pre-checks pass, run the enabled steps from top to bottom.
The three tasks
| Task | When to use it |
|---|---|
| Local Partition Migration | The standard migration for your POD's local partition. Start here. |
| Global Partition Migration | Only when Cloud Pod Architecture (CPA) is enabled, and only after the new local partition is already in use. |
| Old Partition Cleanup | Run 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:
| Step | What it does |
|---|---|
| 1. Validate prerequisites and prepare for migration | Runs the prerequisite checks and, when CPA is enabled, sets up the global partition. |
| 2. Prepare current pod for migration and disable pod | Prepares the pod and disables the connection servers — you're asked to confirm because this takes the pod offline for brokering. |
| 3. Initiate pod migration | Creates and populates the new local partition (not yet active). |
| 4. Switch pod to Horizon local partition | Makes the new local partition active. |
| 5. Validate and enable current pod | Confirms the new local partition is in use and re-enables the connection servers. |
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:
| Step | What it does |
|---|---|
| 1. Initiate global partition migration for the federation | Migrates the global partition data. |
| 2. Switch federation to Horizon global partition | Makes the new global partition active. |
| 3. Validate Horizon global partition in use | Confirms 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 partition | Rolls the federation back to the old global partition. |
| 2. Validate the old global partition is in use | Confirms the old global partition is back in use. |
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.
| Option | Action |
|---|---|
| 1 | Enable PCoIP Secure Gateway |
| 2 | Disable PCoIP Secure Gateway |
| 3 | Enable BLAST Secure Gateway |
| 4 | Disable BLAST Secure Gateway |
| 5 | Enable both PCoIP and BLAST Secure Gateway |
| 6 | Disable both PCoIP and BLAST Secure Gateway |
| 7 | Exit to main menu |
How to Use
-Flow 'Manage Security Gateway').
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.
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
| Parameter | Required? | Description |
|---|---|---|
-Flow | No | Omit 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. |
-Validation | By flow | activedirectory, vcenter, server, ldap, all, capacityprovider, or adws. adws is for the ADLDS Operation flow. |
-Task | For lcm | install or upgrade. |
-Config | For lcm | Lifecycle JSON config filename under Lcm\Config or an absolute path. |
-BuildMetadata | No | Path to official build metadata for lifecycle install/build resolution. |
-TargetHorizonVersion | For Pre-Check | Target Horizon version, for example 2606; requirements vary by validation type. |
-ExecutionMode | No | Local (default), Remote, LocalPOD, or CPACluster — controls where checks run |
-AdFqdn | For activedirectory / all | Active Directory FQDN |
-VCenterFqdn | For vcenter / all | vCenter FQDN |
-VCenterVersion | For vcenter / all | vCenter version, e.g. 8.0.2 |
-CapacityProviderType | For capacityprovider | Provider type from CapacityProvider.json, e.g. Nutanix_PrismCentral, Amazon_WorkSpaces_Core |
-CapacityProviderFqdn | For capacityprovider | FQDN of the capacity provider endpoint |
-CapacityProviderVersion | When applicable | Provider version (omit for providers that have no version check) |
-HorizonAdminUsername | For ldap / all | Horizon Administrator username |
-HorizonDomain | For ldap / all | Horizon domain |
-HorizonAdminPassword | For ldap / all (automated) | Horizon Administrator password as a SecureString. If omitted, the password is securely prompted at runtime. |
-AcceptSelfSignedCertificate | No | Suppresses the TLS certificate prompt — accepted without user interaction |
-RemoteServersCSV | Remote mode | CSV containing remote targets for WinRM execution. |
-GetLocalPodServers, -GetAllCPAServers | No | Enable local POD or CPA federation Connection Server discovery. |
-TelemetryConsent | No | enable, disable, reset, or status. |
-Help | No | Displays 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.
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
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
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
-Helpoutput for command-line usage - Check the Omnissa documentation or support resources
























