Posts tagged with PSCredential

PowerShell: Get-Credential from a file

October 4th, 2016 by and tagged , , ,

If you routinely have to log into a separate domain, it can be a nuisance to always have to run Get-Credential. Plus writing scripts with a -Credential parameter is a nuisance because if you call Get-Credential in the script, it will always prompt you.   I run a separate lab network here, with an Active […]

Posted in Annoyances, Network Administration, PowerShell, PSCredential | No Comments »

Active Directory — Unlocking a User Account with PowerShell

September 9th, 2016 by and tagged , , , , , ,

As any SysAdmin knows, users periodically lock themselves out of their accounts, usually because they forgot a password or somehow mistyped it too many times. And after all, if it failed once, why not keep trying it? Unlocking that account is NOT something you do with Set-ADUser, unfortunately, because the PowerShell ActiveDirectory module has a […]

Posted in Active Directory, PowerShell, PSCredential | No Comments »