powertips

Disabling Network Adapters

If you need to systematically disable network adapters, all you need is the name of the adapter (as stated in your control panel or returned by...

read more

Test Admin Privileges

If you want to systematically test whether you currently have Administrator privileges, you can use this function: function Test-Admin { $identity =...

read more

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