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 …

How to Increase Disk Space on a VM When Using VMware, Ubuntu, and LVM

You’ll need the GParted ISO before you start. Delete any snapshots (this allows you to increase the disk size). Edit virtual machine settings, then increase the disk size. Create a snapshot in case anything goes wrong. Boot GParted ISO. Resize the partition related to the LVM volume. Save your changes …