Powershell

Removing Text from Strings

Occasionally, you might read about Trim(), TrimStart(), and TrimEnd() to remove text from strings. And this seems to really work well: PS C:\>...

read more

Finding File Duplicates

In the previous tip we explained how the Get-FileHash cmdlet (new in PowerShell 5) can generate the unique MD5 hash for script files. Hashes can be...

read more

Creating MD5 File Hashes

MD5 file hashes uniquely identify file content and can be used to check whether file content is identical. In PowerShell 5, there is a new cmdlet...

read more

Creating Leading Zeros

Did you ever need to convert numbers into strings with leading zeros, for example to compose server names? Simply use PowerShell’s...

read more

Pipe Information to Excel

Here is a small yet very useful function that receives data from other cmdlets and sends them to Excel: function Out-Excel { param( $path =...

read more
1 38 39 40 41 42 130