mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-03 05:37:19 +02:00
change script path to %windir%
This commit is contained in:
parent
90b3422709
commit
e839d1fdcd
@ -34,11 +34,11 @@ echo Set-ItemProperty -Path $profilePath -Name "ProfileName" -Value "Win
|
||||
echo Write-Host "Renamed profile to: WinApps"
|
||||
echo }
|
||||
echo }
|
||||
) > C:\Windows\NetProfileCleanup.ps1
|
||||
) > %windir%\NetProfileCleanup.ps1
|
||||
|
||||
:: Create network profile cleanup scheduled task
|
||||
set "taskname=NetworkProfileCleanup"
|
||||
set "command=powershell.exe -ExecutionPolicy Bypass -File "C:\Windows\NetProfileCleanup.ps1^""
|
||||
set "command=powershell.exe -ExecutionPolicy Bypass -File "%windir%\NetProfileCleanup.ps1^""
|
||||
|
||||
schtasks /query /tn "%taskname%" >nul 2>&1
|
||||
if %ERRORLEVEL% equ 0 (
|
||||
@ -51,4 +51,4 @@ if %ERRORLEVEL% equ 0 (
|
||||
echo Scheduled task "%taskname%" created successfully.
|
||||
) else (
|
||||
echo Failed to create scheduled task.
|
||||
)
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user