VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Implement the IContentCmdletProvider for the VimDatastore PSProvider

The implementation of the IContentCmdletProvider provider on the VimDatastore PSProvider would allow us to use the 'Content' cmdlets to/from files on a datastore.

For example:

1) To read a file

New-PSDrive -Location $ds -Name ds -PSProvider VimDatastore -Root '\'

Get-Content -Path ds:\MyVM\vmware.log

2) To create content 

New-PSDrive -Location $ds -Name ds -PSProvider VimDatastore -Root '\'

Set-Content -Path ds:\MyVM\MyNotest.txt -Value "Hallo World!"

  • Luc Dekens
  • Feb 9 2018
  • Future Consideration
  • Attach files