Check if a Cloud key was already applied
I wanted to find out if anybody via scripting, found a way to determine if a cloud key has already been assigned on a system and then not apply it again if it does find one? Getting tired of all the (1) (2) (3) (4) that I have to manually remove.
Comments
Hi Bob,
There isn't a direct command for this yet, but you can test for the existence of the "CloudCredentials.bed" file that is only created by VNC Server once it is joined to the cloud. Please see below for the location of this file on each platform:
Windows: C:\ProgramData\RealVNC-Service\vncserver.d\CloudCredentials.bed
Mac: /var/root/.vnc/config.d/vncserver.d/CloudCredentials.bed
Linux: /root/.vnc/config.d/vncserver-x11.d/CloudCredentials.bed
I hope this helps!
Hi Jack,
I have this same issue, but when I look in the folder location you indicated, there directory wasn't there. Have there been changes since 2021? I need this so we can determine what systems do not have the product deployed without having to run a report in our Inventory and compare that to the login portal.
Thanks,
MItch
Hi Mitch,
That directory is still used for the CloudCredentials.bed file as well as VNC Server's logging. If CloudCredentials.bed isn't present but the rest of the RealVNC-Service exists, it means VNC Server isn't joined to the cloud.
Note in VNC Server 6.11.0, you can run the below command on the VNC Server computer (elevated/admin required) to check if VNC Server is cloud joined instead:
I hope this helps!
Perfect. The systems I checked both did not have the cloud service installed, but their system names were the same as some older systems still left in our cloud database which was causing some confusion. I reinstalled the cloud service and the directories showed up. Thanks for your help!
Please sign in to leave a comment.