$lastWeek = (Get-Date).AddDays(-7) Get-ADComputer -Filter { whenCreated -ge $lastWeek } ...
The commands below are helpful when troubleshooting and could be beneficial when designing for scalability. They can easily be scripted...
I was getting this error: File C:\Scripts\XXXXXX.ps1 cannot be loaded. The file C:\Scripts\XXXXXX.ps1 is not digitally signed. You cannot run...
Get-ADUser -Identity "kcordero" -Properties MemberOf | Select-Object -ExpandProperty MemberOf ...
I wanted a way to server for servers with specific partial names. For example, let us say I’m searching for...
This will dump all GPO’s into HTML files. Get-GPO -all | % { Get-GPOReport -GUID $_.id -ReportType HTML -Path "C:\MyExports\$($_.displayName).html"...
Below I’ll show you how easy it is to get the cpassword. There are environments where this password could be...
Get-ADGroupMember "Domain ADmins" | Get-AdUser -Property LastLogonDate | select name,distinguishedName,LastLogonDate...