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-12 03:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Batch processing group policy import and export View 5,559 Replies 30
Original Poster Posted 2007-09-08 06:52 ·  中国 广东 东莞 电信
中级用户
★★
Credits 326
Posts 152
Joined 2007-05-04 06:16
19-year member
UID 87412
Gender Male
Status Offline
This batch can batch import the loose rules of group policy.
It can also export after making the rules yourself.

Or the following script can also be used to export... I hope the moderator can distinguish right from wrong... If I really want to post a trojan or something, please let the moderator block my IP and my ID...
I am the moderator of bbs.verybat.org
the moderator of the batch processing section of the Shunwang Network Maintenance Master Forum bbs.icafe8.com...
It's not that some people slander me for posting a trojan and I really did post a trojan.. I hope the moderator can clarify.


@echo off
title Group Policy - IP Policy + Software Policy Export Tool ℡ by Bin^|℡ Update Date: 2008/12/16
color 0a
set Policy=Exported Policy
if not exist %Policy% md %Policy%
REG EXPORT HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\IPSec\Policy\Local "%Policy%\ip policy.reg">nul
REG EXPORT HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Hashes "%Policy%\Dorp Hash Rules.reg">nul
REG EXPORT HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Paths "%Policy%\Dorp Path Rules.reg">nul
REG EXPORT HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\262144\Paths "%Policy%\Allowed Path Rules.reg">nul

start mshta vbscript:CreateObject("Wscript.Shell").popup("IP Policy + Software Policy successfully exported to directory",10,"Bin Reminds You:",64)(window.close)
exit


[ Last edited by qq43142691 on 2009-1-21 at 15:16 ]
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
nipo +2 2008-05-18 00:25
yishanju -8 2009-01-21 14:47
Attachments
WinSoft-源码.rar (6.06 KiB, Downloads: 677)
Floor 2 Posted 2007-09-08 09:13 ·  中国 香港 腾讯云
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
Already stuck
Floor 3 Posted 2007-09-10 01:01 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 11
Posts 8
Joined 2007-08-22 06:51
18-year member
UID 95562
Gender Male
Status Offline
Wow. I've been looking for this for a long time. Finally found it, thank you so much. Give it a thumbs up
Floor 4 Posted 2007-09-10 07:17 ·  中国 湖南 常德 电信
新手上路
Credits 11
Posts 8
Joined 2006-10-11 09:55
19-year member
UID 65312
Status Offline
What is this thing used for?
Floor 5 Posted 2007-09-10 09:21 ·  中国 河南 郑州 联通
新手上路
Credits 16
Posts 8
Joined 2007-09-08 18:37
18-year member
UID 96880
Gender Male
Status Offline
Let's study it next.
Floor 6 Posted 2007-09-11 03:11 ·  中国 江苏 南京 中移铁通
初级用户
Credits 41
Posts 24
Joined 2007-09-04 20:16
18-year member
UID 96564
Gender Male
Status Offline
Come and learn.
Floor 7 Posted 2007-09-11 19:21 ·  中国 广东 广州 电信
初级用户
★★
Credits 172
Posts 54
Joined 2007-01-02 10:38
19-year member
UID 75260
Gender Male
Status Offline
TMD, Kaba is such a nuisance, scared me, making a big fuss``
Floor 8 Posted 2007-09-11 19:41 ·  中国 广东 广州 电信
初级用户
★★
Credits 172
Posts 54
Joined 2007-01-02 10:38
19-year member
UID 75260
Gender Male
Status Offline
The code is very good. Among them, the method of using reg query can be used to query the values in the Uninstall item of the registry for WinRAR to obtain the installation path of WinRAR. Decompression can also use the command-line tool built into the WINDOWS system.
Floor 9 Posted 2007-09-15 19:01 ·  中国 北京 石景山区 歌华宽带
初级用户
Credits 26
Posts 13
Joined 2007-09-15 16:35
18-year member
UID 97466
Gender Male
Status Offline
Let me take a look
Floor 10 Posted 2007-09-22 12:18 ·  中国 江苏 常州 电信
初级用户
Credits 21
Posts 11
Joined 2006-10-20 03:54
19-year member
UID 67151
Status Offline
Learning. Now the settings for Heavy Load are done, heh
Floor 11 Posted 2007-09-22 17:09 ·  中国 贵州 贵阳 电信
新手上路
Credits 16
Posts 8
Joined 2007-09-22 15:55
18-year member
UID 98054
Gender Male
Status Offline
Same as above
Floor 12 Posted 2007-09-23 18:42 ·  中国 浙江 宁波 电信
初级用户
Credits 82
Posts 30
Joined 2007-07-03 13:55
19-year member
UID 93029
Gender Male
Status Offline
Very useful stuff ah
Top
Floor 13 Posted 2007-09-25 13:11 ·  中国 安徽 芜湖 电信
新手上路
Credits 14
Posts 9
Joined 2007-09-24 13:35
18-year member
UID 98187
Gender Male
Status Offline
Understand, learn the following
Floor 14 Posted 2007-09-25 17:50 ·  中国 广东 广州 天河区 电信
中级用户
★★
Credits 326
Posts 152
Joined 2007-05-04 06:16
19-year member
UID 87412
Gender Male
Status Offline
Who can tell me how to use the command line to make a zip archive and extract it... Thanks a lot...
Floor 15 Posted 2007-10-01 14:35 ·  中国 山东 青岛 联通
初级用户
★★
Credits 146
Posts 86
Joined 2007-10-01 11:27
18-year member
UID 98691
Gender Male
Status Offline
Kabaka kabaka kabaka kabaka kabaka kabaka
Forum Jump: