{"id":2026,"date":"2017-01-20T22:22:42","date_gmt":"2017-01-20T22:22:42","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2026"},"modified":"2018-09-06T23:18:38","modified_gmt":"2018-09-06T23:18:38","slug":"server-2012-gpo-to-setup-local-admin-and-rdp-access","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2026","title":{"rendered":"Server 2012 : GPO to setup local admin and RDP access."},"content":{"rendered":"<div class=\"post-entry\">\n<p>We are going to give access to a Group of people to <em>RDP<\/em> to Workstations and have <em>local administrators<\/em> rights.<br \/>\nIn order for RDP to work we also need to open firewall.<\/p>\n<p>While reading you might want to consider to split up this (monolithic) GPO and single <em>Security Group\u00a0<\/em>into 2 <em>Security Groups<\/em> and 3 smaller <em>GPOs<\/em> :<br \/>\n<strong>(1)<\/strong> Local Admin Security Group + Give Local Admin rights GPO<br \/>\n<strong>(2)<\/strong> RDP access Security Group + Give RDP rights GPO<br \/>\n<strong>(3)<\/strong> Open RDP firewall ports.<\/p>\n<p>To accomplish this, we will be doing the following:<\/p>\n<ol>\n<li>Create a new <em>Security Group<\/em> containing the people who needs <em>local admin<\/em> and <em>rdp access<\/em><\/li>\n<li>Create Group Policy to grant the RDP and local administrator rights to our group of people.<\/li>\n<li>Enable <em>Allow users to connect remotely by using Remote Desktop Services<\/em> in our GPO<\/li>\n<li>Allow Inbound Remote Desktop exceptions GPO<\/li>\n<li>Testing our new Security Group \/ GPO setup.<\/li>\n<li>Verify Group membership<\/li>\n<li>Verify RDP Settings<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong>Create new <em>Security G<\/em>roup named <em>Local\u00a0Administrators<\/em><\/strong><br \/>\nOn your DC open Active Directory Users and Computers (<code>dsa.msc<\/code>)<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2225 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/01-SecurityGroup.jpg\" alt=\"01-SecurityGroup\" width=\"330\" height=\"255\" \/><\/p>\n<ul>\n<li>Give it a name \u2013 Note the <em>Group Scope<\/em> and <em>Group Type<\/em>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/02-SecurityGroup.jpg\" alt=\"02-SecurityGroup\" width=\"350\" height=\"278\" \/><\/li>\n<li>Right-click the new Group and select properties. Go to the Members tab and click Add\u2026<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/03-SecurityGroup.jpg\" alt=\"03-SecurityGroup\" width=\"192\" height=\"213\" \/><\/li>\n<li>Add the <em>Names<\/em> or <em>Groups<\/em> you wish to add. You can browse using the <em>Advanced\u2026<\/em> button. Click <em>OK and OK<\/em>\u00a0when done.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/04-SecurityGroup.jpg\" alt=\"04-SecurityGroup\" width=\"366\" height=\"177\" \/><\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a new <em>Group Policy<\/em> named <em>Local Administrators<\/em><\/strong>.\n<ul>\n<li>Open the <em>Group Policy Management<\/em> (<code>gpmc.msc<\/code>)<br \/>\nBrowse to the <em>OU<\/em> where you want the GPO to\u00a0be placed, right-click it and choose <em>Create a GPO in this domain, and Link it here\u2026<br \/>\n<\/em><strong>Note<\/strong>: you can\u2019t link it to the default <em>Computers<\/em> container. So either create a new <em>OU<\/em> for your computers, or link the GPO in the root of the domain, just be aware of security risks regarding hitting your servers with these permissions as well.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2229 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/05-GPO.jpg\" alt=\"05-GPO\" width=\"408\" height=\"242\" \/><\/li>\n<li>Name it <em>Local Administrators<\/em> and click<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2230 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/06-GPO.jpg\" alt=\"06-GPO\" width=\"232\" height=\"90\" \/><\/li>\n<li><em>Right-click<\/em> your new <em>GPO<\/em> and select <em>Edit<\/em><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/07-GPO.jpg\" alt=\"07-GPO\" width=\"591\" height=\"183\" \/><\/li>\n<li>Browse through:<br \/>\n<code>Computer Configuration - Policies - Windows Settings - Security Settings - Restricted Groups<\/code><br \/>\nRight-click the <em>Restricted Groups<\/em> folder and click <em>Add Group\u2026<\/em>, click <em>Browse \u2026<\/em> enter the name of the <em>Security Group<\/em> we created in step 1: <em>Local Administrators<\/em>,\u00a0and click <em>Chek Names<\/em>, then <em>OK<\/em> and <em>OK<\/em>.<br \/>\n<strong>Note<\/strong>: We have now added the <em>Group<\/em> from step 1 to the <em>Restricted Groups<\/em>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2232 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/08-GPO.jpg\" alt=\"08-GPO\" width=\"290\" height=\"250\" \/> <img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2233 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/09-GPO.jpg\" alt=\"09-GPO\" width=\"367\" height=\"258\" \/><\/li>\n<li>Right-click the Group and select Properties<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2236 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/09-2-GPO.jpg\" alt=\"09-2-GPO\" width=\"353\" height=\"163\" \/><\/li>\n<li>Next to the <em>This Group is member of<\/em>: click <em>Add\u2026<\/em><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2234 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/10-GPO.jpg\" alt=\"10-GPO\" width=\"288\" height=\"340\" \/><\/li>\n<li>Click <em>Browse<\/em> in the small <em>Group Membership<\/em> window, enter\u00a0<em>Remote Desktop Users<\/em> and <em>Administrators\u00a0<\/em>and <em>Check Names<\/em>, OK and OK.<br \/>\n<strong>Note<\/strong>: <em>Members of this Group<\/em> should be specified directly in the <em>Security Group<\/em> from step 1 and not here.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2235 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/11-GPO.jpg\" alt=\"11-GPO\" width=\"366\" height=\"177\" \/><\/li>\n<li>Review the membership you just configured and click OK.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2237 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/12-GPO.jpg\" alt=\"12-GPO\" width=\"216\" height=\"255\" \/><\/li>\n<\/ul>\n<\/li>\n<li><strong>Enable<\/strong> <em>Allow users to connect remotely by using Remote Desktop Services<\/em> in our GPO\n<ul>\n<li>If not open, open Group Policy Management (gpmc.msc), browse to and right-click your GPO and select Edit<\/li>\n<li>Navigato to: <code>Computer Configuration - Policies - Administrative Templates - Windows Components - Remote Desktop Services - Remote Desktop Session Host - Connections<\/code>. Set: <em>Allow users to connect remotely by using Remote Desktop Services <strong>Enabled<br \/>\n<\/strong><\/em><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/18-rdp.jpg\" alt=\"18-rdp\" width=\"572\" height=\"247\" \/><\/li>\n<li>Select <em>Enabled<\/em> and <em>Apply\/OK<\/em><\/li>\n<li>Prevent <strong>Local Administrators<\/strong> from making changes to our new setting: <code>Computer Configuration - Policies - Administrative Templates - Windows Components - Remote Desktop Services - Remote Desktop Session Host - Security<\/code>. <em>Do not allow local administrators to customize permissions: <strong>Enabled<\/strong> <\/em>Note: this is to prevent local admin turning off our other RDP GPO settings.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/20-rdp.jpg\" alt=\"20-rdp\" width=\"572\" height=\"207\" \/> Set it to <em>Enabled<\/em> and Apply\/OK<\/li>\n<li>Enable Require user authentication for remote connections by using Network Level Authentication <code>Computer Configuration - Policies - Administrative Templates - Windows Components - Remote Desktop Services - Remote Desktop Session Host - Security<\/code>. Set<em> Require user authentication\u00a0for remote connections by usining Network Level Authenticaion\u00a0<strong>Enabled<\/strong><\/em> Be sure your environment meets this requirment.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/22-rdp.jpg\" alt=\"22-rdp\" width=\"572\" height=\"174\" \/><\/li>\n<\/ul>\n<\/li>\n<li><strong>Allow Inbound Remote Desktop exceptions GPO<\/strong><br \/>\n<code>Computer Configuration\\Administrative Templates\\Network\\Network Connections\\Windows Firewall\\Domain Profile<\/code>\\ Edit: <em>Windows Firewall: Allow Inbound Remote Desktop exceptions<\/em>: <strong>Enabled<\/strong> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/25-firewalljpg.jpg\" alt=\"25-firewalljpg\" width=\"715\" height=\"345\" \/><\/li>\n<li><strong>Testing our new Security Group \/ GPO setup.<\/strong><br \/>\nEither restart you PC or type <code>gpupdate \/force<\/code> in <em>cmd<\/em> or similar<\/li>\n<li><strong>Verify Group membership<br \/>\n<\/strong><em>Open Local Users and Groups<\/em> (<code>lusrmgr.msc<\/code>) go to Groups, right-click Administrators and choose Properties<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2242 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/13-local.jpg\" alt=\"13-local\" width=\"387\" height=\"156\" \/><\/li>\n<li>Verify out Local Administrators Group we created in step 1 is listed in\u00a0Members<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/14-local.jpg\" alt=\"14-local\" width=\"320\" height=\"340\" \/><\/li>\n<\/ol>\n<h4>Verify RDP settings:<\/h4>\n<ol>\n<li>Open the Control Panel \u2013 System and Security \u2013 System (SystemPropertiesRemote.exe) and click Remote Settings.<\/li>\n<li>Enter credentials for one of our now-enabled <em>Local Admininistrators<\/em> in the <em>UAC<\/em> popup and click Yes<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2244 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/15local.jpg\" alt=\"15local\" width=\"271\" height=\"217\" \/><\/li>\n<li>Verify the settings and click <em>Select Users\u2026<br \/>\n<\/em><strong>Note<\/strong>: Notice the greyed out settings which is due to our\u00a0GPO<em><br \/>\n<strong><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2253 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/24-rdp.jpg\" alt=\"24-rdp\" width=\"330\" height=\"350\" \/><\/strong><\/em><\/li>\n<li><em>Notice our Local Administrators Group and how it says<\/em> TEST\\morten already has access (via the Group, so no need to add myself Again).<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2246 alignnone\" src=\"http:\/\/www.itnotes.eu\/mdnwp-content\/uploads\/2014\/05\/17-local.jpg\" alt=\"17-local\" width=\"302\" height=\"242\" \/><\/li>\n<\/ol>\n<\/div>\n<div class=\"navigation\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We are going to give access to a Group of people to RDP to Workstations and have local administrators rights. In order for RDP to work we also need to open firewall. While reading you might want to consider to split up this (monolithic) GPO and single Security Group\u00a0into 2 Security Groups and 3 smaller [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,55,48],"tags":[],"class_list":["post-2026","post","type-post","status-publish","format-standard","hentry","category-ad","category-gpo-group-policy","category-microsoft-windows-server-2012"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2026"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2026\/revisions"}],"predecessor-version":[{"id":2027,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2026\/revisions\/2027"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}