Powershell

Creating "Mini-Modules"

Did you know that every PowerShell function can be turned into a script module with just one line of code? To test drive this, open the ISE editor...

read more

Use -f with N0

Often, it is necessary to output numbers, but you may want to control the number of digits and would like to control the formatting. The -f operator...

read more

Sending Results to Excel

Here's a little function called Out-ExcelReport. Just pipe anything to it, and it will open in Microsoft Excel - provided it is installed on...

read more

Examine Parameter Binding

PowerShell caters all tastes which is why the next two lines do the exact same thing and get all JPG pictures from your Windows folder: PS>...

read more

Kindergarten-Mode

To protect you from damages while playing with PowerShell on a productive system, set the ”WhatIf” mode as default:...

read more

Combining Objects

Sometimes it becomes necessary to consolidate two or more objects into one. So, how would you combine object properties into one object? In a...

read more
1 84 85 86 87 88 130