Active Directory: Get Last Logon Time For Users

Ever needed the logon time for users in your Active Directory domain? Use the following command: For /F “Skip=1 Tokens=3” %I in (‘Dsquery * domainroot -filter “(&(objectCategory=Person)(objectClass=User)(samaccountname=))” -attr name lastLogon’) Do @w32tm /ntte %I The above command runs the Dsquery command and pipes the output to the w32tm command to …

Ubuntu Grub Enable Splash Screen

If you installed Ubuntu 12.04 Server and don’t know why the splash screen isn’t showing up, you’ll need to modify the grub configuration file: sudo vi /etc/default/grub Next, replace the following line: GRUB_CMDLINE_LINUX_DEFAULT=”” With: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”