Tuesday, October 2, 2018

show last logon time for a computer account in powershell

 here is how you show the last logon date for a computer account in powershell

Import-Module ActiveDirectory

Get-ADcomputer -Filter * -properties * | sort lastlogondate | FT name, Lastlogondate, Win32_operatingsystem

Source

No comments:

Post a Comment

Re-add existing datastore for PBS

 this is how you re-add an existing datastore for Proxmox backup server (PBS) vim /etc/proxmox-backup/datastore.cfg add the datastore like s...