* 管理者権限でシェルを起動する [#n81a6fc6]

オプション -Verb runasを指定して、Start-Processを実行する。

 Start-Process powershell.exe -Verb runas
 Start-Process cmd.exe -Verb runas

** 参考 [#wc3603c3]
- https://blogs.technet.microsoft.com/heyscriptingguy/2015/07/30/launch-elevated-powershell-shell/
- http://superuser.com/questions/420315/cause-a-uac-popup-from-commandline-without-custom-tools/420317#420317

*** Start-Process [#a5929c0b]
- https://technet.microsoft.com/en-us/library/dd347667.aspx

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS