posts-powershell

Turn on Streaming for Loops

PowerShell comes with a number of looping constructs. These looping constructs cannot stream, so you cannot pipe the results to other cmdlets and...

Specifying Bit Flags Smart

In the previous tip you have seen how you can enable all SSL security protocols in PowerShell to connect to web services and web sites:...

Using SSL/HTTPS from PowerShell

Depending on your PowerShell and .NET Framework version and update, the default security protocol for secure web connections may still be SSL3. You...

Splitting Texts by Fixed Width

Let’s assume you need to split a text using a fixed width. For example, if you needed the first 5 character of a text, plus the remainder, how...

Get Hashes from Texts

Before the advent of PowerShell 5 (and Get-FileHash), to calculate hashes for strings and files, you’d need to resort to pure .NET methods....

Creating Hashes from Text

A hash is a way to uniquely identify a text without exposing the actual text. Hashes are used to identify texts, find duplicate file content, and...

Pretty Out-GridView Dialog Boxes

When you pipe objects to Out-GridView, the cmdlet shows the default properties, so when you use a grid view window as a selection dialog, you have...

1 22 23 24 25 26 237