VMware Horizon Community
Kristofejro
Contributor
Contributor

sviconfig fails to run

Hi guys,

Maybe someone of you can help me to run sviconfig.

Now when I run:

C:\Program Files (x86)\VMware\VMware View Composer>sviconfig -operation=ReplaceCertificate -delete=false

I have got error like:

Unhandled Exception: System.Security.SecurityException: Requested registry access is not allowed.

   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)

   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)

   at VMware.Sim.SimConfig.Operation.OperationHelper.GetSVIInstallPath()

   at VMware.Sim.SimConfig.Operation.OperationHelper.FindPortFromSviConfig()

   at VMware.Sim.SimConfig.Operation.ReplaceCertificateOperation.Execute(IOutput output)

   at VMware.Sim.SimConfig.SimConfig.Main(String[] args)

error.PNGerror1.PNG

Do you know how to solve the problem?

It is on vCenter Server 6.5 with View Copmposer 7.0.3.

BR

Kris

Reply
0 Kudos
1 Reply
gbartlett
Contributor
Contributor

Just to hopefully save someone else some pain and agony if they run into this like we did as well. Here is what we did to fix it.

4 years later, different person, same issue. This was the fix.

https://kb.vmware.com/s/article/2150066

Go to the designated spot in the registry, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc

And change the permissions for the main folder (instructions at the link above), you’re basically adding admin, creator owner, etc to the permissions on the main vmware inc folder.

We had to change the owner for the "Vmware, Inc" folder in order to add/change permissions for the folders below. After doing that, we were able to run sviconfig without issue to replace the currently bound cert to the View Composer service.

 

Reply
0 Kudos