Hi all , need some help in following syntax of powercli to create snapshotof vm . function take-snapshot { [cmdletbinding()] param( [parameter(mandatory=$true)] [string]$virtualmachi...
See more...
Hi all , need some help in following syntax of powercli to create snapshotof vm . function take-snapshot { [cmdletbinding()] param( [parameter(mandatory=$true)] [string]$virtualmachine ) param( [parameter(mandatory=$true)] [string]$name ) $snapshot=New-Snapshot -VM $virtualmachine -Name $name -Description "test3" -Verbose } can i have two param blocks for 1.virtual machine name 2:name of screen shot all i want is when i run this function it should pop us virtual machine name and then name of screenshot.