Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Active directory get user time logged on a computer
New Posts  All Forums:Forum Nav:

Active directory get user time logged on a computer

post #1 of 6
Thread Starter 
Hi,

Is there a way to get the time of a user logged on a computer. One of our client asked us to get this information for every computer on his network. The client needs to know the time logged on of a user and the time he logs out. The future goal of the client is to move from physical computers to a VDI environment.

I know it's possible by scripting but is there a program that could do that? Possible with some network discovery functions like Total Network Inventory or OCS inventory.

Thanks,

jp
my rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
e8400 @ 3.0 ghz stock gigabyte ep45-ud3r Gigabyte 660 GTX TI 2Gb OCZ Blade ddr2 memory 4Gb 
Hard DriveOptical DriveOSMonitor
Intel 520 120Gbs & Seagate 320 Gb 3.0Gb/s Pioneer DVD-RW DVR-111D Windows 7 Pro x64 Samsung 2233rz 
KeyboardPowerCaseMouse
Microsoft USB  Corsair TX650w Cooler Master 690 Intellimouse Explorer 3.0 
Mouse PadAudio
QcK+ Creative Xtreme Gamer 
  hide details  
Reply
my rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
e8400 @ 3.0 ghz stock gigabyte ep45-ud3r Gigabyte 660 GTX TI 2Gb OCZ Blade ddr2 memory 4Gb 
Hard DriveOptical DriveOSMonitor
Intel 520 120Gbs & Seagate 320 Gb 3.0Gb/s Pioneer DVD-RW DVR-111D Windows 7 Pro x64 Samsung 2233rz 
KeyboardPowerCaseMouse
Microsoft USB  Corsair TX650w Cooler Master 690 Intellimouse Explorer 3.0 
Mouse PadAudio
QcK+ Creative Xtreme Gamer 
  hide details  
Reply
post #2 of 6
With DameWare Utilities you can see when the current user logged in as well as the Up Time, amongst other things. I would like to think that there is a way with the software to see when the user logged off as well. I only use it for certain things so my knowledge of the software is not to extensive.
Jango (Main Rig)
(23 items)
 
Edward (HTPC)
(16 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-4790 MSI ATX LGA 1150 Z97 PC MATE mobo MSI GeForce GTX 560 Ti 448 Twin Frozr III PE/OC 16GB 
Hard DriveHard DriveHard DriveHard Drive
OCZ Agility 4 (OS) 1TB Hitachi (Data & Apps) 1TB Hitachi (Movies & other Multimedia) 750GB 
Optical DriveCoolingCoolingCooling
DVD±RW / ASUS USB 2.0 8x Slim external DVD Burner Cooler Master Hyper T4 NZXT Sentry Mix COOLER MASTER SickleFlow 120mm x2 
OSMonitorMonitorMonitor
Windows 10 Pro 64bit ASUS VS247H-P 23.6"  ASUS VH236H 23"  HP 27" 2560x1440 
KeyboardPowerCaseMouse
Logitech Illuminated Keyboard Corsair Professional Series HX850W CM Storm Trooper Razer Tron 
Mouse PadOtherOther
XTRAC Pads Ripper XL Rosewill Red USB 2.0 7 Port Hub With Power Adapter Creative HS-1000 Fatal1ty Gaming Headset 
CPUMotherboardGraphicsRAM
AMD Phenom II X4 920 2.8GHz Socket AM2+ 125W Qu... ASRock A780GXE/128M AM2+/AM2 AMD 780G ATX ATI Radeon HD 4670 G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... 
RAMHard DriveHard DriveCooling
G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... Hitachi 1TB 7200 RPM SATAII 3.0Gb/s Samsung 250GB 7200 RPM Enermax ETS T-40 T.B. SILENCE 
OSMonitorPowerCase
Windows 8.1 Pro 64 bit 47" Sony TV RAIDMAX HYBRID 2 530W Custom Wood Table 
  hide details  
Reply
Jango (Main Rig)
(23 items)
 
Edward (HTPC)
(16 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-4790 MSI ATX LGA 1150 Z97 PC MATE mobo MSI GeForce GTX 560 Ti 448 Twin Frozr III PE/OC 16GB 
Hard DriveHard DriveHard DriveHard Drive
OCZ Agility 4 (OS) 1TB Hitachi (Data & Apps) 1TB Hitachi (Movies & other Multimedia) 750GB 
Optical DriveCoolingCoolingCooling
DVD±RW / ASUS USB 2.0 8x Slim external DVD Burner Cooler Master Hyper T4 NZXT Sentry Mix COOLER MASTER SickleFlow 120mm x2 
OSMonitorMonitorMonitor
Windows 10 Pro 64bit ASUS VS247H-P 23.6"  ASUS VH236H 23"  HP 27" 2560x1440 
KeyboardPowerCaseMouse
Logitech Illuminated Keyboard Corsair Professional Series HX850W CM Storm Trooper Razer Tron 
Mouse PadOtherOther
XTRAC Pads Ripper XL Rosewill Red USB 2.0 7 Port Hub With Power Adapter Creative HS-1000 Fatal1ty Gaming Headset 
CPUMotherboardGraphicsRAM
AMD Phenom II X4 920 2.8GHz Socket AM2+ 125W Qu... ASRock A780GXE/128M AM2+/AM2 AMD 780G ATX ATI Radeon HD 4670 G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... 
RAMHard DriveHard DriveCooling
G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... Hitachi 1TB 7200 RPM SATAII 3.0Gb/s Samsung 250GB 7200 RPM Enermax ETS T-40 T.B. SILENCE 
OSMonitorPowerCase
Windows 8.1 Pro 64 bit 47" Sony TV RAIDMAX HYBRID 2 530W Custom Wood Table 
  hide details  
Reply
post #3 of 6
You could just manually get some times by looking at the security logs. But, something that would do this for you automatically, not sure.
post #4 of 6
I could have sworn the "WMIC" command gives you a logged in time.

I can't remember the usage for it, I have it somewhere at work.
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
post #5 of 6
Quote:
Originally Posted by killabytes View Post

I could have sworn the "WMIC" command gives you a logged in time.
I can't remember the usage for it, I have it somewhere at work.

Here is the command list page from Microsoft.
Jango (Main Rig)
(23 items)
 
Edward (HTPC)
(16 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-4790 MSI ATX LGA 1150 Z97 PC MATE mobo MSI GeForce GTX 560 Ti 448 Twin Frozr III PE/OC 16GB 
Hard DriveHard DriveHard DriveHard Drive
OCZ Agility 4 (OS) 1TB Hitachi (Data & Apps) 1TB Hitachi (Movies & other Multimedia) 750GB 
Optical DriveCoolingCoolingCooling
DVD±RW / ASUS USB 2.0 8x Slim external DVD Burner Cooler Master Hyper T4 NZXT Sentry Mix COOLER MASTER SickleFlow 120mm x2 
OSMonitorMonitorMonitor
Windows 10 Pro 64bit ASUS VS247H-P 23.6"  ASUS VH236H 23"  HP 27" 2560x1440 
KeyboardPowerCaseMouse
Logitech Illuminated Keyboard Corsair Professional Series HX850W CM Storm Trooper Razer Tron 
Mouse PadOtherOther
XTRAC Pads Ripper XL Rosewill Red USB 2.0 7 Port Hub With Power Adapter Creative HS-1000 Fatal1ty Gaming Headset 
CPUMotherboardGraphicsRAM
AMD Phenom II X4 920 2.8GHz Socket AM2+ 125W Qu... ASRock A780GXE/128M AM2+/AM2 AMD 780G ATX ATI Radeon HD 4670 G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... 
RAMHard DriveHard DriveCooling
G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... Hitachi 1TB 7200 RPM SATAII 3.0Gb/s Samsung 250GB 7200 RPM Enermax ETS T-40 T.B. SILENCE 
OSMonitorPowerCase
Windows 8.1 Pro 64 bit 47" Sony TV RAIDMAX HYBRID 2 530W Custom Wood Table 
  hide details  
Reply
Jango (Main Rig)
(23 items)
 
Edward (HTPC)
(16 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7-4790 MSI ATX LGA 1150 Z97 PC MATE mobo MSI GeForce GTX 560 Ti 448 Twin Frozr III PE/OC 16GB 
Hard DriveHard DriveHard DriveHard Drive
OCZ Agility 4 (OS) 1TB Hitachi (Data & Apps) 1TB Hitachi (Movies & other Multimedia) 750GB 
Optical DriveCoolingCoolingCooling
DVD±RW / ASUS USB 2.0 8x Slim external DVD Burner Cooler Master Hyper T4 NZXT Sentry Mix COOLER MASTER SickleFlow 120mm x2 
OSMonitorMonitorMonitor
Windows 10 Pro 64bit ASUS VS247H-P 23.6"  ASUS VH236H 23"  HP 27" 2560x1440 
KeyboardPowerCaseMouse
Logitech Illuminated Keyboard Corsair Professional Series HX850W CM Storm Trooper Razer Tron 
Mouse PadOtherOther
XTRAC Pads Ripper XL Rosewill Red USB 2.0 7 Port Hub With Power Adapter Creative HS-1000 Fatal1ty Gaming Headset 
CPUMotherboardGraphicsRAM
AMD Phenom II X4 920 2.8GHz Socket AM2+ 125W Qu... ASRock A780GXE/128M AM2+/AM2 AMD 780G ATX ATI Radeon HD 4670 G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... 
RAMHard DriveHard DriveCooling
G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1... Hitachi 1TB 7200 RPM SATAII 3.0Gb/s Samsung 250GB 7200 RPM Enermax ETS T-40 T.B. SILENCE 
OSMonitorPowerCase
Windows 8.1 Pro 64 bit 47" Sony TV RAIDMAX HYBRID 2 530W Custom Wood Table 
  hide details  
Reply
post #6 of 6
Thread Starter 
thanks guys, i will probably script it.
my rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
e8400 @ 3.0 ghz stock gigabyte ep45-ud3r Gigabyte 660 GTX TI 2Gb OCZ Blade ddr2 memory 4Gb 
Hard DriveOptical DriveOSMonitor
Intel 520 120Gbs & Seagate 320 Gb 3.0Gb/s Pioneer DVD-RW DVR-111D Windows 7 Pro x64 Samsung 2233rz 
KeyboardPowerCaseMouse
Microsoft USB  Corsair TX650w Cooler Master 690 Intellimouse Explorer 3.0 
Mouse PadAudio
QcK+ Creative Xtreme Gamer 
  hide details  
Reply
my rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
e8400 @ 3.0 ghz stock gigabyte ep45-ud3r Gigabyte 660 GTX TI 2Gb OCZ Blade ddr2 memory 4Gb 
Hard DriveOptical DriveOSMonitor
Intel 520 120Gbs & Seagate 320 Gb 3.0Gb/s Pioneer DVD-RW DVR-111D Windows 7 Pro x64 Samsung 2233rz 
KeyboardPowerCaseMouse
Microsoft USB  Corsair TX650w Cooler Master 690 Intellimouse Explorer 3.0 
Mouse PadAudio
QcK+ Creative Xtreme Gamer 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Active directory get user time logged on a computer