Powershell for various AD user info

Get-ADUser -Filter * -Properties LastLogonDate | Sort -Property LastLogonDate | FT Name, LastLogonDate
Get-ADUser -Filter * -Properties lastLogontimeStamp | Sort -Property lastLogontimeStamp | FT Name, lastLogontimeStamp
Get-ADUser -Filter * -Properties passwordlastset | Sort -Property passwordlastset | FT Name, passwordlastset
Get-ADDomaincontroller -Filter * | % {$DC = $_.name ; Get-ADuser COMPUTERNAME -properties * -Server $_.name | select @{n="LastLogon";e={[datetime]::FromFileTime($_.lastlogon)}},@{n="DC";e={$DC}} }
$DateCutOff = (Get-Date).AddDays(-30)
Get-ADUser -Filter * -Properties whenCreated | where {$_.whenCreated -gt $DateCufOff} | FT Name, whenCreated

SCL

https://pivkey.zendesk.com/hc/en-us/articles/203128099-Enrolling-a-Smart-Card-certificate-on-behalf-of-another-user

https://pivkey.zendesk.com/hc/en-us/articles/203863255-Self-enrolling-a-Smart-Card-Certificate

To change the User PIN type:

pivkeytool –changepin “111111” –userpin “000000”

pivkeytool –unblockpin “111111” –userpin “000000”

To change the Admin Key type:

pivkeytool –changeadminkey “111111111111111111111111111111111111111111111111” –adminkey “000000000000000000000000000000000000000000000000”

Delete a cert from SC:

certutil -scinfo

certutil -delkey -csp “Microsoft Base Smart Card Crypto Provider” “CertReq-PIVKeyC980-00000000-df58–00000”

HP LJ M404 MFG Mode

With MFG Mode on display, press Power to get to Ready display

Then Cancel-Return-Return-Cancel-Return-Return

Engineering Menu>Undeware Menu>boot_code_menu

Swith to user mode then OK then Power Cycle

Back to Top