Hey all
Just needed some assistance with the following:
I'm trying to peruse my 'datastores' using the 'New-PSDrive' cmdlet to create a PS drive with the following cmd:
$datastore = Get-datastore datastore1
New-PSDrive -Name DS -PSProvider VimDatastore -Root "\" -Datastore (get-datastore $datastore)
This works a treat but the problem is I can search ONE datastore at a time. I was wondering if there was a way could search more than one???? I've tried adding in more datastores by means of the following but it fails:
$datastores = Get-datastore (get-content c:\datastores.txt)
Any help would be greatly appreciated ?
Munster