With View powercli command we can pull the list of unassigned vm's .Below is the onliner to save the list of unassigned vm list to C drive
Get-Pool | Select Pool_id, @{Name="Unassigned VMs";Expression={($_ | Get-DesktopVM | ? {$_.user_displayname -eq "$null"})} |Out-File c:\VMlist.txt
Bijesh
No comments:
Post a Comment