VMware Cloud Community
Roman_Romano
Enthusiast
Enthusiast

Is it possible to launch 'vmkfstools' on an ESX host from a PowerCLI script?

Many apologies if this is a stupid question but.... is it possible to launch 'vmkfstools' on an ESX host from a PowerCLI script?

Roman

Tags (1)
Reply
0 Kudos
3 Replies
lamw
Community Manager
Community Manager

Yes,you'll need to use plink to SSH into ESX host to issue the vmkfstools copy

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

Roman_Romano
Enthusiast
Enthusiast

...so create a function that forms a wrapper for plink.exe using 'Invoke-Expression'???

Thanks

Reply
0 Kudos
LucD
Leadership
Leadership

Have a look at Retrieve VMX to see a sample script that uses plink.exe.

____________

Blog: LucD notes

Twitter: lucd22


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

Reply
0 Kudos