Reset Vnc Password For Mac

Assign VNC password using script. Ask Question Asked 6 years, 9 months ago. Active 3 years, 1 month ago. Viewed 16k times 8. I am using a script to automatically set up a computer. I need to assign a password to the vnc server for the user, which is normally done using the vncserver command. However, it prompts for the user to enter and re.

gistfile1.txt
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting..
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -clientopts -setvnclegacy -vnclegacy yes
Starting..
Set the client options.
Done.
# Step 3: Set VNC password (change it at the end of the line (i.e. don't use supersecret))
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -clientopts -setvncpw -vncpw supersecret
Starting..
Set the client options.
Done.
# Step 4: Restart service
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent -console
Starting..
Stopped ARD Agent.
Stopped VNC Privilege Proxy
Stopped RFB Register MDNS
Done.
# Step 5: If no ARD services have been activated on the machine before, it is also necessary to run the following command
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate
Starting..
Activated Remote Management.
Done.

commented Jul 11, 2014

Thanks a bunch for this. My headless Mac Pro was showing a grey screen via Screen Share and it came right back after running these commands.

commented Apr 11, 2017

Super useful.

commented May 2, 2018

Super useful indeed. I was able to use this to log into a Circle CI instance to debug an issue via reverse ssh. Wouldn't have been able to figure out what was going on without this. Thanks.

commented Nov 12, 2018

Warning: macos 10.14 and later only allows control if Screen Sharing is enabled through System Preferences.

so sad

Toro xl lawn tractor service manual download

commented Sep 16, 2019

works well on 10.13.6, thanks

commented Nov 18, 2019

10.13.6, 10.14 - Does not work.

commented Mar 30, 2020

I'm currently working remote exclusively (Covid-19) and this saved me a trip to the office. (OS X 10.14.6)
The warning appears, but it actually works without 'Screen Sharing' being enabled. Having 'Remote Management' on apparently does the same thing.

commented Mar 31, 2020

Thanks for the note @aserraric! Glad to hear it was helpful.

Logic pro x cracked windows. Logic Pro X Crack is one of the best application for those users which they have an interest in music editing. Also, the application is developed for Digital Audio Workstation (DAW). As well as, logic pro x is made for the macOS platform. Also, you can use its Windows platform. The software Logic Pro X Crack is known as Natator Logic in the 1990s. All the functions, tools, and features you want in products available in it. Uninstall the Previous version of Logic Pro X Crack with IObit Uninstaller Pro; Extract the setup with WinRar file and open the folder; Run the setup and close it from everywhere; Open Crack and paste it into the installation folder; All is done. Keep visiting Pakicrack.com for latest software. MRT Dongle 3.36 Crack + Setup Free Download 2020. Logic Pro X 10.4.8 Crack is indeed the best software in this world. It is a professional and highly used music production software. We see that it is a product of Apple that works only for the macOS platform. Moreover, this program provides a single platform for performing different functions. Logic Pro X Windows provides users with a complete set of tools. Logic Pro X software has been updated to version 10.4 and introduces new advanced features, user-friendly interface and touch-pad support.Overall, Logic Pro X Serial Key is the best and comprehensive DAW to create organic audio and electronic beats in simple and easy manners.

commented Apr 1, 2020

I tested on 10.15.4. For whatever reason, -setvncpw -vncpw password seems to be setting the password to something else coz the vncviewer is getting authentication failure
But then I manually type the password into the system preferences > sharing > computer settings.. > vnc viewer may control screen with password: without changing anything else that was done by the command line. Then the authentication started working.
This is very strange and just that last bit breaks the whole thing.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment