Saturday, March 24, 2018

Horizon view | Powercli command to get the list of unassigned VM's


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





Regards
Bijesh

No comments:

Post a Comment