ホストOS(windows)のシャットダウン

netコマンド(Samba)でリモートシャットダウン - karronoliの日記 のまんまと思いきや動かない。

$ net rpc shutdown  -I 192.168.0.21 -U "user%password"
[2009/08/28 16:52:11,  0] utils/net_rpc.c:run_rpc_command(171)
  Could not initialise pipe \winreg. Error was NT_STATUS_OBJECT_NAME_NOT_FOUND

コメントを適当に何か足さないとこんなエラーが出る。小一時間はまった。

$ net rpc shutdown  -I 192.168.0.21 -U "user%password" -C "Shutdown from debian"