gpedit.msc from batch

Asus / -
January 12, 2009 at 06:39:49
Specs: XP, P4 & 1GB
how to interact with gpedit.msc from batch file. i wish to write an interface to change setting that i mostly use from batch file, such as prevent access to specific drive,remove recycle bin icon, etc etc.

if not possible from .cmd/.bat file, can it be done in other language, such as vbs.

See More: gpedit.msc from batch

Report •

January 13, 2009 at 00:31:23
I'm pretty sure this is possible with the wsh, but I'm not sure on how to do it.

I believe most group policies are actually reg edits so you may get away with using batch and reg.exe. Search up *.adm on your system and open them in a text editor and most of the info will be laid out for you.

If you don't have any .adm files Microsoft has a package floating around somewhere on their site.

Report •

January 13, 2009 at 00:58:34
using the "net share" command and "reg"
command (if you know the registry entries),
you may be able to achieve this.


Report •

January 13, 2009 at 09:36:11
wsh=window shell??? is it the same as cscript??

yes, i found the .adm file inside c:\windows\system32\grouppolicy\adm\
after i open one of the file, it looks like thick encyclopedia.

Report •

Related Solutions

January 13, 2009 at 14:14:43
wsh = Windows scripting host.

Sorry I can't be of more help, maybe someone that has got these snapins to play nice will pipe up.

I think that a proportion of the edits will also be found on a great deal of web pages due to xp home not including gpedit.

Report •

Ask Question