SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


powercliupgradehwlevel9
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
powercliupgradehwlevel9 [2014/04/24 22:47]
sjoerd
powercliupgradehwlevel9 [2014/04/24 23:10] (current)
sjoerd
Line 67: Line 67:
  
 Function PowerOff-VM($vm){ Function PowerOff-VM($vm){
 +   ​$vmview = Get-VM $vm | Get-View
 +   ​$toolsstatus = $vmview.Guest.ToolsStatus
    if (($toolsstatus -eq "​toolsNotInstalled"​) -or ($toolsstatus -eq "​toolsNotRunning"​)){    if (($toolsstatus -eq "​toolsNotInstalled"​) -or ($toolsstatus -eq "​toolsNotRunning"​)){
    Stop-VM -VM $vm -Confirm:​$false | Out-Null}    Stop-VM -VM $vm -Confirm:​$false | Out-Null}
powercliupgradehwlevel9.txt ยท Last modified: 2014/04/24 23:10 by sjoerd