ShutdownWindows
update 2015-07-20

Windowsをシャットダウンする
※Shell オブジェクトの ShutdownWindows メソッドを使用して「Windowsの終了」ダイアログを表示する。

powershellの例
shutdownwindows.ps1 ファイル(またはショートカット)としてデスクトップに置いておく。
(New-Object -ComObject Shell.Application).ShutdownWindows()

vbsの例
shutdownwindows.vbs ファイル(またはショートカット)としてデスクトップに置いておく。
rem ShutdownWindows.vbs
rem shellオブジェクトを使用
rem Windowsのシャットダウン画面が表示され、シャットダウン方法が選択できる。
rem ---
dim objShell
set objShell = CreateObject("shell.application")
objshell.ShutdownWindows
set objShell = nothing

実行結果は下記のようになる。

Windows7
win7.png

Windows8
win8.png

Windows10
win10.png

end of list