บทความนี้ถูกเก็บถาวรและไม่ได้รับการอัพเดทจาก Apple อีกต่อไป

ใช้ยูทิลิตี้บรรทัดคำสั่ง kickstart ใน Apple Remote Desktop

คุณสามารถใช้ kickstart เพื่อใช้คำสั่ง Apple Remote Desktop โดยไม่ต้องรีสตาร์ทคอมพิวเตอร์ระยะไกล

ใช้ kickstart เพื่อตั้งค่า Apple Remote Desktop ตัวอย่างเช่น คุณสามารถติดตั้ง ถอนการติดตั้ง เปิดใช้งาน ตั้งค่า และรีสตาร์ทส่วนประกอบ Apple Remote Desktop ได้

ดูวิธีควบคุม Mac ระยะไกลด้วยการแชร์หน้าจอด้วยยูทิลิตี้บรรทัดคำสั่ง kickstart ใน macOS Mojave 10.14 และใหม่กว่า

เริ่มต้นใช้งาน

คุณสามารถค้นหาเครื่องมือ kickstart ได้ที่:

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

พิมพ์คำสั่งในบทความนี้เป็นข้อความหนึ่งบรรทัด หากข้อความตัดเมื่อคุณป้อน ก็ไม่เป็นไร อย่ากดปุ่ม Return จนกว่าคุณจะป้อนคำสั่งทั้งหมด

สำหรับข้อมูลเพิ่มเติมเกี่ยวกับคำสั่ง kickstart ให้ใช้แฟล็ก -help:

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

ตัวอย่างคำสั่ง

คำสั่งในบทความนี้ใช้ได้กับ Apple Remote Desktop 3.2 และใหม่กว่า

ต่อไปนี้คือคำสั่งที่คุณสามารถใช้ได้

  • รีสตาร์ท ARD Agent และตัวช่วย:

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

  • เปิดการแชร์ Remote Desktop อนุญาตการเข้าถึงสำหรับผู้ใช้ทั้งหมด และเปิดใช้งานเมนูพิเศษ:

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

  • เปิดการแชร์ Remote Desktop อนุญาตการเข้าถึงสำหรับผู้ใช้ที่ระบุ:

    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.

  • ลบสิทธิ์การเข้าถึงสำหรับผู้ใช้ที่ระบุ ("student" ในตัวอย่างนี้):

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

  • ปิดใช้งาน ARD Agent และลบสิทธิ์การเข้าถึงสำหรับผู้ใช้ทั้งหมด:

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

วันที่เผยแพร่: