Link to home
Start Free TrialLog in
Avatar of MGHS
MGHS

asked on

VMware View 4.5 script to logoff users.

I want to query the view composer database to find out the last compose date for view desktops then schedule a reboot of the oldest desktops.  But I  have not been able to find that information in the database.  Anyone know the table that this would be in, and what it would be called?
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MGHS
MGHS

ASKER

Since I don't have these View desktops registering in DNS restarting by name didn't work.  Is there a table that you know of that I could query for Last_Sync_Time and IP address instead of VM_NAME?   The reason for this is that View was so successful that the demand has exceeds the host resources when a large number of users trying getting a session at once.  So while we beg for money to buy 2 new host servers I set the pool to never disconnect the sessions.   But to keep from filling the disk space I want to query for the oldest VM's then pass the IP to powershell to restart computer which triggers view composer to destroy the desktop and create a fresh one.  This way we have control over how many users are forced to log into a new session each morning.

Thank you very much for your help.