Announcement

Collapse
No announcement yet.

WMI - Win32_ComputerSystem - UserName

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WMI - Win32_ComputerSystem - UserName

    I have a WMI Query that on some computers the username returns empty.

    Win32_ComputerSystem/UserName

    This should return the user currently logged on. I know they are logged on, if you go to computer properties/System Tab (for a workstation object) - Users Logged on shows the user.

    Anyone else run into this?

  • #2
    Re: WMI - Win32_ComputerSystem - UserName

    See if the documentation for this WMI class indicates where this setting is coming from. Chances are, that is where the problem is.
    Kevin Stanush
    SystemTools Software Inc.

    Comment


    • #3
      Re: WMI - Win32_ComputerSystem - UserName

      See: http://www.microsoft.com/technet/scr...5/hey0526.mspx

      Excerpt: This works pretty good on Windows XP and Windows Server 2003. On Windows 2000, however, it always returns Null unless an administrator is logged on to the computer. Therefore, this is not the answer to the age-old question, “How can I determine who’s logged on to a particular computer?” (Unless, of course, all your users happen to be local administrators.) Unfortunately, there’s really not a good answer to that question.

      Comment

      Working...
      X