Open PowerShell and modify the SubscriptionID, ResourceGroupName, HostPoolName and SessionHostName. This script will remove the currently assigned user.
Get the Total Number of Active Sessions in a Host Pool (Azure Virtual Desktop)
Here’s a quick PowerShell script to get the total number of active sessions in a Azure Virtual Desktop host pool.
Automatically Change Unattached Disks to Standard HDD
I usually use FunctionApp function with a timer to run maintenance type of scripts but this script can also be used manually. This can be helpful if you still need…
Configure Windows 10 AVD Multi-Session Intune Automatic Enrollment
To configure automatic enrollment of your AVD Windows 10 Multi-Session hosts you will need to enable the “Enable automatic MDM enrollment using default Azure AD credentials” policy setting in either…
Deallocate Stopped Azure Virtual Desktops With Function App
Here’s an example of how you can automatically check for stopped virtual machines and if any are found the script will Deallocate them so you don’t continue to get billed.…
Adding MSIX Packages to Azure Virtual Desktops
Open Azure Portal and go to the host pool you want to use. Click on MSIX Packages Add and type in the path to the packages. Click Add, then select…