Happy holidays everyone, I hope the new year will bring you the
Related Posts
Get a list of Active Directory users who logged in last 30 days
Posted on 29 January 2025Here is a Powershell script that will get you the list on your Domain Controller: Get-ADUser -Filter {Enabled -eq $TRUE} -SearchBase $OU -Properties Name,SamAccountName,LastLogonDate | Where {($_.LastLogonDate -lt (Get-Date).AddDays(-30)) -and ($_.LastLogonDate -ne $NULL)} | Sort | ...
5 lines of code to run Speedtest from Command Line
Posted on 24 October 2023There are instances, where you need to run a Speedtest to check Internet speeds. The speedtest.net website is getting overly crowded with ads and sometimes may not reflect true speeds. I have found an easy way ...
Set passwords to never expire via Command Line on Windows
Posted on 15 May 2023This can be handled in multiple ways. However, I like the one liner using WMI: WMIC USERACCOUNT WHERE Name='username' SET PasswordExpires=FALSE Change username to the account you need to set and you are good to go.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Leave a Reply