You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/docs-conceptual/windows-powershell/ise/How-to-Create-a-PowerShell-Tab-in-Windows-PowerShell-ISE.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
description: Tabs in the Windows PowerShell Integrated Scripting Environment (ISE) allow you to simultaneously create and use several execution environments within the same application. Each PowerShell tab corresponds to a separate execution environment or session.
3
-
ms.date: 10/07/2021
3
+
ms.date: 03/27/2025
4
4
ms.topic: ui-reference
5
5
title: How to Create a PowerShell Tab in Windows PowerShell ISE
6
6
---
@@ -12,21 +12,20 @@ create and use several execution environments within the same application. Each
12
12
corresponds to a separate execution environment or session.
13
13
14
14
> [!NOTE]
15
-
> Variables, functions, and aliases that you create in one tab do not carry over to another. They
15
+
> Variables, functions, and aliases that you create in one tab don't carry over to another. They
16
16
> are different Windows PowerShell sessions.
17
17
18
18
Use the following steps to open or close a tab in Windows PowerShell. To rename a tab, set the
19
-
[DisplayName](object-model/The-PowerShellTab-Object.md#displayname) property on the Windows
20
-
PowerShell Tab scripting object.
19
+
[DisplayName][04] property on the Windows PowerShell Tab scripting object.
21
20
22
21
## To create and use a new PowerShell Tab
23
22
24
23
On the **File** menu, click **New PowerShell Tab**. The new PowerShell tab always opens as the
25
-
active window. PowerShell tabs are incrementally numbered in the order that they are opened. Each
26
-
tab is associated with its own Windows PowerShell console window. You can have up to 32 PowerShell
27
-
tabs with their own session open at a time (this is limited to 8 on Windows PowerShell ISE 2.0.)
24
+
active window. PowerShell tabs are incrementally numbered in the order that they're opened. Each tab
25
+
is associated with its own Windows PowerShell console window. You can have up to 32 PowerShell tabs
26
+
with their own session open at a time (this is limited to 8 on Windows PowerShell ISE 2.0.)
28
27
29
-
Note that clicking the **New** or **Open** icons on the toolbar does not create a new tab with a
28
+
Note that clicking the **New** or **Open** icons on the toolbar doesn't create a new tab with a
30
29
separate session. Instead, those buttons open a new or existing script file on the currently active
31
30
tab with a session. You can have multiple script files open with each tab and session. The script
32
31
tabs for a session only appear below the session tabs when the associated session is active.
@@ -51,10 +50,15 @@ To close a tab, you can use any of the following techniques:
51
50
active tab to close the tab.
52
51
53
52
If you have unsaved files open in the PowerShell tab that you are closing, you are prompted to save
54
-
or discard them. For more information about how to save a script, see
55
-
[How to Save a Script](How-to-Write-and-Run-Scripts-in-the-Windows-PowerShell-ISE.md#how-to-save-a-script).
53
+
or discard them. For more information about how to save a script, see [How to Save a Script][02].
56
54
57
55
## See Also
58
56
59
-
-[Introducing the Windows PowerShell ISE](Introducing-the-Windows-PowerShell-ISE.md)
60
-
-[How to Use the Console Pane in the Windows PowerShell ISE](How-to-Use-the-Console-Pane-in-the-Windows-PowerShell-ISE.md)
57
+
-[Introducing the Windows PowerShell ISE][03]
58
+
-[How to Use the Console Pane in the Windows PowerShell ISE][01]
0 commit comments