Pstoolsのコマンドが認証エラーになる場合の対処
久しぶりにテストマシンとして、Windows XPをいれた。
PsToolsをリモートから実行するとエラーになってしまった。
なにか設定が必要だったけ?と小一時間悩んだのでそのメモ
現象1
pslistでのエラー
>pslist \\testxp -u 正しいユーザー名 -p 正しいパスワード pslist v1.28 - Sysinternals PsList Copyright c 2000-2004 Mark Russinovich Sysinternals Failed to take process snapshot on . Make sure that the Remote Registry service is running on the remote system, that you havefirewall ports allow RPC access, and your account has read access the following key on the remote system: HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib
現象2
psshutdownでのエラー
>psshutdown -u 正しいユーザ名 -p 正しいパスワード \\TESTXP PsShutdown v2.52 - Shutdown, logoff and power manage local and remote systems Copyright (C) 1999-2006 Mark Russinovich Sysinternals - www.sysinternals.com Couldn't access TESTXP: ログオン失敗: ユーザー名を認識できないか、またはパスワードが間違っています。
確認したこと
- ユーザー、パスワードは正しい
- TESTXPの共有フォルダにはアクセスできる
- \\TESTXP\C$にアクセスしようとすると、ユーザー名がグレーボックスでGUESTになってる
あっ!!