Windows10 Running the installer as administrator is disabled by defaultの対処法

環境
エディション Windows 10 Home
バージョン 22H2
システムの種類 64bit

エラー現象
PS C:\WINDOWS\system32> iex (new-object net.webclient).downloadstring('https://get.scoop.sh’)
Initializing…
Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.
Abort.

対策
PS C:\WINDOWS\system32> iex “& {$(irm get.scoop.sh)} -RunAsAdmin"

実行結果

Initializing...
Downloading ...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.

 

Windows10

Posted by arkgame