VDI-GoldenImage

2603.0

Script with a basic set of maintenance tasks for a VDI Golden Image running on Omnissa (VMware) Horizon.
Typical tasks include updating OS, Office and other software as well as finalizing and cleaning up the image before final snapshot and deployment to virtual desktops.
Other tasks include installing/updating agents used in the VDI environment (Horizon, Dynamic Envir
Script with a basic set of maintenance tasks for a VDI Golden Image running on Omnissa (VMware) Horizon.
Typical tasks include updating OS, Office and other software as well as finalizing and cleaning up the image before final snapshot and deployment to virtual desktops.
Other tasks include installing/updating agents used in the VDI environment (Horizon, Dynamic Environment Manager, App Volumes, FSlogix, MS Teams for VDI, OneDrive and Google Drive).
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name VDI-GoldenImage

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

2026 DPDC CZ. All rights reserved.

Package Details

Author(s)

  • FaraJan

Tags

VDI Omnissa Horizon GoldenImage DynamicEnvironmentManager AppVolumes MicrosoftTeams FSLogix OneDrive GoogleDrive OSOT Automation Maintenance VMware

Functions

InitEnvConfig AddItemReg AddItemSvc MsgFce AddEmailBody MenuSimple GetMenuAction SetRegistry SetService SetSchtaskState OsotCmd Get-SwNormalizedVersion Get-SwRegDetail Get-MsiInformation SccmClearConfig Invoke-VdiSoftwareInstall Invoke-HorizonPostConfig Invoke-AppVolPostConfig Invoke-SDelete Invoke-Defrag

Dependencies

This script has no dependencies.

Release Notes

[v2603.0 - 20260331] Revised and modified code (more structured form and a number of tasks as separate functions)
Bug fixes and improvements
[v2510.0 - 20251003] New standalone task SDelete to zero free disk space and reduce virtual disk size. Defrag task by default hidden in script configuration
Bug fixes and improvements
[v2504.0 - 20250408] Added task to install/update Horizon Recording Agent
[v2503.0 - 20250331] Full Support for Omnissa installer packages and configuration (version 2412 and later). Support for new FSLogix installer.
New function Get-SwRegDetail for getting details of installed software
Bug fixes and improvements
[v2412.0 - 20241216] Removed task to install Microsoft Teams Classic (only New Microsoft Teams)
Default startup type of 'Optimize Drives' (defragsvc) service set to 'Manual' (because of FSLogix 'Disk Compaction' feature)
Updated to reflect changes in VMware and Omnissa
Bug fixes and improvements
[v2404.0 - 20240430] New option to import configuration from a standalone file 'VDI-GoldenImage.ps1.config' or specify file by 'ConfigFile' parameter
Added task to install/update New Microsoft Teams with automatic download of the latest version from the web or offline MSI
Added task to install/update Google Drive with automatic download of the latest version from the web
[v2312.0 - 20231220] Added optional param DisableSpoolerRestart to App Volumes
[v2311.1 - 20231130] Bug fixes and improvements
[v2311.0 - 20231107] Added task to install/update Microsoft FSLogix & OneDrive with automatic download of the latest version from the web
[v2310.0 - 20231027] Added task to install/update Horizon Agent, Dynamic Environment Manager and App Volumes
[v2309.1 - 20230926] Added task to install/update Microsoft Teams for VDI with automatic download of the latest version from the web
[v2309.0 - 20230906] Initial version with OS/Office update management, OSOT finalize action, and VM Tools install/update task

FileList

Version History

Version Downloads Last updated
2603.0 (current version) 14 4/10/2026
2510.0 317 10/6/2025