Announcement

Collapse
No announcement yet.

Only apply a registry setting if the parent key exists.

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

  • Only apply a registry setting if the parent key exists.

    I would like to update an existing registry setting via GPO so if the parent key does not exist at the time, I do not want the key created. If the parent key exists, then either add or modify the current value. Is this possible?
    |
    +-- JDMils
    |
    +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
    |

  • #2
    Not sure if GPO will solely do this.
    You could set up a logon/logoff script applied via GPO. I'd write one in PowerShell but I currently have my son on my knee wanting to watch youtube.

    <edit> check this post out for gist of it. http://blogs.technet.com/b/heyscript...owershell.aspx
    Last edited by grunt; 9th November 2015, 07:58.

    Comment


    • #3
      Check the targeting options in Group Policy Preferences and see if one of them includes checking for a registry key
      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


      • #4
        Originally posted by Ossian View Post
        Check the targeting options in Group Policy Preferences and see if one of them includes checking for a registry key
        I keep forgetting about Targeting.
        Yes: http://i.imgur.com/aewowQv.png

        Comment


        • #5
          Works perfectly, thanks.
          |
          +-- JDMils
          |
          +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
          |

          Comment

          Working...
          X