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}...
There are several commands and operations that you can use in PowerShell to troubleshoot a Windows file server that is...
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...
Below I’ll show you how easy it is to get the cpassword. There are environments where this password could be...
These scripts are an easy way to see if there are any older Windows devices in your domain. You can...
$lastWeek = (Get-Date).AddDays(-7) Get-ADComputer -Filter { whenCreated -ge $lastWeek } ...
Group = Web Admins Get-ADGroupMember -Identity "Web Admins" | Where-Object {$_.objectClass -eq "user"} | Select-Object Name, SamAccountName...
This will dump all GPO’s into HTML files. Get-GPO -all | % { Get-GPOReport -GUID $_.id -ReportType HTML -Path "C:\MyExports\$($_.displayName).html"...
OPTION 1 To run the `ipconfig /displaydns` command on a remote PC named “pc-kcordero” in a Windows environment, you can...