Hi Tomas,
The properties of a storage profile are located here: http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/AdminVdcStorageProfileType.html
You should be able to get this object by using:
$myProfile = Search-Cloud -querytype AdminOrgVdcStorageProfile -Name "MyProfileName" | Get-CIView -viewlevel Admin
Once you have the admin level object, you should have an updateServerData() method.
So, disabling the storage profile would look something like this:
$myProfile.enabled = $false $myProfile.updateServerData()
*disclaimer* I don't have a 5.1 environment handy right now to tell you that this is exactly what you need to do, so be sure to update this thread with any changes to my code above.
Cheers,
Jake