PowerShell
PowerShell: Display Environment Variables
List environment variables in PowerShell and learn why command output should be sanitized before being shared publicly.
PowerShell
List environment variables in PowerShell and learn why command output should be sanitized before being shared publicly.
PowerShell
PowerShell can prevent accidental or untrusted script execution by checking whether a script has a valid digital signature. Signing a script sounds complicated, but the basic workflow is small: get a code-signing certificate, sign the .ps1 file, then verify the signature. This is useful when you run scripts with
PowerShell
Audit local SMB shares with PowerShell by checking both Share and NTFS permissions against a list of high-risk security principals. The script logs compliance results as structured events in the Windows Event Log, making it easy to integrate with monitoring and SIEM solutions.
PowerShell
Sometimes a server needs to be restarted outside business hours, but you do not want to wait until the planned reboot window. A simple PowerShell script can create or update a one-time Scheduled Task for this.
PowerShell
Many scripts require a simple confirmation before performing an action. Instead of using `Read-Host` and validating user input manually, PowerShell already provides a native solution through `PromptForChoice()`.
PowerShell
Virtualization-Based Security (VBS) is a Microsoft security technology that leverages hardware virtualization to isolate sensitive operating system components from the rest of the system.
PowerShell
Group Managed Service Accounts (gMSAs) simplify service account management in Active Directory by automatically handling password changes and reducing administrative overhead.