Tip: Specify Parameters to Customize how Windows PowerShell Launches

Follow Our Daily Tips

facebook.com/TechNetTips
twitter.com/TechNetTips
blogs.technet.com/tnmag

You can specify parameters (such as –nologo) whether you start Windows PowerShell from a shortcut or from a command prompt. To control how Windows PowerShell launches from the Start menu, you simply edit the menu shortcut you use to start the console or application, specifying the parameters you want to use whenever you work with Windows PowerShell.

To do this, follow these steps:
1. On the menu, right-click the shortcut and then select Properties.
In the Properties dialog box, the Target entry on the Shortcut tab is selected by default.
2. Without pressing any other key, press the Right arrow key. This places the insertion cursor at the end of the full path to Windows PowerShell. Insert a space and then type your parameters and parameter values.
3. Click OK to save the settings.

If you make a mistake or no longer want to use parameters, repeat this procedure and remove any parameters and values you’ve added.

And, of course, you can create different shortcuts with different sets of parameters that are included by default.

From the Microsoft Press book Windows PowerShell 2.0 Administrator’s Pocket Consultant by William R. Stanek.

Looking for More Tips?

For more tips on Microsoft products and technologies, visit the TechNet Tips library.