VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Support ItemType on New-Item for the VimDatastore PSProvider

In the current VimDatastore PSProvider a New-Item always results in the creation of a folder.

In analogy with the FileSystem PSProvider, it would be useful being able to use the ItemType parameter to specify either a File or a Directory.
That would allow the creation of a file on a datastore, for example


New-PSDrive -Location $ds -Name ds -PSProvider VimDatastore -Root '\'
New-Item -Path ds:\MyVM\notes.txt -ItemType File

  • Luc Dekens
  • Feb 9 2018
  • Looking for Feedback
  • Attach files