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.
Linux
The problem with learning Vim is not that it's hard to do—it's that you have to keep doing it. Daniel Miessler
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()`.