microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
670 stars 222 forks source link

Help with enable "Remote Management" #32

Closed ehtesham1601 closed 2 years ago

ehtesham1601 commented 2 years ago

Hi, I have been struggling to setup remote management on Big Sur and above (Apple Silicon), getting the below error

"setremotelogin: Turning Remote Login on or off requires Full Disk Access privileges."

I am using the below command to enable Remote management

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowaccessfor -specifiedusers -users administrator -on -privs -all -restart -agent -menu

Can someone help please.

ehtesham1601 commented 2 years ago

@theneiljohnson could you please look into this.

theneiljohnson commented 2 years ago

Apple has made this quite difficult. We're currently investigating doing this via MDM command. I'm going to remove this script for now and close this because I don't think there is much that we can do.