Skip to content

Instantly share code, notes, and snippets.

View hfike's full-sized avatar

Harry Fike hfike

  • Maryland, United States
View GitHub Profile
#!/bin/bash
LOCALADMIN="username"
LOCALUSER="username2"
kickstart=/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
echo "Configuring Remote Management"
if id -u $LOCALADMIN >/dev/null 2>&1; then
echo "Defined local admin account exists"
# Deactivate ARD agent, deny all access