1

I have a domain controller running Server 2003 and the goal is to create a GPO for the domain without using a GUI program (no gpedit, gpmsc, etc.). How can I achieve this goal by using cmd only? (powershell doesn't exist on the server either)

  • Hi, why the need? just use admntool on a win7/win10 – yagmoth555 Jun 30 at 3:27
  • Those are the conditions, I can connect to the DC remotely and no GUI. – w0rmh013 Jun 30 at 15:10
4

Yes, it is possible, using New-GPO command on powershell.

On a modern Windows 10 client with rsat tools installed and also adding Module: grouppolicy in powershell. You can execute commands to administer and modify a domain from a client, that's what rsat is for. You don't need to do this tasks from a server. Yet I can't tell if this modern powershell commands can administer a Windows server 2003 domain. If you were on newer version, it surely could be done. You could give it a try.

Have a look at this MS link, there are all the commands to manipulate GPOs from powershell.

commands to manipulate GPOs from powershell

| improve this answer | |
  • Does the windows 10 machine need to be in the domain as well? – w0rmh013 Jun 30 at 9:17
  • 1
    Yes it should. Technically not absolutely necessary, you could start a powershell or cmd with a different user (runas command) than the one logged in, but to make things easier I suggest you to use a domain joined machine. – Krackout Jun 30 at 9:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.