This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vmware:esx_powercli [2021/11/19 23:47] manu [Commands] |
vmware:esx_powercli [2022/09/20 22:40] (current) manu |
||
---|---|---|---|
Line 267: | Line 267: | ||
</cli> | </cli> | ||
+ | ==== List VM with RAW disks ==== | ||
+ | |||
+ | <cli prompt='>'> | ||
+ | PS1> Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | fl | Out-File –FilePath RDM-list.txt | ||
+ | </cli> | ||
===== Commands ===== | ===== Commands ===== | ||
Line 393: | Line 398: | ||
If you would like to remove confirmation option, then add this at the end of commandlet "-Confirm:$false", this is an example: | If you would like to remove confirmation option, then add this at the end of commandlet "-Confirm:$false", this is an example: | ||
- | |||
<cli prompt='>'> | <cli prompt='>'> | ||
PS1> Get-VM | Get-CDDrive | Set-CDDrive -Connected:$false -confirm:$false | PS1> Get-VM | Get-CDDrive | Set-CDDrive -Connected:$false -confirm:$false | ||
Line 425: | Line 429: | ||
To remove a confirmation option, add this at the end of commandlet: | To remove a confirmation option, add this at the end of commandlet: | ||
+ | <code> | ||
-Confirm:$false | -Confirm:$false | ||
+ | </code> | ||
For example: | For example: | ||
Line 439: | Line 445: | ||
In this example, the VMware Tools for all of the virtual machines in Resource Pool vCloud are updated without rebooting the virtual machine: | In this example, the VMware Tools for all of the virtual machines in Resource Pool vCloud are updated without rebooting the virtual machine: | ||
- | |||
<cli prompt='>'> | <cli prompt='>'> | ||
PS1> Get-ResourcePool vcloud | Get-VM | Update-Tools -NoReboot | PS1> Get-ResourcePool vcloud | Get-VM | Update-Tools -NoReboot | ||
WARNING: Automatic update of VMware tools is not fully supported for | WARNING: Automatic update of VMware tools is not fully supported for | ||
non-Windows OSs. Manual intervention might be required. | non-Windows OSs. Manual intervention might be required. | ||
+ | </cli> | ||
- | Note: Before r</cli>unning the cmdlet, ensure that the VMware Tools service is running. This command is used only to upgrade VMware Tools. To do an unattended install, use msiexec.exe. For more information, see the Microsoft article Command | + | Note: Before running the cmdlet, ensure that the VMware Tools service is running. This command is used only to upgrade VMware Tools. To do an unattended install, use msiexec.exe. For more information, see the Microsoft article Command |