ps1

Get Memory Consumption

To get a rough understanding how much memory a script takes, or how much memory PowerShell puts aside when you store results in a variable, here is...

read more

Aborting the Pipeline

If you know beforehand how many results you expect from a pipeline, you can use Select-Object to stop the upstream cmdlets. This can save a lot of...

read more

Get Current IP Address

Here is a quick way to get all IP addresses assigned to your computer: #requires -Version 1 $ipaddress = [System.Net.DNS]::GetHostByName($null)...

read more

Safely Use UNC Paths

Whenever you use UNC paths in PowerShell, your script may break. Since a UNC path has no drive letter, PowerShell looks at the current directory...

read more

Using Splatting

With splatting, you can call cmdlets and programmatically control the parameters you submit. To do this, add the parameters and values to a hash...

read more

Reading RSS Feeds

RSS feeds can be read by using an XML object, however XML objects do not support proxies. Here is an example that uses Invoke-WebRequest to retrieve...

read more
1 61 62 63 64 65 128