itsvivekg
Contributor
Contributor

I am using this, but its not helping -

$TEMPLATE = (get-Template $VM_NAME).Name

If ($TEMPLATE -eq $VM_Name)

{$CHK = "TEMPLATE"}

One more thing, When I m taking $cells.item($i,8)  = (Get-VM $INPUT_IP|Select PowerState) , its thowing "0" for Powered OFF VMs.

Reply
0 Kudos