7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PowerShellメモ 別のユーザーとして実行、管理者として実行

Last updated at Posted at 2016-10-22

概要

別のユーザーとして実行する方法と管理者として実行する方法。

書式

# 別のユーザーとして実行
Start-Process 【コマンド】 -Verb RunAsUser

# もっと短く
start 【コマンド】 -verb runasuser
# 管理者として実行
Start-Process 【コマンド】 -Verb RunAs

# もっと短く
start 【コマンド】 -verb runas

実行例

start 'C:\Program Files\Internet Explorer\iexplore.exe' -verb runasuser

動作確認した環境

  • PowerShell V4 (Windows 8.1)
  • PowerShell V5 (Windows 10)
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?