Why I'm unable to add Scoop with Post-Setup ?

dova

New Member
I want to install scoop package manager it's required these 2 lines

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

i created a file called scoop.ps1 with those 2 lines and added the file in post setup but it does not install anything
 
scoop does not run with admin rights, normal powershell session is needed
and yes ofc if run them manually it works fine, was wondering if i can integrate scoop directly with the image
 
The answer's been provided. If you're running a command in Post-Setup, it runs with admin rights, so you need the second line as documented by the Scoop team. Even if you run under Post-Setup (User), it still runs with admin rights.
 
Back
Top