Hi all,
In VI Toolkit v1.0 there is a datastore provider. This may be very interesting feature to use in some cases. Here is how you can use it:
First you need to mount the datastore provider to some drive:
PS C:\> Get-Datastore -Name "storage1 (3)"| New-DatastoreDrive -Name "ds"
Name Provider Root CurrentLocation
-
-
-
-
ds VimDatastore \Datastore\443@10.23.113.41\Data...
Now you can 'cd' to it and do all directory operations you like:
PS C:\> cd ds:
PS ds:\> dir
Datastore path:
LastWriteTime Type Length Name
-
-
-
-
2/25/2008 6:11 PM Folder Win2003 64bit
2/24/2008 8:19 AM Folder Win2003 32bit
2/24/2008 12:07 AM Folder WinXP 32bit
6/16/2008 2:27 PM Folder RedHat 9
2/24/2008 11:10 PM Folder WinXP 64bit
6/20/2008 11:57 AM Folder PS20_win2003
8/6/2008 11:15 AM Folder testMachine_Vista_32bit
8/5/2008 5:07 PM Folder testMachine_2003_64bit
8/6/2008 11:25 AM Folder testMachine_XP_64bit
6/6/2008 2:22 PM Folder Ubuntu
6/24/2008 2:29 PM Folder WinVista Business 64b...
8/6/2008 11:00 AM Folder VC4.0