how to aotomate group policy settings to a specific user

This topic contains 8 replies, has 6 voices, and was last updated by Profile photo of H Man H Man 1 year, 8 months ago.

  • Author
    Posts
  • #22369
    Profile photo of Priya Ranjan
    Priya Ranjan
    Participant

    hi all, i want to apply group policy settings to any user or group which i want to restrict... how to do this.......

  • #22370
    Profile photo of Don Jones
    Don Jones
    Keymaster

    I'm not completely sure I understand. GPOs aren't really designed to be applied on a per-user basis, and GPO processing can become extremely inefficient when you start applying to individual users and groups.

    You're saying you have an existing GPO and you want it to apply to only specified users or user groups?

  • #22396
    Profile photo of Jack Neff
    Jack Neff
    Participant

    Try using "security filtering" in GPMC or in powershell you can use the Set-GPPermissions cmdlet to achieve this.

    • #23176
      Profile photo of Priya Ranjan
      Priya Ranjan
      Participant

      without using gpmc how to do that, i want to write my own code to automate group policy ...

  • #23175
    Profile photo of Priya Ranjan
    Priya Ranjan
    Participant

    @ don jones, yes, i want to restrict a specific user through code..how to do that.. and we can restrict a specific user through microsoft management tool ..

    • #23177
      Profile photo of Priya Ranjan
      Priya Ranjan
      Participant

      @ don jones, yes, i want to restrict a specific user through code..how to do that.. and we can restrict a specific user through microsoft management tool ..

  • #23184
    Profile photo of Don Jones
    Don Jones
    Keymaster

    OK, slow your roll, there. One post is sufficient.

    If you want to use PowerShell to modify a GPO, you can do that. You'll need the RSAT, on Windows 7 or later (preferably Windows 8 or later), and there's a Group Policy module. You can run Update-Help after installing the module to make sure its instructions are installed.

  • #23201
    Profile photo of Corey Thomas
    Corey Thomas
    Participant

    Are you wanting to check the current user and exit?

    If so, use the following line to get the current user:

    [Environment]::UserName

    Then compare it to an array full of people you want to look for an then use "quit" to exit the script.

  • #23252
    Profile photo of H Man
    H Man
    Participant

    you can export local GPO settings with ImportRegPol.exe, and import them to another machine with Apply_LGPO_Delta.exe

    You can easily incorporate these CLI tools into a powershells script

    check this post

You must be logged in to reply to this topic.