「Windows11」Running the installer as administrator is disabled by defaultの解決対策

環境
OS Windows 11 Pro 21H2 64bit
Windows PowerShell 管理者

エラー現象
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.

 

Windows11

Posted by arkgame