{"id":1676,"date":"2012-01-04T17:43:31","date_gmt":"2012-01-04T16:43:31","guid":{"rendered":"http:\/\/www.mariotti.de\/?p=1676"},"modified":"2012-01-04T17:43:31","modified_gmt":"2012-01-04T16:43:31","slug":"remote-applications-per-vbscript-und-wmi-anlegen","status":"publish","type":"post","link":"https:\/\/dev.mariotti.de\/?p=1676","title":{"rendered":"Remote Applications per VBScript und WMI anlegen"},"content":{"rendered":"<p>Das folgende Beispiel zeigt wie man unter Windows 2008 oder 2008 R2 Remote Applications (aka RemoteApps) automatisch per VBScript und WMI erzeugt.<\/p>\n<p>Weitere Informationen zu den Eigenschaften finden sie unter <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/bb736365(v=vs.85).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/bb736365(v=vs.85).aspx<\/a><\/p>\n<pre class=\"prettyprint lang-batchfile\" data-start-line=\"1\" data-visibility=\"visible\" data-caption=\"\" data-highlight=\"\">Set objWMIService = GetObject(\"winmgmts:\\\\.\\root\\cimv2\\TerminalServices\")\nSet objNewApp = objWMIService.Get(\"Win32_TSPublishedApplication\").SpawnInstance_()\nobjNewApp.Name =\"Notepad\"\nobjNewApp.Alias = \"Notepad\"\nobjNewApp.Path = \"C:\\Windows\\System32\\Notepad.exe\"\nobjNewApp.VPath = \"\"\nobjNewApp.IconPath = \"C:\\Windows\\System32\\Notepad.exe\"\nobjNewApp.IconIndex = 0\nobjNewApp.CommandLineSetting = \"\"\nobjNewApp.RequiredCommandLine = 0\nobjNewApp.ShowInPortal = False\nobjNewApp.Put_\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Der Beitrag zeigt wie man unter Windows 2008 oder 2008 R2 Remote Applications (aka RemoteApps) automatisch per VBScript und WMI erzeugt. <\/p>\n","protected":false},"author":2,"featured_media":2314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-1676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/1676","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=1676"}],"version-history":[{"count":0,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/1676\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/media\/2314"}],"wp:attachment":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}