Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Three PowerShell Account Tweaks

$
0
0

Last month, in “Doubling Up Active Directory PowerShell Cmdlets,” I showed you how to start building useful PowerShell tools, such as the familiar one-liner that lets you find everyone who hasn't logged on in a certain number of days and disable their accounts. As I've said before, such one-liners use the "filter/hammer" approach, whereby you use one command (search-adaccount) to filter out the users you want (people who haven’t logged on in so many days) and then perform some kind of task, which in this case was the disable-adaccount cmdlet. It took a fair amount of time to learn those first few PowerShell cmdlets, but much of that time was taken up by learning PowerShell itself, so we should be able to move along more quickly now.

Read More


Viewing all articles
Browse latest Browse all 8411

Trending Articles