Advertisement

08.29.2008 at 08:56AM PDT, ID: 23689264 | Points: 500
[x]
Attachment Details

will a scheduled task created with a startupscript show under a regular users account?

Asked by dklahn in Windows Batch Scripting, Microsoft Windows Operating Systems, System Utilities

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
[+][-]08.31.2008 at 05:42PM PDT, ID: 22356923

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628