Question Locked

modify group policy from the command line

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
is it possible to edit the group policy settings of a computer via the command line?

5 replies

by Former member

Clarifications

by nonapeptide

What are you trying to accomplish?

You can edit another computer's local Group Policy from your machine using the Group Policy Object Editor and then pointing the tool at another machine. Try run >> mmc >> file menu >> add/remove snap-in >> Group Policy Object Editor (I think that's what it's called... maybe it's just "Group Policy) >> select the computer that you wish to edit. I think that should allow you to remotely change local security policy on another computer, provided you have administrative credentials on that remote computer.

Of course, maybe that's not what you're trying to do at all. Which brings us back to my first question: what are you trying to accomplish? If you tell us more, we would be better able to help you.

by Former member

what i would want to do is to be able to make changes to the group policy of a remote computer without having the user log out from it. so while the user is working, i'm able to modify the group policy of the station without bothering the user. this would also prevent the user from seeing the settings being changed

by nonapeptide

I get the feeling that this is a workgroup.

You could use the group policy editor snap-in and then point it to the remote computer rather than the local computer. GPupdate /Target:{computer | User} /force would probably do what you wanted it to do. Take a look at the various switches in GPupdate. I think there are some policies that require the user to log off though, but you'll figure that out when/if you edit one of those.

How's that?

by Former member

thanks for the tip again. :)

This discussion is closed to new replies.