以下について記載します。 ・PowerShellを監理者権限に昇格して実行したい。 ・ps1スクリプト実行時に監理者権限でない場合、自動的に昇格させて実行したい。 2024/3/30:追記 いつも使ってるbatからps1実行する方法投稿しました。 超簡単に.Ps1を実行する方法 目次 PowerShellを監理者権限に昇格して実行したい ps1実行時に自動的に昇格させたい PowerShellを監理者権限に昇格して実行したい WindowsメニューからPowerShellを右クリックし、管理者として実行する。 もしくは、WindowsメニューからPowerShellを起動し、以下のコマンドを入力