0

i have installed windows 2012 as a member server in my existing windows 2008 DC. now i want to assign secondary DNS on my windows 7/8 client PCs. I do not have DHCP in my environment. I tried to find but could not locate an option in GPO to assign DNS settings on client PCs. the solution which i able to find on internet is to create a batch file and run the script using GPO.

i have created bactch file which is running perfectly individually on client PC, but the issue with this, it requires elevated cmd.

So may i know how can i run the batch file using elevated mode via GPOs ? or is there any other method to solve this problem? your suggestions are highly appreciated. thanks

shikran
  • 31
  • 1
  • 4

2 Answers2

0

Make it a computer GPO, will run with full local privilege. (computer startup script)

yagmoth555
  • 16,758
  • 4
  • 29
  • 50
  • thanks but will not this run every time when the client PC starts up? and what to change in script to run it with local privilege? – shikran Dec 05 '14 at 11:52
  • @shikran nothing to change ! you just add it in the gpo and the gpo will run it as local system, just make sure to not reference any network ressource. – yagmoth555 Dec 05 '14 at 13:49
0

You are essentially describing a computer startup script which you could apply via GPO, which would be run as local computer (and as such basically local admin) on every machine startup. See here for the relevant documentation.

BE77Y
  • 2,667
  • 3
  • 18
  • 23