PowerShell_ISE.exe Command-Line Help

Applies To: Windows PowerShell 2.0, Windows PowerShell 3.0

Starts Windows PowerShell Integrated Scripting Environment (ISE). You can use PowerShell_ISE.exe to start Windows PowerShell ISE at the Windows PowerShell command line or the command line of another tool, such as Cmd.exe. Use the parameters to customize the session.

To run the PowerShell_ISE.exe executable file that starts Windows PowerShell ISE, type PowerShell_ISE.exe, PowerShell_ISE or ISE.

Syntax

PowerShell_ISE[.exe]
ISE[.exe]
       [–File]<FilePath[]> [–NoProfile] [–MTA]
       –Help | ? | -? | /? 

Parameters

-File

Opens the specified files in Windows PowerShell ISE. The parameter name ("-File") is optional.

To list more than one file, enter one text string enclosed in quotation marks. Use commas to separate the file names within the string. For example, PowerShell_ISE -File "File1.ps1,File2.ps1,File3.xml". Spaces between the file names are permitted in Windows PowerShell, but might not be interpreted correctly by other programs, such as Cmd.exe.

You can use this parameter to open any text file, including Windows PowerShell script files and XML files.

This parameter is introduced in Windows PowerShell 3.0.. To open a file in ISE in Windows PowerShell 2.0, type the file name without the -File parameter. For example, PowerShell_ISE File1.ps1.

-Mta

Starts Windows PowerShell ISE using a multi-threaded apartment. This parameter is introduced in Windows PowerShell 3.0. Single-threaded apartment (STA) is the default.

This parameter is introduced in Windows PowerShell 3.0.

-NoProfile

Does not load the Windows PowerShell profiles. By default, Windows PowerShell profiles are loaded into the session.

This parameter is recommended when you are writing shared content, such as functions and scripts that will be run on systems with different profiles. For more information, see about_Profiles.

This parameter is introduced in Windows PowerShell 3.0.

-Help, -?, /?

Displays help for PowerShell_ISE.exe.

This parameter is introduced in Windows PowerShell 3.0.

EXAMPLES

These commands start Windows PowerShell ISE. The commands are equivalent and can be used interchangeably.

PS C:\>PowerShell_ISE.exe
PS C:\>PowerShell_ISE
PS C:\>ISE

These commands open the Get-Profile.ps1 script in Windows PowerShell ISE. The commands are equivalent and can be used interchangeably.

PS C:\>PowerShell_ISE.exe -File .\Get-Profile.ps1
PS C:\>ISE -File .\Get-Profile.ps1
PS C:\>ISE .\Get-Profile.ps1

This command opens the Get-Backups.ps1 and Get-BackupInstance.ps1 scripts in Windows PowerShell ISE. To open more than one file, use a comma to separate the file names and enclose the entire file name value in quotation marks.

PS C:\>ISE -File ".\Get-Backups.ps1,Get-BackupInstance.ps1"

This command starts Windows PowerShell ISE with no profiles.

PS C:\>ISE -NoProfile

This command gets help for PowerShell_ISE.exe.

PS C:\>ISE -help

See Also

Concepts

PowerShell_ISE.exe Command-Line Help
about_Windows_PowerShell_ISE

Other Resources

Windows PowerShell 3.0 Integrated Scripting Environment (ISE)