Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

VixCOM.VixLib.Connect call fails with error code 3014; "VIX_E_HOST_USER_PERMISSIONS"

$
0
0

 

I am attempting to use the VIX API 1.60 from a VBS script to connect to a VC 2.5 Server using the VixCOM.VixLib.Connect call with the hostType parameter set to VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_VI_SERVER .

 

 

This does indeed work, but only if I hard code in the username/password of a Domain Admin user.  This is of course something I'm completely unwilling to deploy with as this code is running from a VBS script.

 

 

I've tried leaving the userName/password parameters set to Empty/Empty in order to force the Connect call into using current user on local host.  That didn't work even if I'm currently logged in as a Domain Admin.  Fails with error code 3014.  I would prefer this to work.

 

 

I've also tried creating a VC Role that can only Create/Delete Snapshots along with a Domain User attached to this role.  I can log into the VC server as this user and can indeed  Create/Delete Snapshots, but when I hardcode that userName/password into my VBS script it fails with error code 3014. Having this work is by far my lesser preference.

 

 

What am I missing?

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>