how to aotomate group policy settings to a specific user

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

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?

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

@ 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 …

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

@ 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 …

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.

Are you wanting to check the current user and exit?

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

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

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
http://supportishere.com/how-to-apply-local-group-policy-settings-silently-using-the-importregpol-exe-and-apply_lgpo_delta-exe-utilities/