Announcement

Collapse
No announcement yet.

GPO - Beet Me up

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GPO - Beet Me up

    Hello
    Im in Scool now and we all the time make a new domain - active directory ...
    and i make all the time the same GPO i need

    I find a script to Create a new GPO and link it to OU.

    But can any one know how can i Edit the GPO with my Parameters ?

    Tanks

    Itamar tziger

  • #2
    Re: GPO - Beet Me up

    Can you show us the script you are using?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: GPO - Beet Me up

      ' This code creates an empty GPO.
      ' ------ SCRIPT CONFIGURATION ------
      strGPO = "<GPOName>" ' e.g. Sales GPO
      strDomain = "<DomainDNSName>" ' e.g. rallencorp.com
      ' ------ END CONFIGURATION ---------

      set objGPM = CreateObject("GPMgmt.GPM")
      set objGPMConstants = objGPM.GetConstants( )

      ' Initialize the Domain object
      set objGPMDomain = objGPM.GetDomain(strDomain, "", objGPMConstants.UseAnyDC)

      ' Create the GPO and print the results
      set objGPO = objGPMDomain.CreateGPO( )
      WScript.Echo "Successfully created GPO"
      objGPO.DisplayName = strGPO
      WScript.Echo "Set GPO name to " & strGPO

      Comment

      Working...
      X