Can't Pull Last Logged in User via WMI

Posted on 2009-02-20
Medium Priority
Last Modified: 2013-11-30
Hey guys -
We recently installed the Bozteck VNC console which is a sweet tool used in conjunction with our RealVNC enterprise software.  The console has a built-in command that uses WMI when scanning for PC's that pulls the last logged in user.  It works perfectly on another network admin's box, but when I try to run it from mine, I can't pull the last logged on user :(  

The other admin and myself both have our internal firewalls turned off and are running the same a/v.  Any ideas?
Question by:caseassoc
  • 3
  • 2

Expert Comment

ID: 23694917
I think the problem is your Domain functional level.
Check your domain functional level in AD by right clicking your domain name and selecting properties.
Notice the domain functional level. It needs to be Windows 2003 functional level because this allows LogonTimeStamp attribute which your RealVNC software is trying to check.

If you have Windows 2000 native or mixed domain level you need to either raise the functional level or use something else to check last logon property.
Warning! Raising domain level to windows 2003 has it's implications so check if it's what you really want before proceeding ( f.e. You can't have Windows NT or 2000 as Domain controllers in such environment)


Author Comment

ID: 23695892
ok, good point on the functional level - I raised that but that doesn't really explain why the other admin can pull that stuff and i cant?

Expert Comment

ID: 23698858
Oh, I thought you are in another domain then those other admins .
Don't know really then ... Some ideas for troubleshooting: Is your accound any different than the other admins ? (membership, delegation in AD, the same OU (group policy)) Can you check if you can use psloggedon.exe (part of sysinternals suite) to check who is logged on to the specific machine on the network?

PSLOGGEDON - http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx

or you can use vbscript or windows powershell if you installed it to query the specific WMI on remote machine .  

Author Comment

ID: 23711510
ok, so the thing started working - i'm not sure if was the raising of the domain that finally replicated, or the installation of psloggedon but it now works :)  I'm thinking it was after installing psloggedon in the c: directory...weird....  anyways, thanks for your help

Accepted Solution

SolarisCitizen earned 1500 total points
ID: 23713227
No problem, ... glad it's working.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question