Sample Exchange

 View Only

Extend the Hard Disk for list of VMs using PowerCLI without Reboot 

Mar 23, 2019 05:21 PM

Overview:

enlightened Imagine having to expand the disk for over 10VMs using the manual approach and without reboot the machine.

Description:

PowerShell script to Extend the Hard Disk for list of VMs without reboot using that includes:

  • vCenter
  • The vCenter credential
  • The VMware Hard Disk (Ex. 1)
  • The new Hard Disk size in GB (Ex. 50)
  • The volume letter (Ex. c,d,e,f)

 

Output:

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

  • Saddam  ZEMMALI ----- Initial work ----- My Project

#MIT
#PowerShell
#extendvmharddisk
#powercli
#VMwarePowerCLI

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
gz file
Extend-HardDisk.psm1   2 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

May 28, 2019 03:26 PM

Invoke-WScript : The term 'Invoke-WScript' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ Invoke-WScript
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-WScript:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Related Entries and Links

No Related Resource entered.