VMware Cloud Community
toprockRS
Enthusiast
Enthusiast

Get-Datastore returns nothing

Hi there,

at the moment I have a problem that Get-Datastore is not returning a single Datastore even i can see them via Web or Fatclient.

This User has restricted access rights so that he can see only two of 30 Datastores but as I said only via vSphere Client.

Is there a special right i have to assign that user so that powershell is also able to get datastores?

VMs that are visible to that Users get returned when running Get-VM

I tried PowerCLI 5.8, 6.0 and 6.3 same Problem everywhere.

Regards

0 Kudos
2 Replies
RvdNieuwendijk
Leadership
Leadership

You can try giving the user the Browse datastore privilege.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos
toprockRS
Enthusiast
Enthusiast

Thank you for your answer.

It is already and additionally the Role assigns

- Allocate spcae

- low level file operations

- remove file

- upload "files"

So i think it´s not related but an issue with how powershell deals with it.

0 Kudos