How to disable auto screen lock after Apple Remote Desktop Session #macos

In Terminal, do this:

sudo defaults write /Library/Preferences/com.apple.RemoteManagement RestoreMachineState -bool NO

One little annoyance of using Apple Remote Desktop to control other computers around the house. Of course, in corporate/work settings, you should leave it on so you won’t leave the remote mac active after remote session.