Powershell

Installing MUI-Packs

The current PowerShell V3 Beta requires an English Windows operating system. That's bad news for anyone running Windows 7 Professional or Home...

read more

Creating New Scripts in ISE

Often, you first play around with PowerShell commands interactively, and then once those commands do what you want, you can copy them to your script...

read more

Jagged Arrays

This may not be for everyone: have a look at how you can create "jagged arrays". Here's a jagged array which really is a nested array:...

read more

Using Advanced Breakpoints

PowerShell supports dynamic breakpoints. They trigger when certain requirements are met. Like regular breakpoints, they all require that your script...

read more

Matching Stars

Asterisk serve as a wildcard, so how would you check for the presence of an asterisk? In a previous tip we used regular expressions for this, but...

read more

Lunch Time Alert

Here's a fun prompt function that turns your input prompt into a short prompt and displays the current path in your PowerShell window title bar....

read more

Am I Privileged?

There are numerous ways to find out if a script runs elevated. Here's a pretty simple approach: PS> (whoami /all | Select-String...

read more

Checking User Privileges

whoami.exe is a useful little tool that ships with Windows 7/Server 2008 R2, and it becomes even more useful when you instruct it to output its...

read more

Resolving Paths

Paths can be relative, such as ". \file.txt". To resolve such a path and display its full path, you could use Resolve-Path: PS>...

read more

Check PowerShell Speed

To find out how much time a particular cmdlet or command takes, here's a handy little stopwatch that you can use: function Test { $codetext =...

read more
1 89 90 91 92 93 130