powershell

December 17, 2019

Windows AD GPP cpassword Exposure

Below I’ll show you how easy it is to get the cpassword.  There are environments where this password could be used for all local admin accounts […]
February 3, 2019

Windows Powershell giving “is not digitally signed” error

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 this script on the current system. […]
June 18, 2018

Powershell – Get Domain Admins

Get-ADGroupMember "Domain ADmins" | Get-AdUser -Property LastLogonDate | select name,distinguishedName,LastLogonDate
June 18, 2018

Powershell – Find Active XP, 2000, 2003 devices in the Domain

These scripts are an easy way to see if there are any older Windows devices in your domain. You can easily change them to look for […]
June 18, 2018

Powershell – Find AD Active Users Password Expirations

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} -Properties "SamAccountName","msDS-UserPasswordExpiryTimeComputed" | Select-Object -Property "SamAccountName", […]
June 10, 2016

Windows Powershell giving "execution of scripts is disabled" error

I was getting an error when I went to run a PowerShell script.  This was the error: PS C:\> .\kerrys-script.ps1 File C:\kerrys-script.ps1 cannot be loaded because […]