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
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.
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.
Summary: Hi there. I am working on an Oracle migration project, and could use some assistance on a particular piece. I am trying to create a batch file to pull the Oracle home fom the regsitry and craft an XML...