Getting Session information using the Python Module for VMware Horizon with filtering
Since Horizon 8 it is possible to retrieve session information using the REST api’s. In the python module for Horizon I have translated that functionality to the get_sessions function. import requests, getpass, urllib, json import vmware_horizon requests.packages.urllib3.disable_warnings() url = input(“URL\n”) username = input(“Username\n”) domain = input(“Domain\n”) pw = getpass.getpass() hvconnectionobj… Continue reading