Helpful Powershell Commands

These are mostly so I dont have to a) remember them or b) scrounge around google looking for them the next time I need them.

List all users, the last date /time they logged in, and whether the account is Disabled or not.

get-aduser -f * -pr lastlogondate | ft samaccountname,LastLogonDate,Enabled -auto



2 comments:

  1. You had carried your phone on roaming to the several nations you visited when the mobile phone started becoming a necessity. With your mobile device in roaming, you had astronomical outgoing call costs and had to pay for your incoming calls at roaming rates. Multi-IMSI SIM Card

    ReplyDelete