Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 224018

Re: Identify SRM Placeholders

$
0
0

While it's not foolproof, you'll find that placeholder VMs don't return anything when you do a Get-HardDisk on them so you could try something like this.

 

Get-VM | ? {$_.PowerState -eq "PoweredOff" -and ($_ | Get-HardDisk) -eq $null}

 

I believe this will return all your placeholder VMs although it's not foolproof because if you happen to have a regular VM that doesn't happen to have a hard disk attached it too will show up. I haven't been able to find any other way to differentiate a placeholder VM yet.


Viewing all articles
Browse latest Browse all 224018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>