使用例

ここでリストする例では、対象 IP アドレス 192.0.2.1、ユーザー ID newuser1、およびパスワード newuser100 を使用しています。

  1. 以下のコマンドは、コマンドを発行しているマシンの一時ディレクトリーのディレクトリー・リストを表示します。
    To display the contents of temp on a windows target
    
    wrcmdpcr newuser1:newuser100 @Endpoint:192.0.2.1 cmd /c dir \temp
    To display the contents of temp on a linux target
    
    wrcmdpcr newuser1:newuser100 @Endpoint:192.0.2.1 ls /temp
  2. 以下のコマンドは、temp ディレクトリーのファイルを Windows ターゲットの match ディレクトリーにコピーします。コマンド全体を 1 行で入力してください。
    wrcmdpcr newuser1:newuser100 @Endpoint:192.0.2.1 cmd /c 
    copy c:\temp\1.csv c:\match
  3. 以下のコマンドは、Windows ターゲットのネットワーク統計を表示します。
    wrcmdpcr newuser1:newuser100 @Endpoint:192.0.2.1 cmd /c netstat