2014-02-16 19:42:20 +00:00
|
|
|
Param(
|
|
|
|
[Parameter(Mandatory=$true)]
|
|
|
|
[string]$VmId
|
|
|
|
)
|
2014-02-15 23:29:16 +00:00
|
|
|
|
2014-02-16 19:42:20 +00:00
|
|
|
# Shuts down virtual machine regardless of any unsaved application data
|
|
|
|
$VM = Get-VM -Id $VmId -ErrorAction "Stop"
|
|
|
|
Stop-VM $VM -Force
|