W10 shortcut as admin
This commit is contained in:
parent
7ffe3bc648
commit
367dcb7d5b
1 changed files with 5 additions and 1 deletions
|
@ -123,7 +123,11 @@ PowerShell -Command "$archive = '%TEMP%\W10Privacy.zip';" ^
|
||||||
"Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^
|
"Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^
|
||||||
"Expand-Archive -Path $archive -DestinationPath $env:TEMP;" ^
|
"Expand-Archive -Path $archive -DestinationPath $env:TEMP;" ^
|
||||||
"$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^
|
"$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^
|
||||||
"Start-Process $file /S -NoNewWindow -Wait -PassThru"
|
"Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^
|
||||||
|
"$shortcut = '%ProgramData%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^
|
||||||
|
"$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^
|
||||||
|
"$bytes[0x15] = $bytes[0x15] -bor 0x20;" ^
|
||||||
|
"[System.IO.File]::WriteAllBytes($shortcut, $bytes)"
|
||||||
|
|
||||||
:: === Modules ==
|
:: === Modules ==
|
||||||
PowerShell -Command "Install-PackageProvider -Name NuGet -Force"
|
PowerShell -Command "Install-PackageProvider -Name NuGet -Force"
|
||||||
|
|
Loading…
Reference in a new issue