Posts

Showing posts from January, 2016

VMwareView.MOF WMI queries

VMwareView.MOF

Purpose:
To create a WMI framework for querying agent variables created on a View Desktop.



Details:

The MOF allows you to query the following:

ViewClient_Broker_DNS_Name
ViewClient_Broker_DomainName
ViewClient_Broker_Remote_IP_Address
ViewClient_Broker_Tunneled
ViewClient_Broker_URL
ViewClient_Broker_UserName
ViewClient_Client_ID
ViewClient_Displays_Number
ViewClient_Displays_Topology
ViewClient_IP_Address
ViewClient_Keyboard_KeyDelayToRepeat
ViewClient_Keyboard_KeyRepeatRate
ViewClient_Keyboard_Language
ViewClient_Keyboard_Layout
ViewClient_Keyboard_NumFuncKeys
ViewClient_Keyboard_NumIndicators
ViewClient_Keyboard_NumKeys
ViewClient_Keyboard_ScanCodeMode
ViewClient_Keyboard_SubType
ViewClient_Keyboard_Type
ViewClient_Language
ViewClient_Launch_ID
ViewClient_Launch_SessionType
ViewClient_LoggedOn_Domainname
ViewClient_LoggedOn_Username
ViewClient_MAC_Address
ViewClient_Machine_Domain
ViewClient_Machine_Name
ViewClient_Mouse_Identifier
ViewClient_Mouse_NumButtons
ViewCli…

VMware View local \ remote user information

Image
In some instances you may want to get some information on the users that are logging in to the VM's.
This is not easily accessible through View its self. So I have come up with a way get the information from the VM's themselves.

First of all your going to need the MOF file i created in an earlier post here for the WMI queries.
Install this into your parent image.
You will also need the logon script , that runs at logon located here.
And lastly a remote SQL database that will hold the data, I have taken the liberty of creating a script to create the database for you here.

After running trough this, you will be able to query for users that logged in to a specific VM and find any additional information provided by the agent.


So lets get started.

Create a database with the script
Open up Microsoft Management studio and connect to your database server, create a new database, and use the script to create a new table.
Paste the contents of the script into a new query window
change the…

WMI Query VMware View Agent Variables

Image
The purpose of this post is to show how you can query the "Volatile Environment" variables from the View agent to get WMI information. I though I would share what I have done to maybe help others in similar situations.

Requirements:
The requirements for this view environment is to allow client drive redirection for internal users and disable it for external users.
The users are always in the same pool, and in this case we only have one connection server and one security server.

Because this is a feature that is either on or off and no built in way to control this, the thought is that we can create a GPO that and run off a WMI query to determine if the users are inside the network or outside of the network and disable client drive redirection based on the IP.

Lets Filter!
So we can create a simple GPO to disable CDR , however we do not want this to happen internally so we need something to query off of. It would seam this would be an easy task however I ran into the first issue…