In the previous tip we covered klist.exe and how it can be used to purge all Kerberos tickets for the current user so that new permissions will take...
powertips
Purging Kerberos Tickets for the Current User
No need to reboot a system just to apply new permission settings. Instead, purge your Kerberos tickets so that you will get a new ticket based on...
Creating Hexadecimal Values
Here are a couple of ways to convert decimal to hexadecimal notation: $value = 255 [Convert]::ToString($value, 16) '{0:x}' -f $value...
Installing PowerShell 6 with Chocolatey
In the previous tips, we explained how you can download and install Chocolatey, a free Windows package manager that can install software for you....
Using Chocolatey with PowerShell
Chocolatey is a free package manager for Windows that can be used to download and install software. Before you can use Chocolatey from PowerShell,...
Examining Digital Signature Signers
When you download a script from the internet, it may contain a digital signature that can help you find out where the script comes from. We looked...
Trusting Downloaded Scripts
Scripts downloaded via Internet have a great potential of being infected with malware, or originate from illegitimate sources. Digital signatures...
Execution Policy and Downloaded Script Files
When you download a file from the internet, it may be tagged by Windows (via NTFS stream), and PowerShell may refuse to execute it: PS> &...
The Best Ways to Download Script Files
Occasionally, PowerShell scripts are made available via direct download. Let’s find the most efficient way to download text-based files via...
Colorizing Cmdlet Output
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Using Colors in PowerShell Console
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Positioning the PowerShell Console Cursor
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Output Log Messages in the Same Line
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Using Underlined Console Output
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Safely Embedding Variables
When you use double quotes in PowerShell, you can add variables to a string, and PowerShell automatically replaces these with their content –...
Synthesizing Speech – Using Different Voices (Part 4)
Windows 10 comes with excellent text-to-speech support and different high-quality voices. To find out which voices are available, try this: Add-Type...
Synthesizing Speech – Using Speech Synthesis Markup Language SSML (Part 3)
Windows built-in text-to-speech engine accepts plain text and turns it into a voice, but it can also be controlled using “Speech Synthesis Markup...
Synthesizing Speech – Recording to File (Part 2)
In the previous tip we introduced the text-to-speech engine. This engine can save your text to a WAV sound file so you can use it to generate spoken...
Synthesizing Speech (Part 1)
In the previous tips, we explained how PowerShell can generate acoustic signals by playing system sounds or WAV sound files. PowerShell can also use...
Playing Sound Files
In the previous tip we explained how PowerShell can play system sounds. For a bit more flexibility, PowerShell can also play arbitrary *.wav sound...
Playing Sounds
If all you need is a beep, then PowerShell can help you easily: $frequency = 800 $durationMS = 2000 [console]::Beep($frequency, $durationMS) If...
Sort IPv4 and IPv6 Addresses Correctly
When you try and sort IPv4 addresses via Sort-Object, this fails: PS> '10.1.2.3', '2.3.4.5', '1.2.3.4' | Sort-Object 1.2.3.4 10.1.2.3 2.3.4.5...
Sort IPv4 Addresses Correctly
In the previous tip we published a super-fast function called Test-OnlineFast, and this function was able to ping an entire IP segment in record...
Final Super-Fast Ping Command
In the previous tip series, we developed a new function called Test-OnlineFast that can ping multiple computers in record time. For some reason, the...