Update wingetSetup.ps1
This commit is contained in:
parent
224c65f4b0
commit
032cdc7da2
|
@ -1,4 +1,18 @@
|
||||||
|
#winget install --id Git.Git -e --source winget
|
||||||
|
#Get-ExecutionPolicy
|
||||||
|
#Set-ExecutionPolicy RemoteSigned
|
||||||
|
#cd "$env:USERPROFILE\Downloads" ; git clone https://hmg.studio/HomeHosted/winget.git ; cd winget
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Command 1: Install Git without admin privileges
|
||||||
winget install --id Git.Git -e --source winget
|
winget install --id Git.Git -e --source winget
|
||||||
|
|
||||||
|
# Command 2: Get current execution policy without admin privileges
|
||||||
Get-ExecutionPolicy
|
Get-ExecutionPolicy
|
||||||
Set-ExecutionPolicy RemoteSigned
|
|
||||||
|
# Command 3: Set execution policy to RemoteSigned with admin privileges
|
||||||
|
Start-Process powershell -ArgumentList "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser" -Verb RunAs -Wait
|
||||||
|
|
||||||
|
# Command 4: Change directory, clone repository, and change directory without admin privileges
|
||||||
cd "$env:USERPROFILE\Downloads" ; git clone https://hmg.studio/HomeHosted/winget.git ; cd winget
|
cd "$env:USERPROFILE\Downloads" ; git clone https://hmg.studio/HomeHosted/winget.git ; cd winget
|
Loading…
Reference in New Issue
Block a user