コマンドラインを使用して、TeamViewer をデバイスに適用することができます。デバイスの OS に応じて、次の手順を実行してください。

この記事は 、デバイスに TeamViewer (バージョン 15 以降) を導入したいCorporateおよびTensorライセンス所有者に適用されます。

コマンドラインでデバイスを割り当てる方法

  1. CMD (Windows) またはターミナル (macOS) を開きます。
  2. TeamViewer のインストールフォルダに移動します。
  3. 以下のコマンド (下記参照) をコマンド ラインに入力します。
  4. キーボードのEnterキーを押します。
  5. (オプション)次のように入力します。
echo %errorlevel%

プロセスが成功したかどうかを確認するには、コマンド ラインに次のコードを入力します: 

  • 割り当てが成功した場合、コマンド ラインに値「0」が返されます。
  • その他の戻り値は、割り当て中に問題が発生したことを示します。詳細については、エラー・コードを参照してください。

TeamViewer.exe assignment --id paste_your_assignment_id_here 

例: 

TeamViewer.exe assignment --id 0001CoBBChARKJtw_okR6o_fJ7AisynpEigIACAfAgAJAOjwtNCVK_JiM5lVdgdfguSk-gQ= 

要件:

  • TeamViewer がすでにインストールされている。
  • TeamViewer full clientの場合、macOS で起動オプションを有効にする必要があります。

sudo /Applications/TeamViewerHost.app/Contents/Helpers/TeamViewer_Assignment -assignment_id <ID>

例:

sudo /Applications/TeamViewerHost.app/Contents/Helpers/TeamViewer_Assignment -assignment_id 0001CoBBChARKJtw_okR6o_fJ7AisynpEigIACAfAgAJAOjwtNCVK_JiM5lVdgdfguSk-gQ=

sudo /Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Assignment -assignment_id paste_your_assignment_id_here

例:

sudo /Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Assignment -assignment_id 0001CoBBChARKJtw_okR6o_fJ7AisynpEigIACAfAgAJAOjwtNCVK_JiM5lVdgdfguSk-gQ=

sudo teamviewer assignment --id paste_your_assignment_id_here 

例:

sudo teamviewer assignment --id 0001CoABChARKJtw_okR6o_fJ7AisynpEigIACAfAgAJAO4PLaOBrqNDgr6jwtNCVK_JiM5lVdgdfgYo3uQ3pGkAbX8bo_VqPw1Rt61-RLe9AKSwZ14uwOXtUN7FYflrHbWAqRKBF0h8V18ldMcVT1rLF

割り当ての更新/上書き方法

すでに割り当てられたデバイスがあり、再度コマンドラインから割り当てを実行すると、デバイスの割り当ては新しいもので上書きされます。上書きは古い割り当てが削除されることを意味し、すでに割り当てられた管理者やポリシーは失われます。

注意: TeamViewer ポリシーの「割り当ての削除を防ぐ」は、すでに割り当てられているデ バイスへの新しい割り当てを防止するものです。