- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
The following should unmoun the Tools media if mounted on a VM;
Get-VM | ? {$_.ExtensionData.Runtime.ToolsInstallerMounted -eq $true } | Dismount-Tools
You can scope by adjusting the parameter for the Get-VM (eg. Get-VM "LAB*" | ? {$_.ExtensionData.Runtime.ToolsInstallerMounted -eq $true } | Dismount-Tools) or add a Get-ResorucePool XXX or Get-Cluster XXX to the pipe (Get-Cluster Lab | Get-VM | ? {$_.ExtensionData.Runtime.ToolsInstallerMounted -eq $true } | Dismount-Tools)
Kind regards,
Adrian
Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly.
Cheers,