In the previous tip we illustrated how Invoke-WebRequest can be used to download JSON or XML data from a web page. This example downloads the...
ps1
Downloading Information from Internet (Part 4)
In the previous tip we explained how you can use Invoke-WebRequest to download data from webpages, and for example retrieve excuses from a webpage...
Downloading Information from Internet (Part 3)
In previous tips, we showed how to use Invoke-WebRequest to download data from webpages, and process data delivered in JSON or XML format. Most...
Downloading Information from Internet (Part 2)
Invoke-WebRequest can download any type of information, and it is up to you to convert it into the format of choice. In the previous tip, we...
Downloading Information from Internet (Part 1)
PowerShell comes with two powerful cmdlets that you can use to retrieve information from the internet. Today, we focus on Invoke-WebRequest. This...
Purging Kerberos Tickets for All Accounts
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...
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...