{"id":1713,"date":"2012-09-18T19:06:13","date_gmt":"2012-09-18T17:06:13","guid":{"rendered":"http:\/\/www.mariotti.de\/?p=1713"},"modified":"2012-09-18T19:06:13","modified_gmt":"2012-09-18T17:06:13","slug":"remote-applications-per-powershell-unter-windows-server-2012-anlegen","status":"publish","type":"post","link":"https:\/\/dev.mariotti.de\/?p=1713","title":{"rendered":"Remote Applications per Powershell unter Windows Server 2012 anlegen"},"content":{"rendered":"<p>Im Beitrag &#8222;Remote Applications per VBScript und WMI anlegen&#8220; habe ich vor einiger Zeit die automatische Anlage von Remote Applications per Skipt \u00fcber das WMI Interface auf Windows 2008 und Windows 2008 R2 Servern gezeigt. Der damals gezeigt Weg funktioniert nicht mehr ohne weiteres auf dem vor kurzem erschienenen Windows Server 2012, da es von Seiten Microsoft mehrere Design\u00e4nderungen gab.<\/p>\n<p>Die damals verwendet &#8222;Win32_TSPublishedApplication&#8220; Klasse aus dem &#8222;\\root\\cimv2\\TerminalServices&#8220; Namensraum existiert zwar noch unter Windows Server 2012, hat aber keine Funktion mehr. Die Nachfolger Klasse hei\u00dft &#8222;Win32_RDMSPublishedApplication&#8220; und befindet sich unter dem &#8222;\\root\\\\cimv2\\\\rdms&#8220; Namensraum. Auch wurde eine sogenannte &#8222;Collections&#8220; Funktionalit\u00e4t eingef\u00fchrt, die es n\u00f6tig macht jede Remote Applications einer Collection zuzuordnen.<\/p>\n<p>Das damals gezeigt Skript unter Verwendung der WMI Schnittstelle k\u00f6nnte man dahingehend \u00fcberarbeiten, jedoch halte ich dies f\u00fcr \u00fcberfl\u00fcssig, da Microsoft mit Windows Server 2012 auch entsprechende PowerShell Cmdlets f\u00fcr die Erstellung von Verwaltung von Remote Apps eingef\u00fchrt hat, und dies der favorisierte Weg sein sollte.<\/p>\n<p>Das PowerShell Cmdlet in diesem Zusammenhang lauten &#8222;New-RDRemoteApp&#8220;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2013\/09\/RemoteAppsPowerShell.jpg\" alt=\"\" width=\"995\" height=\"222\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2013\/09\/RemoteAppsPowerShell.jpg 995w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2013\/09\/RemoteAppsPowerShell-300x67.jpg 300w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/p>\n<p>Weiterf\u00fchrende Informationen sind z.B. hier zu finden: <a href=\"http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/12837.managing-remote-apps-using-powershell-on-windows-server-2012-en-us.aspx\">http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/12837.managing-remote-apps-using-powershell-on-windows-server-2012-en-us.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft hat in Windows Server 2012 einige \u00c4nderungen an den RDS Diensten vorgenommen, deshalb \u00e4ndert sich auch die WMI Schnittstelle, in diesem Artikel gehe ich auf diese \u00c4nderungen ein.<\/p>\n","protected":false},"author":2,"featured_media":2335,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-1713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/1713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1713"}],"version-history":[{"count":0,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/1713\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/media\/2335"}],"wp:attachment":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}