MACSCRPT Archives

February 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Daniel A. Shockley" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 1 Feb 2011 22:14:25 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
On Tue, 1 Feb 2011 18:59:42 -0600, "Stockly, Ed" <[log in to unmask]
> wrote:

>
> Is it possible, via appleScript or shell scripting, to turn Remote Desktop
> access on a remote mac?
>
> ES
>

Yes. If you log in via SSH, you can run shell commands that talk to
'kickstart' - in the /System/Library/CoreServices...

Here's the activation command:

sudo
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
-activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes
-clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all

Read the details at the following two pages:

http://technotes.twosmallcoins.com/?p=279

http://support.apple.com/kb/HT2370

Daniel A. Shockley
[log in to unmask]

ATOM RSS1 RSS2