$lastWeek = (Get-Date).AddDays(-7) Get-ADComputer -Filter { whenCreated -ge $lastWeek } ...
I wanted a way to server for servers with specific partial names. For example, let us say I’m searching for...
Get-ADGroupMember "Domain ADmins" | Get-AdUser -Property LastLogonDate | select name,distinguishedName,LastLogonDate...
These scripts are an easy way to see if there are any older Windows devices in your domain. You can...
The commands below are helpful when troubleshooting and could be beneficial when designing for scalability. They can easily be scripted...
Find Active Users with PW Expires Date/Time: Import-Module ActiveDirectory Get-ADUser -SearchBase "DC=cordero,DC=me" -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False}...
# Author: Kerry Cordero # Version: 1.0.0 # Description: This script will check the Enabled SSL-TLS Protocols WinHTTP $Protocols =...
Get-ADUser -Identity "kcordero" -Properties MemberOf | Select-Object -ExpandProperty MemberOf ...