Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Check Vm is in Vms.

$
0
0

Hi

I want to create powershell script that ask me virtual machine and then check there is in sever or no.

i use this command for input machine name

$VirtualMachines = Read-Host "Please Type The VMName"

& can get list of vm using 

Get-VM | select Name

but i dont know how can Comparison them .



Whenever you see a helpful reply, click on Alternate Text Vote As Helpful& click onAlternate Text Mark As Answer if a post answers your question.

LinkedIn:  Facebook:  


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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