This GitHub Action Workflow can be used to check if Azure Storage Account Keys have been rotated within the last 180 days and scheduled to run automatically. You can add…
Compare and Delete AD Computer Accounts
This script deletes old computer accounts if the Azure virtual machine was deleted. Current script is triggered by Azure Automation webhook and uses Azure Automation credential with a Hybrid Worker.
Install Universal Print Driver and Map Printer
This script will first check if 7zip is installed and if not then install it. Then the script downloads HP Universal PS Driver, installs the driver and then maps a…
Resize Partition After Adding Disk Space
This script can be used to resize the OS partition after you have added additional disk space in Azure on VMware. Current script is triggered by a webhook and uses…
Install NVIDIA Drivers and Set Registry Keys
This script can be used with Azure Automation Runbook and a webhook to trigger the install and configuration. You can also remove modify the script to fit your needs. If…
GitHub Actions Workflow to Delete Multi-Session Host Pool VMs Running an Old Image
This workflow can be used to delete old image version session hosts. The script will do the following: • Checks if the VM is deallocated or running. If deallocated, the…
Find AVD User and Log Off
This script can be used to log off a user from Azure Virtual Desktops or you can integrate this with a request form and use it for user self-service.
Check for Failed Azure Extensions and Remove
This script will check your VMs for a specific failed extensions/CSE and remove them if the virtual machine is running.
Check Azure Compute Quota with Scheduled GitHub Action
Here’s how you can check your Azure compute quota with a scheduled GitHub Action workflow. This runs on a schedule but can also be run manually on a specific subscription.
Find and Delete all Orphaned Azure NICs and
Here’s a script that will find all the Azure Network interfaces that are orphaned/Unattached and remove them. Excludes any Private Endpoints and uses Resource Graph to quickly find the NICs.
Delete AVD Multi-Session Hosts Running Old Image
Here’s a script to delete all the AVD Multi-Session hosts running a pervious image version. The script will do the following: • Checks if the VM is deallocated or running.…
Replicate AVD MSIX App Attach Files to Storage Account Shares in Different Regions
If you have AVD Host Pools in multiple regions and you are using App Attach you will want to replicate your packages to a Azure Storage account in the same…
Send AVD Host Pool Session Load Info to Teams
Used for all Multi-Session Host Pools then the script gets Active Sessions, Disconnected Sessions, Session Host Count, Maximum Session Limit, Total Sessions and Session Usage Percentage which is based on…
Set Azure VM License Type Windows_Client
This script will help update licenses on all your Azure VMs, output to csv and has the option to exclude specific virtual machine names. For my VMS I needed to…
Get All Groups and Users in AVD Assignments
This script will get all the user accounts and groups in your Azure Virtual Desktop Application Groups Assignments. It will output to a table with ApplicationGroupName, HostPoolName, SessionType, Assigned
Move Sessions Hosts to New Host Pools Based on VM Location.
This script automates the process of moving Azure Virtual Desktop (AVD) Sessions hosts to new host pools based on the VM location and then reassigns the user back to their…