Computing.Net > Forums > Programming > gpedit.msc from batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

gpedit.msc from batch

Reply to Message Icon

Name: reno
Date: January 12, 2009 at 06:39:49 Pacific
OS: XP
CPU/Ram: P4 & 1GB
Product: Asus / -
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: January 13, 2009 at 00:31:23 Pacific
Reply:

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.


0

Response Number 2
Name: Holla
Date: January 13, 2009 at 00:58:34 Pacific
Reply:

using the "net share" command and "reg"
command (if you know the registry entries),
you may be able to achieve this.

--
Holla.


0

Response Number 3
Name: reno
Date: January 13, 2009 at 09:36:11 Pacific
Reply:

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.


0

Response Number 4
Name: Judago
Date: January 13, 2009 at 14:14:43 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: gpedit.msc from batch

batch fike+gpedit.msc www.computing.net/answers/programming/batch-fikegpeditmsc/19809.html

How to return value from batch file www.computing.net/answers/programming/how-to-return-value-from-batch-file/17016.html

Parse regsitry file from batch www.computing.net/answers/programming/parse-regsitry-file-from-batch/11151.html