このブログを検索

2012/04/21

wmicでプロセス操作

プロセスを表示
c:¥users¥user > wmic process list
プロセスの一覧の”name”列の値だけ表示
c:¥users¥user > wmic process get name
指定したプロセス情報のみを表示
c:¥users¥user > wmic process where name='[name列に表示された文字列]'
指定したプロセスを終了させる
c:¥users¥user > wmic process where name='[name列に表示された文字列]' delete
リモートマシンのプロセスを終了させる
c:¥users¥user > wmic /node:"リモートマシン名" /user:"アカウント名" /password:"パスワード"  process where name="name列に表示された文字列" delete
ヘルプ参照(詰まったら/?をつけてみる)
c:¥users¥user > wmic process where name='[name列に表示された文字列]' /? 
c:¥users¥user > wmic process /?

0 件のコメント:

コメントを投稿