Automation for GPO Polices - Import settings for other user


Is there any way to export and import GPO polices for other user?

I’m in Administrator account and I need automate process of setting GPO polices for another user (User2).

So, My goal is run script on Administrator account and that script should perform configuration of GPO polices for another user (User2).

I need to configure things like those - some security restriction for specific user:


<p class="p1">Control Panel</p>
<p class="p1">└ Prohibit Access to the Control Panel and PC Settings</p>
<p class="p1">└ Personalization</p>
<p class="p1">└ Prevent changing desktop background</p>
<p class="p1">Desktop</p>
<p class="p1">├ Hide and disable all items on the desktop</p>
<p class="p1">Start Menu and Taskbar</p>
<p class="p1">├ Clear history of recently opened documents on exit</p>
<p class="p1">├ Do not allow pinning items in Jump Lists</p>
<p class="p1">├ Lock all taskbar settings</p>
<p class="p1">├ Lock the Taskbar</p>
<p class="p1">├ Prevent changes to Taskbar and Start Menu Settings</p>
<p class="p1">├ Prevent users from customizing their Start Screen</p>
<p class="p1">├ Prevent users from uninstalling applications from Start</p>
<p class="p1">├ Remove access to the context menus for the taskbar</p>
<p class="p1">├ Remove All Programs list from the Start Menu</p>
<p class="p1">├ Remove and prevent access to the Shut Down…</p>
<p class="p1">├ Remove Clock from the system notification area</p>
<p class="p1">├ Remove common program groups from Start Menu</p>
<p class="p1">├ Remove pinned programs from the Taskbar</p>
<p class="p1">├ Remove pinned programs list from the Start Menu</p>
<p class="p1">└ Notifications</p>

Out of curiosity why not just use Group policy?

Hmm… I was able to solve this by LGPO tool and export and import policies. It works fine.

I don’t think powershell automates group policy well.