To find the Flexible Single Master Operations (FSMO) roles in an Active Directory (AD) environment using PowerShell, you can use...
Get-ADGroupMember "Domain ADmins" | Get-AdUser -Property LastLogonDate | select name,distinguishedName,LastLogonDate...
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}...
I was getting an error when I went to run a PowerShell script. This was the error: PS C:\> .\kerrys-script.ps1...
What I mean by this, is keep an eye out for emails, alerts within the product, etc… for updates....
import dns.resolver from prettytable import PrettyTable from colorama import Fore, init # Initialize colorama init(autoreset=True) def check_dns_record(fqdn, server): resolver =...
$lastWeek = (Get-Date).AddDays(-7) Get-ADComputer -Filter { whenCreated -ge $lastWeek } ...
import requests api_key = "YOUR_API_KEY" ip_address = input("Enter the IP address: ") url = f"http://api.ipstack.com/{ip_address}?access_key={api_key}" response = requests.get(url) data =...
Get-ADUser -Identity "kcordero" -Properties MemberOf | Select-Object -ExpandProperty MemberOf ...