How to batch extend VM disk
2017-07-06 16:20
344 查看
Add-PSSnapin vmWARE.VimAutomation.Core$vc="vCenterHostName"connect-viserver $vc$VMinfo = get-content "c:\VMName.csv"foreach ($VM in $VMinfo){Get-HardDisk -vm $VM | where {$_.Name -eq "Hard Disk 1"} |Set-HardDisk -CapacityGB 60 -Confirm:$false}
根据实际情况更改VC名字和Hard disk number and size.
根据实际情况更改VC名字和Hard disk number and size.
相关文章推荐
- How to batch create VM disks
- How to extend an LVM disk on a RHEL guest machine running on VMware host?
- How to remove a batch of VMs and related Disks
- How to launch Windows applications (Notepad) / Call Batch files from a C#/.NET console application.
- How to extend the root partition in LVM
- How to move ASM database files from one diskgroup to another
- How to Configure Hard Disk Drives on a CEPC
- How to rename ASM disks
- How to custom Spring Batch DelimitedLineTokenizer?
- Batch script: how to check for admin rights
- How To: Extend the Virtual Disk Size of a XenServer VM
- How to use pysphere set VM cpu or memory reservationrese value
- how to extend C style IO to user defined types
- How to mount encrypted linux disk/diskIMGfile
- How to Restore the Database Using AMDU after Diskgroup Corruption (Doc ID 1597581.1)
- how to assign more that 31 VFs to one VM
- How to extend Magento Order Grid?
- Convert the virtual disk to Eager Zeroed Thick and extend disk
- How to create a VM on a specified host with openstack
- How To Create An ASM Diskgroup Using XML code Thru ASMCMD [ID 1290550.1]