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

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

Sign in to be able to add comments.

Comments 1


2068119210 1 year ago
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