Skip to content

Commit b6ebc77

Browse files
authored
Mention scope modifiers (#11762)
1 parent a6f871c commit b6ebc77

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Scopes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
33
Locale: en-US
4-
ms.date: 07/22/2024
4+
ms.date: 02/02/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Scopes
88
---
99
# about_Scopes
1010

1111
## Short description
12+
1213
Explains the concept of scope in PowerShell and shows how to set and change
1314
the scope of elements.
1415

@@ -32,8 +33,8 @@ The following are the basic rules of scope:
3233
scopes are child scopes of that parent.
3334
- An item is visible in the scope that it was created and in any child scopes,
3435
unless you explicitly make it private.
35-
- You can declare variables, aliases, functions, and PowerShell drives for a
36-
scope outside of the current scope.
36+
- Using scope modifiers, you can declare variables, aliases, functions, and
37+
PowerShell drives for a scope outside of the current scope.
3738
- An item that you created within a scope can be changed only in the scope in
3839
which it was created, unless you explicitly specify a different scope.
3940
- When code running in a runspace references an item, PowerShell searches the
@@ -259,8 +260,7 @@ the following contexts:
259260
**ComputerName**, **HostName**, **SSHConnection** or **Session** parameters
260261
(remote session)
261262
- Background jobs, started with `Start-Job` (out-of-process session)
262-
- Thread jobs, started via `Start-ThreadJob` or `ForEach-Object -Parallel`
263-
(separate thread session)
263+
- Thread jobs, started via `Start-ThreadJob` (separate thread session)
264264

265265
Depending on the context, embedded variable values are either independent
266266
copies of the data in the caller's scope or references to it. In remote and

reference/7.4/Microsoft.PowerShell.Core/About/about_Scopes.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
33
Locale: en-US
4-
ms.date: 07/22/2024
4+
ms.date: 02/02/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.4&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Scopes
88
---
99
# about_Scopes
1010

1111
## Short description
12+
1213
Explains the concept of scope in PowerShell and shows how to set and change
1314
the scope of elements.
1415

@@ -32,8 +33,8 @@ The following are the basic rules of scope:
3233
scopes are child scopes of that parent.
3334
- An item is visible in the scope that it was created and in any child scopes,
3435
unless you explicitly make it private.
35-
- You can declare variables, aliases, functions, and PowerShell drives for a
36-
scope outside of the current scope.
36+
- Using scope modifiers, you can declare variables, aliases, functions, and
37+
PowerShell drives for a scope outside of the current scope.
3738
- An item that you created within a scope can be changed only in the scope in
3839
which it was created, unless you explicitly specify a different scope.
3940
- When code running in a runspace references an item, PowerShell searches the

reference/7.5/Microsoft.PowerShell.Core/About/about_Scopes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
33
Locale: en-US
4-
ms.date: 07/22/2024
4+
ms.date: 02/02/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.5&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Scopes
@@ -33,8 +33,8 @@ The following are the basic rules of scope:
3333
scopes are child scopes of that parent.
3434
- An item is visible in the scope that it was created and in any child scopes,
3535
unless you explicitly make it private.
36-
- You can declare variables, aliases, functions, and PowerShell drives for a
37-
scope outside of the current scope.
36+
- Using scope modifiers, you can declare variables, aliases, functions, and
37+
PowerShell drives for a scope outside of the current scope.
3838
- An item that you created within a scope can be changed only in the scope in
3939
which it was created, unless you explicitly specify a different scope.
4040
- When code running in a runspace references an item, PowerShell searches the

reference/7.6/Microsoft.PowerShell.Core/About/about_Scopes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
33
Locale: en-US
4-
ms.date: 07/22/2024
4+
ms.date: 02/02/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.6&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Scopes
@@ -33,8 +33,8 @@ The following are the basic rules of scope:
3333
scopes are child scopes of that parent.
3434
- An item is visible in the scope that it was created and in any child scopes,
3535
unless you explicitly make it private.
36-
- You can declare variables, aliases, functions, and PowerShell drives for a
37-
scope outside of the current scope.
36+
- Using scope modifiers, you can declare variables, aliases, functions, and
37+
PowerShell drives for a scope outside of the current scope.
3838
- An item that you created within a scope can be changed only in the scope in
3939
which it was created, unless you explicitly specify a different scope.
4040
- When code running in a runspace references an item, PowerShell searches the

0 commit comments

Comments
 (0)