mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
bugfix: set bypass policy for admin processes
This commit is contained in:
parent
eed5118341
commit
df70d04ddc
@ -12,5 +12,6 @@ function ChocolateyInstall
|
||||
|
||||
# Start admin process, import this script, run 'InstallPackages' function
|
||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||
-ArgumentList "-C", "'Import-Module ./chocolatey.psm1; InstallPackages'"
|
||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||
"-C", "'Import-Module ./chocolatey.psm1; InstallPackages'"
|
||||
}
|
||||
|
@ -16,7 +16,8 @@ function WingetInstall
|
||||
{
|
||||
# Start admin process, import this script, run 'InstallPackages' function
|
||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||
-ArgumentList "-C", "'Import-Module ./winget.psm1; InstallWinget'"
|
||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||
"-C", "'Import-Module ./winget.psm1; InstallWinget'"
|
||||
}
|
||||
|
||||
winget.exe install -s winget --accept-source-agreements (Get-Content ./util/winget.list)
|
||||
|
@ -22,7 +22,8 @@ function WSLInstall
|
||||
{
|
||||
# Start admin process, import this script, run 'InstallPackages' function
|
||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||
-ArgumentList "-C", "'Import-Module ./wsl.psm1; InstallWSL'"
|
||||
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
||||
"-C", "'Import-Module ./wsl.psm1; InstallWSL'"
|
||||
}
|
||||
wsl.exe --install -d Ubuntu
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user