Hi.
I've written a PS script to build ESX hosts from a CSV file using all manner of CMDLETS and, as you may have seen in this forum, a few extra parts using the SDK courtesy of LucD and Alan Renouf.
My current challenge is add the line:
prefvmx.consolidateDeleteNFSLocks = "TRUE"
to the file /etc/vmware/config.
This is very straightforward at the command line of the ESX but the script is designed to be used by non-technical users who simply use the CSV file they're given with the script.
I can't use Out-File as this tries to write the file to the local hard disk, not exactly useful.
Any ideas or pointers greatfully received and rewarded with points.
Cheers,
Darren.
Since these are ESX servers you can use the plink.exe command from the PuTTY suite.
For an example have a look at my script in the thread.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi and thanks for the pointer.
The ESX hosts are built by another team and arrive with SSH disabled so I'm unable to PuTTY, PSCP, PLINK etc...
What a pickle. :smileyshocked:
Cheers,
Darren.