Enumeration
# This will change the policy for our current process using
# the -Scope parameter.
Get-ExecutionPolicy -List
Set-ExecutionPolicy Bypass -Scope Process
# Windows Defender, if RealTimeProtectionEnabled=True means
# defender is active
sc query windefend
Get-MpComputerStatus
# AppLocker
Get-AppLockerPolicy -Effective | select -ExpandProperty RuleCollections
Get-AppLockerPolicy -Local | Test-AppLockerPolicy -path C:\Windows\System32\cmd.exe -User Everyone
# PowerShell Constrained Language Mode, if output is ConstrainedLanguage
$ExecutionContext.SessionState.LanguageMode
# Local Administrator Password Solution (LAPS)
# LAPSToolkit greatly facilitates this with several functions.
Find-LAPSDelegatedGroups
# The Find-AdmPwdExtendedRights checks the rights on each computer
# with LAPS enabled for any groups with read access and users with "All Extended Rights."
Find-AdmPwdExtendedRights
# We can use the Get-LAPSComputers function to search for computers that have LAPS enabled,
# when passwords expire, and even the randomized passwords in cleartext if our user has access.
Get-LAPSComputers
# Check Windows Firewall settings
netsh advfirewall show allprofiles
Checking other logged in Users
Last updated