China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-08 16:15
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Modify startup scripts in Group Policy via the command line View 1,824 Replies 8
Original Poster Posted 2007-06-10 10:28 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
stornager +1 2007-06-11 15:00
Floor 2 Posted 2007-06-11 09:38 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
Can't be! This is a place with many experts. This problem shouldn't be too difficult. Bump it up by myself
Floor 3 Posted 2007-06-12 16:14 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
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 ]
Floor 4 Posted 2007-06-14 09:57 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
Three days above the net,

A thousand years in the world.

I've been waiting for three thousand years, help me out, experts.
Floor 5 Posted 2007-06-14 13:45 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
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.
Floor 6 Posted 2007-06-14 17:59 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
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.
Floor 7 Posted 2007-08-09 15:28 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
Is it the script.ini file?
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Floor 8 Posted 2007-08-09 16:34 ·  中国 四川 绵阳 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
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**
Floor 9 Posted 2008-05-18 00:28 ·  中国 辽宁 锦州 联通
中级用户
★★
Credits 228
Posts 106
Joined 2008-04-26 12:34
18-year member
UID 117003
Gender Male
Status Offline
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 ]
Forum Jump: