Maxi-Pedia Forum

Information Technologies and Systems (IT/IS) => Security => Topic started by: libarme on December 04, 2009, 10:13:39 am



Title: using the DOS command
Post by: libarme on December 04, 2009, 10:13:39 am
 ::)
how to open the group policy settings by using the DOS command?


Title: Re: using the DOS command
Post by: mismas on December 04, 2009, 04:48:00 pm
I do not think you can modify group policies from the command line. But, you can modify registry keys using the reg command. Most group policies have their corresponding value in registry.

Go to Start -> Run -> type cmd

Adds, changes, and displays registry subkey information and values in registry entries.

Code:
reg add KeyName [/v EntryName|/ve] [/t DataType] [/s separator] [/d value] [/f]

Copies a registry entry to a specified location in the local or remote computer.

Code:
reg copy KeyName1 KeyName2 [/s] [/f]

Deletes a subkey or entries from the registry.

Code:
reg delete KeyName [{/v EntryName|/ve|/va}] [/f]

Returns a list of the next tier of subkeys and entries located under a subkey in the registry.

Code:
reg query KeyName [{/v EntryName|/ve}] [/s] 



Title: Re: using the DOS command
Post by: apapunas on December 04, 2009, 04:55:39 pm
I think he meant how to open the editor.

gpedit.msc for group policies
secpol.msc for local policies
(see here How to edit group policy (http://www.maxi-pedia.com/how+to+edit+group+policy))

And, yes, you can edit group policies from a command line too. Gpresult displays Group Policy settings and Resultant Set of Policy (RSoP) for a user or a computer.

Start, Run, cmd
gpresult > gp.txt
notepad gp.txt


Title: Re: using the DOS command
Post by: atari on June 15, 2010, 03:04:50 pm
To be more precise, gpresult displays names of effective policy sets (both computer and user).

rsop.msc is a GUI that displays individual effective policices and their values as they are applied. rsop.msc shows the result of what you set in gpedit.msc.


Title: Re: using the DOS command
Post by: henery on July 30, 2010, 01:21:16 pm
HI, I am new to this forum. How to open the group policy settings by using the DOS command? I want know more about this forum. thank you so much.