diff --git a/windows11.bat b/windows11.bat index ff3a4f6..81718ad 100644 --- a/windows11.bat +++ b/windows11.bat @@ -124,7 +124,7 @@ PowerShell -Command "$archive = '%TEMP%\W10Privacy.zip';" ^ "Expand-Archive -Path $archive -DestinationPath $env:TEMP;" ^ "$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^ "Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^ - "$shortcut = '%ProgramData%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^ + "$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)"