PowerShell commands to remember
Active Directory Last time computer connected to domain Get-ADComputer -Filter * -Properties * | Sort LastLogon | Select Name, LastLogonDate,@{Name=’LastLogon’;Expression={[DateTime]::FromFileTime($_.LastLogon)}}...
Active Directory Last time computer connected to domain Get-ADComputer -Filter * -Properties * | Sort LastLogon | Select Name, LastLogonDate,@{Name=’LastLogon’;Expression={[DateTime]::FromFileTime($_.LastLogon)}}...
This website was created as a block/notes location for myself personally. After spending the time to architect a project, I had a series of hard drives fail about 6-8 months later. After replacing them, I had to re-learn everything from that project. Since then, I have been randomly creating posts on this site as quick notes to myself in the event I have to revisit any of these items.