import-module activedirectory ***See when the domain computers last logged on*** Get-ADComputer -Filter * -Properties * | Sort LastLogon | Select Name, LastLogonDate,@{Name='LastLogon';Expression={[DateTime]::FromFileTime($_.LastLogon)}} ***Get GPO applied status to a workstation*** Get-GPResultantSetOfPolicy -ReportType xml -path "c:\report.xml"