どうも、ちょげ(@chogetarou)です。
通常のPowerShellから管理者権限を持ったPowerShellを起動する方法を紹介します。
方法

PowerShellから管理者権限のPowerShellを起動するには、「Start-Process」コマンドを使います。
まず、PowerShellを開きます。
そして、「Start-Process PowerShell -verb runas」を入力して、エンターキーを押します。
Start-Process PowerShell -verb runas
上記コマンドは実行後、PowerShellから管理者権限のPowerShellが起動します。
まとめ
「Start-Process PowerShell -verb runas」を実行すれば、PowerShellから管理者権限のPowerShellを起動できます。
コメント