{"id":606,"date":"2016-06-19T22:30:10","date_gmt":"2016-06-19T20:30:10","guid":{"rendered":"http:\/\/wp.rimfalt.se\/?p=606"},"modified":"2016-06-19T22:30:10","modified_gmt":"2016-06-19T20:30:10","slug":"rdgateway","status":"publish","type":"post","link":"https:\/\/wp.rimfalt.se\/?p=606","title":{"rendered":"RDGateway"},"content":{"rendered":"<p><a href=\"https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2016\/06\/RD-Gateway.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-607\" src=\"https:\/\/wp.rimfalt.se\/wp-content\/uploads\/2016\/06\/RD-Gateway.png\" alt=\"RD-Gateway\" width=\"98\" height=\"83\" \/><\/a><\/p>\n<p>Install RD Gateway with Powershell fast.. (2012R2)<br \/>\nCerts needs to be fixed and firewall ports needs to be opened and Nated &#8230; 443&#8230;<\/p>\n<p><code># Add Windows Role\/Feature<br \/>\nAdd-WindowsFeature -Name RDS-gateway -IncludeAllSubFeature -IncludeManagementTools <\/code><\/p>\n<p>#verifiy that the module is present &#8230; and Load it&#8230;<br \/>\nGet-Module remotedesktopservices<br \/>\nimport-module remotedesktopservices<\/p>\n<p>&nbsp;<\/p>\n<p># Create AD Security Group &#8211; Is created in Defalut &#8221;users&#8221; container.<br \/>\nnew-adgroup -Name &#8221;RD-GW-Users&#8221; -Groupscope Global<br \/>\nAdd-ADGroupMember &#8221;RD-GW-Users&#8221; -member &#8221;Domain Admins&#8221;<br \/>\n# Get Domain we are running in.. (Just to get things dynamic)<br \/>\n$dom=get-addomain | Select Name # $dom.name give us the domain name from now on..<\/p>\n<p>#change dir into rds provider<br \/>\ncd RDS:<br \/>\n# Create new Connection Authorization Policy (CAP)<br \/>\nNew-Item -Path &#8221;RDS:\\GatewayServer\\CAP&#8221; -Name &#8221;Allow RD-GW-Users&#8221; -UserGroups &#8221;RD-GW-Users@$($dom.name)&#8221; -AuthMethod 1<br \/>\n# Create new Resource Authorization Policy<br \/>\nNew-Item -Path &#8221;RDS:\\GatewayServer\\RAP&#8221; -Name &#8221;Allow Connections To Everywhere&#8221; -UserGroups &#8221;RD-GW-Users@$($dom.name)&#8221; -ComputerGroupType 2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install RD Gateway with Powershell fast.. (2012R2) Certs needs to be fixed and firewall ports needs to be opened and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7,9,14],"tags":[75,79],"class_list":["post-606","post","type-post","status-publish","format-standard","hentry","category-powershell","category-rds","category-windows","tag-powershell","tag-rd-gateway"],"_links":{"self":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=606"}],"version-history":[{"count":0,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=\/wp\/v2\/posts\/606\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.rimfalt.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}