中国DOS联盟论坛

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-08 17:12
47,811 topics / 349,895 posts / today 0 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » Modify startup scripts in Group Policy via the command line
Printable Version  1,826 / 8
Floor1 qingfushuan Posted 2007-06-10 10:28
高级用户 Posts 327 Credits 502
As the title:

I must use the command line to modify the startup (boot/shutdown) scripts in the group policy,

Only know that the command in secedit.exe is needed

Reference material:

http://blog.sina.com.cn/u/4770b38f010004zv

But how to write the inf template for the shutdown script, please give a detailed example

[ Last edited by qingfushuan on 2007-6-14 at 09:55 AM ]
Floor2 qingfushuan Posted 2007-06-11 09:38
高级用户 Posts 327 Credits 502
Can't be! This is a place with many experts. This problem shouldn't be too difficult. Bump it up by myself
Floor3 qingfushuan Posted 2007-06-12 16:14
高级用户 Posts 327 Credits 502
Bump again, the problem isn't solved. Is it difficult or just disdainful?

Brother storneger, why did you give me extra points?

[ Last edited by qingfushuan on 2007-6-14 at 09:56 AM ]
Floor4 qingfushuan Posted 2007-06-14 09:57
高级用户 Posts 327 Credits 502
Three days above the net,

A thousand years in the world.

I've been waiting for three thousand years, help me out, experts.
Floor5 lxmxn Posted 2007-06-14 13:45
版主 Posts 4,938 Credits 11,386
It's better to rely on oneself.

I went to the Evil Octal Forum yesterday and browsed around. There are several articles about how to write inf scripts in the script section. Take a look, hope it helps you.
Floor6 qingfushuan Posted 2007-06-14 17:59
高级用户 Posts 327 Credits 502
Understood, I'm leaving. I've registered. I'm learning. If there are any good places in the future, please ask the moderator to let me know. Thanks a lot.
Floor7 6622186 Posted 2007-08-09 15:28
高级用户 Posts 411 Credits 894
Is it the script.ini file?
Floor8 qingfushuan Posted 2007-08-09 16:34
高级用户 Posts 327 Credits 502
In a system that has never run the Group Policy shutdown script**

Just echoing all contents and properties of all contents under C:\WINDOWS\system32\GroupPolicy** is not enough. Specifically, I haven't understood the link yet http://blog.sina.com.cn/u/4770b38f010004zv**

Export the registry of the Group Policy shutdown script run in the export window, and it still doesn't work to use a tool to generate inf from reg**
Floor9 nipo Posted 2008-05-18 00:28
中级用户 Posts 106 Credits 228
1. Place the shutdown script file at:
%windir%\SYSTEM32\GROUPPOLICY\MACHINE\SCRIPTS\SHUTDOWN\your_script.bat

2. Registry entries:


"Script"="your_script.bat"
"Parameters"=""
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00


"Script"="your_script.bat"
"Parameters"=""
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[ Last edited by nipo on 2008-5-18 at 12:38 AM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023