From 9d58ba3f71c1783ee7d5d28e9f213bb1e6e64850 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Apr 2024 17:56:21 +0200 Subject: [PATCH] disable w10 privacy (#19) --- windows11.bat | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/windows11.bat b/windows11.bat index b9c38e3..f57df5c 100644 --- a/windows11.bat +++ b/windows11.bat @@ -177,21 +177,22 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat :: === W10Privacy == :: TODO: Flagged as a virus by Defender -ECHO W10Privacy... -PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'" -ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads. -PowerShell -Command "" ^ - "$archive = '%TEMP%\W10Privacy.zip';" ^ - "Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^ - "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^ - "$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^ - "Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^ - "$shortcut = '%APPDATA%\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);" ^ - "Remove-Item -Force $archive;" ^ - "Remove-Item -Force $file" +:: ECHO W10Privacy... +:: PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'" +:: ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads. +:: PowerShell -Command "" ^ +:: "$archive = '%TEMP%\W10Privacy.zip';" ^ +:: "Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^ +:: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^ +:: "$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^ +:: "Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^ +:: "$shortcut = '%APPDATA%\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);" ^ +:: "Remove-Item -Force $archive;" ^ +:: "Remove-Item -Force $file" + :: === Geek Uninstaller == ECHO Geek Uninstaller...