Powershell

Re-Running Your Profile

If you made changes to your profile script and want to see the changes that are in effect without having to close and restart PowerShell, you can...

read more

Strongly Typed Arrays

When you assign strongly typed values to an array, the type declaration will remain intact only as long as you do not add new array content: $array...

read more

Escaping Spaces

You should remember that spaces are special characters in PowerShell, too. They are token delimiters, and once you feed arguments to a native...

read more

Run Programs Elevated

If you have User Account Control (UAC) enabled, you may want to run a program elevated. That's easy using Start-Process and the -verb parameter....

read more

Clearing Console Content

When you want to clear the console content, you probably use "cls" or Clear-Host. For some strange reason, the Clear-Host cmdlet really is...

read more

Resetting Console Colors

While there are two paths for changing the console color, will you be able to revert back to the original settings once you set colors via...

read more

Changing Console Colors

Like any other console window, PowerShell has 16 pre-defined colors that you can choose from to set background and foreground color. You can use two...

read more

Creating "Static" Variables

Static variables are accessible everywhere. They can be used to collect data from various scopes in one place. You can use a prefix for a variable...

read more