hi, I created a startup script to scheduel a defrag once per week, when I log in as my test user the task doesnt show up under that account in schedueled tasks, if I log in as myself it shows in schedueled tasks, is this normal? amm copying the script at the bottom here for you to see, thanks in advance, Don
@echo off
setlocal
for /F "tokens=1 delims=," %%G in ('schtasks /query /fo CSV') do call :_process %%G
if not defined counter schtasks /create /RU "NT AUTHORITY\SYSTEM" /SC WEEKLY /ST 02:00:00 /TN AutoDefrag /TR "defrag c:"
goto :_end
:_process
if "%~1"=="AutoDefrag" set counter=1
:_end
endlocal
Start Free Trial