Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values.

$
0
0

When running the script below

 

#import list of servers from text file

$Servers = Get-Content -Path “c:\VMlist.txt”

# Take snapshot of each vm

foreach($Server in $Servers){

Get-VM -Name $Server | New-Snapshot -Name "Take 2" -Description "blah blah blah" # -Quiesce -Memory

}

 

I recieve this error "WARNING: Parameter 'VM' is obsolete. This parameter no longer accepts multiple values."

 

Is there anyway around this or is thee a better way?


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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