Who’s logged in?

On May 27, 2008, in news, by

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


Before I reboot the server…. who’s logged on and in a file?


Don’t know the answer to that?  Try PSloggedon from the Sysinternals gang.


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.


C:\Documents and Settings\Administrator.KIKIBITZRTM>cd\


C:\>cd pslogged


C:\pslogged>psloggedon


loggedon v1.33 – See who’s logged on
Copyright ⌐ 2000-2006 Mark Russinovich
Sysinternals – www.sysinternals.com


Users logged on locally:
     Error: could not retrieve logon time
NT AUTHORITY\LOCAL SERVICE
     Error: could not retrieve logon time
NT AUTHORITY\NETWORK SERVICE
     Error: could not retrieve logon time
KIKIBITZRTM\SBS Backup User
     Error: could not retrieve logon time
KIKIBITZRTM\QBDataServiceUser17
     5/23/2008 10:57:28 PM    KIKIBITZRTM\Administrator
     Error: could not retrieve logon time
NT AUTHORITY\SYSTEM


Users logged on via resource shares:
     5/26/2008 11:50:02 PM    BITZIEMEDIA\BITZIE


C:\pslogged>


Now if I can find a script or PowerShell to tell me if that user has a file open before rebooting the server.  I’ll report back if I find it.

 

4 Responses to Who’s logged in?

  1. Scott McKenzie says:

    Isn’t that what “net file” does?
    “NET FILE closes a shared file and removes file locks. When used without options, it lists the open files on a server. The listing includes the identification number assigned to an open file, the pathname of the file, the username, and the number of locks on the file.”

  2. Jim Federico says:

    I always go to a command prompt on server and type net files to see who has files open on server before rebooting. Net sessions will also tell me how long since they have been working. One problem is when they have a screen saver opening pictures from my documents that are redirected. They show they are always working and have files open.

  3. Ian Watkins says:

    I always look in Computer Management and see what’s what under there.

  4. HandyAndy says:

    If you look in the SBS Console under Shares you can see who is connected and what files if any are open.

    SBS is just like all the other MS Apps, most of the things folks request are already there, just no one knows :>)