OPTION 1 To run the `ipconfig /displaydns` command on a remote PC named “pc-kcordero” in a Windows environment, you can...
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}...
Below I’ll show you how easy it is to get the cpassword. There are environments where this password could be...
# Author: Kerry Cordero # Version: 1.0.0 # Description: This script will check the Enabled SSL-TLS Protocols WinHTTP $Protocols =...
1. Import the Active Directory module: Import-Module ActiveDirectory 2. To get the list of Active Directory sites: Get-ADReplicationSite -Filter...
Get-ADUser -Identity "kcordero" -Properties MemberOf | Select-Object -ExpandProperty MemberOf ...
function Get-EnabledTlsCipherSuites { $enabledCipherSuites = @() $cipherSuites = Get-TlsCipherSuite foreach ($cipherSuite in $cipherSuites) { $cipherSuiteName = $cipherSuite.Name $regPath = "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\$cipherSuiteName"...
There are several commands and operations that you can use in PowerShell to troubleshoot a Windows file server that is...
This will dump all GPO’s into HTML files. Get-GPO -all | % { Get-GPOReport -GUID $_.id -ReportType HTML -Path "C:\MyExports\$($_.displayName).html"...
Get-ADGroupMember "Domain ADmins" | Get-AdUser -Property LastLogonDate | select name,distinguishedName,LastLogonDate...