The functionality of this Fling has been integrated into Horizon View 6.1 and due to this, this Fling has been retired. This means that this Fling will not be updated in the future and comments will not be responded to. However, you can still download this Fling if you are using earlier versions of Horizon View.
May 13, 2015

I keep receiving Java errors on windows 2012 when I run --scanMachines

Can anyone advist

Sep 29, 2015

I kept getting Java errors too while running these commands on Server 2012 R2. Open command prompt and run as admin and the commands worked flawlessly in Server 2012.

Oct 01, 2015

Hi Braxton,

Can you post the error text here in as much detail as possible.
Also, what version of View are you using? Later versions of View come with this tool included in the install.


Oct 01, 2015

Connection Server = Server 2012 R2
VMware View version = 6.1.1 build-2769403
Using the viewdbchk.cmd that is included in the connection server install located at C:\Program Files\VMware\VMware View\Server\tools\bin

I was able to get the command to run when running command prompt as administrator and the tool worked great.

Below is the error that it returns when running --scanMachines

javax.naming.AuthenticationException: GSS-SPNEGO [Root exception is javax.securi
ty.sasl.SaslException: Failed to initiate authentication: com.vmware.vdi.common.
winauth.WinAuthCodifiedException: Failed to start authentication negotiation: Un
known error [Caused by com.vmware.vdi.common.winauth.WinAuthCodifiedException: F
ailed to start authentication negotiation: Unknown error]]
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(
at com.sun.jndi.ldap.LdapClient.authenticate(
at com.sun.jndi.ldap.LdapCtx.connect(
at com.sun.jndi.ldap.LdapCtx.(
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(

at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.ldap.InitialLdapContext.(
at com.vmware.vdi.ldapcontextpool.LdapContextManager$
at com.vmware.vdi.ldapcontextpool.LdapContextManager$LdapContextPool.get
at com.vmware.vdi.ldapcontextpool.LdapContextManager$LdapContextPool.get
at com.vmware.vdi.ldapcontextpool.LdapContextManager.getLdapContextForPo
at com.vmware.vdi.ldapcontextpool.LdapContextManager.getLdapContext(Ldap
at com.vmware.vdi.viewdbchk.desktop.MiniDesktopTracker.initialize(MiniDe
at com.vmware.vdi.viewdbchk.desktop.MiniDesktopTracker.getInstance(MiniD
at com.vmware.vdi.viewdbchk.command.ScanMachines.execute(ScanMachines.ja
at com.vmware.vdi.viewdbchk.command.ViewDbCmd.execute(
at com.vmware.vdi.viewdbchk.ViewDbChk.go(
at com.vmware.vdi.viewdbchk.ViewDbChk.main(
Caused by: Failed to initiate authentication:
com.vmware.vdi.common.winauth.WinAuthCodifiedException: Failed to start authent
ication negotiation: Unknown error [Caused by com.vmware.vdi.common.winauth.WinA
uthCodifiedException: Failed to start authentication negotiation: Unknown error]

at com.vmware.vdi.common.winauth.sasl.WinAuthSASLClient.prepareSASLCtx(W
at com.vmware.vdi.common.winauth.sasl.WinAuthSASLClient.evaluateChalleng
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(
... 22 more
Caused by: com.vmware.vdi.common.winauth.WinAuthCodifiedException: Failed to sta
rt authentication negotiation: Unknown error
at com.vmware.vdi.common.winauth.WinAuthCodifiedException.fromResponse(W
at com.vmware.vdi.common.winauth.UserContext.initiateSASLAuthentication(
at com.vmware.vdi.common.winauth.UserContext.initiateSASLAuthentication(
at com.vmware.vdi.common.winauth.UserContext.initiateSASLAuthentication(
at com.vmware.vdi.common.winauth.sasl.WinAuthSASLClient.prepareSASLCtx(W
... 24 more

Oct 01, 2015

So everything is ok when running as an administrator? but if you use a regular user you get the error?

If this is the case the behaviour is expected. The tool asks the connection server process to perform some work for it. The transport used for this has a security check that insists that the ViewDbChk process is run as an administrator.

Oct 01, 2015

That is correct. Right clicking and running command prompt as admin works without issue. I was posting the comment because often times I forget to run things as admin and thought it may help others in the future.

Oct 01, 2015

Hi Braxton,

Thanks for confirming.

The security check has to insist on the user being an administrator in order to run any commands - because they are pretty powerful....



May 14, 2015

Hi Declan,

Can you provide a few more details on the
- version of View you are using the fling with
- details of the error you are seeing


Mar 12, 2015

Thank you very much.
Very very very good game :)

Feb 14, 2015

Does this scan against missing/orphan VMs not in ADAM as well, or do we need to prompt which pools to scan?

Feb 15, 2015

Hi Anton,

No, ViewDbChk won't detect VMs that are missing from ADAM. If the entry for a VM has been removed from ADAM, View will attempt to re-provision the VM and re-create the ADAM entry before failing because the VM already exists.


Feb 12, 2015

This is awesome!!!