Standalone PowerShell scripts for Windows endpoint administration, Active Directory delegation, and VMware Horizon VDI operations. Unlike the companion module repos (DE.Tools, DE.SecretManagement) these are individual scripts, each self-contained and parameter-driven.
Hostnames, domains, and share paths are placeholders (corp.example.org, \\FILESRV01\...) —
adapt them before running anything.
| Script | What it does |
|---|---|
New-VDIOU.ps1 |
Creates an OU and delegates a granular permission set to named users and/or groups |
Set-VDIOUPermissions.ps1 |
Applies the same permission set to an OU that already exists |
Set-VDIProfilePermissions.ps1 |
Repairs a user's VDI profile folder ACL when they can't reach their own profile |
Invoke-IvantiAgentMaintenance.ps1 |
Reports on / starts the Ivanti (AppSense) agent service and clears its download cache across every available VM in a Horizon pool |
| Script | What it does |
|---|---|
Get-MappedPrinters.ps1 |
Enumerates network printer connections for every user profile on a remote machine by reading the user registry hives |
Get-SoftPrinter.PS1 |
Reports the location-based printer mapping state on the current endpoint |
Set-SoftPrinter.ps1 |
Maps network printers from a location-specific config file, driven by an environment variable set upstream by Ivanti |
New-VDIOU.ps1 delegates the permission set VDI provisioning actually needs, rather than
handing out a broad delegation:
- List Contents
- Read All Properties
- Create / Delete Computer Objects
- Write All Properties (descendant objects)
- Read Permissions
- Reset Password (computer objects)
.\VDI\New-VDIOU.ps1 -OUName "VDI-Pool-01" -OUPath "OU=VDI,DC=corp,DC=example,DC=org" `
-Users "vdi-admin","desktop-engineer"
# Or apply the same set to an existing OU
.\VDI\Set-VDIOUPermissions.ps1 -OUPath "OU=VDI-Pool-01,OU=VDI,DC=corp,DC=example,DC=org" `
-Users "new-admin"Both scripts wait for the new object to replicate before acting on it — -MaxWaitSeconds
(default 120) bounds the wait, so a run doesn't fail simply because it outran AD replication.
Invoke-IvantiAgentMaintenance.ps1 targets a whole Horizon pool at once, with each action
behind its own switch so they can be combined or run individually:
# What's the agent state across the pool?
.\VDI\Invoke-IvantiAgentMaintenance.ps1 -poolName "VDI-Pool-01" -report
# Start it where it's stopped, and clear stale agent downloads
.\VDI\Invoke-IvantiAgentMaintenance.ps1 -poolName "VDI-Pool-01","VDI-Pool-02" -startService -clearDownloadGet-MappedPrinters.ps1 answers "which printers does this user actually have?" without
needing an interactive session on the endpoint:
.\MISC\Get-MappedPrinters.ps1 -ComputerName "WKS01"- Windows PowerShell 5.1+
- ActiveDirectory module (RSAT) for the AD scripts
- VMware PowerCLI, including the Horizon module, for
Invoke-IvantiAgentMaintenance.ps1 - A domain-joined machine with rights appropriate to the operation
- PowerShell remoting enabled on targets for the remote-query scripts
- Each script is self-contained and parameter-driven with comment-based help —
Get-Help .\VDI\New-VDIOU.ps1 -Full - Provisioning scripts include AD replication wait/retry logic rather than assuming an object is immediately available
- Console output is colour-coded by severity; failures report the underlying exception rather than a generic message
- Credential retrieval is delegated to the DE.SecretManagement module — no credentials are stored in these scripts
MIT — see LICENSE.