header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Find out who logged on last to a computer
Last Post 11 Mar 2010 11:55 AM by PoSherLife. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Terry2winUser is Offline
New Member
New Member
Posts:39
Avatar

--
04 Mar 2010 02:15 AM
    Hello everybody. I've also posted the script in the "general powershell" section, but perhaps it belongs here instead?

    I've got a script where I find out who is the logged on user for a specific PC. The script looks like this:

    PS> Gwmi Win32_ComputerSystem -Comp "pcname"

    This "script" works perfectly fine, but what if I want to (if there is no user logged on at the moment) find out which user that logged on last?

    This information is stored in the registry and it's possible to extract it from there using .VBS so it should be possible with PowerShell too.

    Any suggestions?
    PoSherLifeUser is Offline
    Basic Member
    Basic Member
    Posts:364
    Avatar

    --
    11 Mar 2010 11:55 AM
    When at first you don't succeed Step-Into

    http://theposherlife.blogspot.com
    http://www.jandctravels.com

    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer