LucD
Leadership
Leadership

I guess you mean Invoke-VMScript, but that only works against VMs, not ESXi nodes.

I don't know of any cmdlet that would have the same functionality as the partedutil.

The closest that is available to perform specific functions inside an ESXi node is through the Get-EsxCli cmdlet.

But for commands that are not available in esxcli (or Get-EsxCli for PowerCLI), most of the time one would have to revert to an SSH session.

And execute console commands through something like plink.exe (from the PuTTY Suite).

And I don't remember seeing any API that offer this partedutil functionality.

I was hoping that the UpdateDiskPartitions method might do the trick, but obviously it doesn't.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference