PowerShell tabs allow you to simultaneously create and use several execution environments within the same application. Each PowerShell tab corresponds to an execution environment.
Note: | |
Variables, functions, and aliases that you create in one PowerShell tab do not carry over from one PowerShell tab to another. |
Use the following steps to open and close a PowerShell tab. To rename a PowerShell tab, set the DisplayName property on the PowerShell Tab scripting object.
To create and use a new PowerShell tab
- On the File menu, click New PowerShell Tab. The new PowerShell tab always opens as the active window. The PowerShell tabs are incrementally numbered in the order that they are opened. You can open a maximum of eight PowerShell tabs in an instance of ISE. When you have opened eight PowerShell tabs, the New PowerShell Tab button on the File menu appears dimmed and is unavailable until at least one PowerShell tab is closed.
- To make a PowerShell tab active, click the tab. To select from all PowerShell tabs that are open, on the View menu, click the PowerShell tab you want to use.
To create and use a new remote PowerShell tab
- On the File menu, click New Remote PowerShell Tab to establish a session on a remote computer. A dialog box appears and prompts you to enter details required to establish the remote connection. The remote tab functions just like a local PowerShell tab, but the commands and scripts are run on the remote computer.
To close a PowerShell Tab
- Click the PowerShell tab that you want to close.
- On the File menu, click Close PowerShell Tab, or click the Close button in an active Powershell tab to close the tab.
- If you have unsaved files open in the PowerShell tab that you are closing, you will be prompted to save or discard them.
For more information about how to save a script, see How to Save a Script.
See Also