Home All Groups Group Topic Archive Search About


Author
11 May 2005 3:14 PM
Ofer B.
Hello
How can I assign startup script not with the GPO editor, but with command
line?
I need to assign startup script as part of my program installation.


Thanks

Author
11 May 2005 2:26 PM
Yimin Wei
Ofer B. wrote:
> Hello
> How can I assign startup script not with the GPO editor, but with command
> line?
> I need to assign startup script as part of my program installation.
>
>
> Thanks
>
>

For Windows XP or 2003, you can use the schtasks.exe to schedule the task.


schtasks /create /sc onstart /tn my_program_name /tr c:\my_program.exe

On Windows 2000, there is only at command which cannot schedule a task
to run on startup. You need other utility to schedule startup script.
Visit this link for more info.

http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/38669/38669.html


Yimin Wei

AddThis Social Bookmark Button