Denne artikel er blevet arkiveret og opdateres ikke længere af Apple.

Brug kommandolinjeværktøjet kickstart i Apple Remote Desktop

Du kan bruge kickstart til at udføre Apple Remote Desktop-kommandoer uden at genstarte fjerncomputeren.

Brug kickstart til at indstille Apple Remote Desktop. Du kan f.eks. installere, fjerne, aktivere, indstille og genstarte Apple Remote Desktop-komponenter.

Læs mere om, hvordan du kan kontrollere en ekstern Mac via Skærmdeling med kommandolinjeværktøjet kickstart i macOS Mojave 10.14 og nyere versioner.

Kom godt i gang

Du finder værktøjet kickstart her:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart

Indtast kommandoerne i denne artikel som én tekstlinje. Det gør ikke noget, hvis teksten ombrydes, mens du indtaster den. Tryk ikke på returtasten, før du har indtastet hele kommandoen.

Brug mærket -help for at få flere oplysninger om kommandoen kickstart:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -help

Eksempler på kommandoer

Kommandoerne i denne artikel virker med Apple Remote Desktop 3.2 og nyere versioner.

Her er nogle kommandoer, du kan bruge:

  • Genstart ARD Agent og hjælpeværktøjet:

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent

  • Slå Remote Desktop-deling til, giv alle brugere adgang, og slå menutilføjelsen til:

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -allUsers -privs -all -clientopts -setmenuextra -menuextra yes

  • Slå Remote Desktop-deling til, giv valgte brugere adgang:

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsersYou must use the -configure, -access, and -privs options in a separate command to specify the set of users and their access privileges. For example, this command is for users with the short names "teacher" and “student." It gives them access to observe (but not control) the computer, and to send text messages:

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users teacher,student -access -on -privs -ControlObserve -ObserveOnly -TextMessagesUnlike other kickstart options, you can’t combine the allowAccessFor options with other kickstart options. You must use it as in the last two samples above. You might have to call kickstart more than once to finish a computer’s setup.

  • Fjern adgangstilladelser for bestemte brugere ("student" i dette eksempel):

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users student -access -off

  • Slå ARD Agent fra, og fjern alle brugeres adgangstilladelser:

    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off

Udgivelsesdato: