VB get windows2008 R2 Remoteapp published app list

Source: Internet
Author: User

    Dimowmi, WQL, Instances, Instance'Get Base WMI object, "." Means computer name (local)    SetOWMI =GetObject("winmgmts:\\.\root\cimv2\terminalservices")        'Create a WMI query textWQL ="Select * from Win32_tspublishedapplication"        'Get instances of Win32_tspublishedapplication    SetInstances =owmi.execquery (WQL)'Enumerate Instances     for  eachInstanceinchInstances'Do something with the instanceWScript.Echo Instance.alias'or other property nameWScript.Echo Instance.caption WScript.Echo instance.commandlinesetting WScript.Echo Instance.Descripti on'WScript.Echo Instance.iconcontentsWScript.Echo Instance.iconpath WScript.Echo Instance.installdate WScript.Echo Instance.name Wscri Pt. Echo Instance.path WScript.Echo instance.pathexists WScript.Echo instance.rdpfilecontents Wscript.Echo Inst Ance. Requiredcommandline WScript.Echo Instance.securitydescriptor WScript.Echo Instance.showinportal'WScript.Echo Instance.statusWScript.Echo Instance.vpathNext 'Instance

Refer to a few links:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/47439755-8d2d-4fbb-9d13-924f3a0296bc/ How-to-get-remoteapp-program-list-in-win2008-r2?forum=winservergen

Http://wutils.com/wmi/root/cimv2/terminalservices/win32_tspublishedapplication/vbscript-samples.html

http://wutils.com/wmi/root/cimv2/terminalservices/win32_tspublishedapplication/

VB get windows2008 R2 Remoteapp published app list

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.