Adding commands to install Scoop

dova

New Member
after installing windows i always install scoop so i tried to add 1 command at atime it doesn't work

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$env:SCOOP='C:\Applications\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
iwr -useb get.scoop.sh | iex

i added 4 commands like that, but i tried the iso image on vm and it didn't install it
so how to do that ?
 

Attachments

  • NTLite_zQeSGuu4Y3.png
    NTLite_zQeSGuu4Y3.png
    12.6 KB
i added that on a file as you suggested ,
while the files ended up exist on my system it doesn't seem to be configured correctly
like it doesn't add the environment variable
 
To add the same environment variable to everyone's account, create a .reg file and load this into the Registry screen.

Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Environment]
"SCOOP"="C:\Applications\Scoop"
 
Last edited:
Back
Top