![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 11:47 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » How to make the bat execute in the background of the Windows login screen |
| Printable Version 3,038 / 11 |
| Floor1 xinlingwuyu | Posted 2009-03-19 03:58 |
| 新手上路 Posts 5 Credits 7 | |
|
Hello everyone:
Recently, I encountered such a problem: I wrote a bat file, originally wanting this file to run automatically after the machine restarts without supervision. However, after the Windows Server 2003 system starts, a login box that asks to press Ctrl+Alt+Del to log in always pops up. In this way, if there is no supervision, the Windows system cannot enter, and this bat will definitely not execute automatically. So, I would like to ask everyone, is there a good way to make the program in this bat execute automatically when the login box appears? If there is, please tell me the specific method, okay? Thanks a lot... Thank you. |
|
| Floor2 pooronce | Posted 2009-03-19 05:06 |
| 中级用户 Posts 250 Credits 484 | |
|
Two ideas:
1/ Make the bat a service call 2/ Set 2003 to log in automatically The rest doesn't need to be stated explicitly, just Google it yourself |
|
| Floor3 yishanju | Posted 2009-03-19 05:30 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
It's not that complicated. Set up a scheduled task to get it done.
|
|
| Floor4 csx163 | Posted 2009-04-01 19:18 |
| 初级用户 Posts 45 Credits 97 | |
|
In the XP Group Policy, there is a startup script. It should also be available in Windows Server 2003, right?
|
|
| Floor5 dato | Posted 2009-04-02 01:30 |
| 高级用户 Posts 377 Credits 916 | |
|
In Group Policy, there are scheduled tasks that execute at startup. Additionally, run "control userpasswords2" to perform automatic login to the desktop, then run in the Start menu, and then set screen saver password protection to lock the desktop regularly.
|
|
| Floor6 chenall | Posted 2009-04-02 02:38 |
| 银牌会员 Posts 469 Credits 1,276 From 福建泉州 | |
|
Group policy also has the one that executes on login (executes when the user logs in). Scheduled tasks can also.
|
|
| Floor7 eva | Posted 2009-04-03 05:59 |
| 新手上路 Posts 4 Credits 4 | |
|
Can you lock after automatically logging in and running the batch processing?
|
|
| Floor8 czweb | Posted 2010-09-01 19:31 |
| 初级用户 Posts 75 Credits 75 | |
Originally posted by dato at 2009-4-2 01:30: I just used this method Automatically log in to the desktop, then run in Start, and then set the screen saver password protection to lock the desktop regularly |
|
| Floor9 vte8689 | Posted 2010-12-17 20:14 |
| 新手上路 Posts 11 Credits 13 | |
|
Learning
|
|
| Floor10 zaixinxiangnian | Posted 2010-12-17 23:50 |
| 初级用户 Posts 106 Credits 151 From 河南省 | |
|
How to explain turning a bat into a service call?
|
|
| Floor11 wangyang331407 | Posted 2010-12-23 00:07 |
| 初级用户 Posts 28 Credits 28 | |
|
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("名字.bat",0) Save as .vbs format is okay. |
|
| Floor12 acaigg | Posted 2010-12-25 11:20 |
| 初级用户 Posts 92 Credits 115 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |