Skip to content

Commit

Permalink
Run with PowerShell is intended for non-interactive scripts (#10933)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored Mar 6, 2024
1 parent ed46279 commit b76bf93
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains how to use the Run with PowerShell feature to run a script from a file system drive.
Locale: en-US
ms.date: 10/23/2023
ms.date: 03/06/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_run_with_powershell?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Run With PowerShell
Expand All @@ -18,11 +18,10 @@ file system drive.

Beginning in Windows PowerShell 3.0, you can use the **Run with PowerShell**
feature to run scripts from File Explorer. The **Run with PowerShell** feature
is designed to run scripts that don't have required parameters and don't return
output to the command prompt.

When you use the **Run with PowerShell** feature, the Windows PowerShell
console window appears only briefly, if at all. You can't interact with it.
is intended to run scripts that don't have required parameters, don't return
output to console, and don't prompt for user input. When you use the **Run with
PowerShell** feature, the PowerShell console window appears only briefly, if at
all.

To use the **Run with PowerShell** feature:

Expand All @@ -35,7 +34,7 @@ an execution policy of Bypass, runs the script, and closes the session.
It runs a command that has the following format:

```
PowerShell.exe -File <FileName> -ExecutionPolicy Bypass
powershell.exe -File <FileName> -ExecutionPolicy Bypass
```

**Run with PowerShell** sets the Bypass execution policy only for the session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains how to use the Run with PowerShell feature to run a script from a file system drive.
Locale: en-US
ms.date: 10/23/2023
ms.date: 03/06/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_run_with_powershell?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Run With PowerShell
Expand All @@ -18,11 +18,10 @@ file system drive.

Beginning in Windows PowerShell 3.0, you can use the **Run with PowerShell**
feature to run scripts from File Explorer. The **Run with PowerShell** feature
is designed to run scripts that don't have required parameters and don't return
output to the command prompt.

When you use the **Run with PowerShell** feature, the Windows PowerShell
console window appears only briefly, if at all. You can't interact with it.
is intended to run scripts that don't have required parameters, don't return
output to console, and don't prompt for user input. When you use the **Run with
PowerShell** feature, the PowerShell console window appears only briefly, if at
all.

To use the **Run with PowerShell** feature:

Expand All @@ -35,7 +34,7 @@ an execution policy of Bypass, runs the script, and closes the session.
It runs a command that has the following format:

```
PowerShell.exe -File <FileName> -ExecutionPolicy Bypass
pwsh.exe -File <FileName> -ExecutionPolicy Bypass
```

**Run with PowerShell** sets the Bypass execution policy only for the session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains how to use the Run with PowerShell feature to run a script from a file system drive.
Locale: en-US
ms.date: 10/23/2023
ms.date: 03/06/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_run_with_powershell?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Run With PowerShell
Expand All @@ -18,11 +18,10 @@ file system drive.

Beginning in Windows PowerShell 3.0, you can use the **Run with PowerShell**
feature to run scripts from File Explorer. The **Run with PowerShell** feature
is designed to run scripts that don't have required parameters and don't return
output to the command prompt.

When you use the **Run with PowerShell** feature, the Windows PowerShell
console window appears only briefly, if at all. You can't interact with it.
is intended to run scripts that don't have required parameters, don't return
output to console, and don't prompt for user input. When you use the **Run with
PowerShell** feature, the PowerShell console window appears only briefly, if at
all.

To use the **Run with PowerShell** feature:

Expand All @@ -35,7 +34,7 @@ an execution policy of Bypass, runs the script, and closes the session.
It runs a command that has the following format:

```
PowerShell.exe -File <FileName> -ExecutionPolicy Bypass
pwsh.exe -File <FileName> -ExecutionPolicy Bypass
```

**Run with PowerShell** sets the Bypass execution policy only for the session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains how to use the Run with PowerShell feature to run a script from a file system drive.
Locale: en-US
ms.date: 10/23/2023
ms.date: 03/06/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_run_with_powershell?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Run With PowerShell
Expand All @@ -18,11 +18,10 @@ file system drive.

Beginning in Windows PowerShell 3.0, you can use the **Run with PowerShell**
feature to run scripts from File Explorer. The **Run with PowerShell** feature
is designed to run scripts that don't have required parameters and don't return
output to the command prompt.

When you use the **Run with PowerShell** feature, the Windows PowerShell
console window appears only briefly, if at all. You can't interact with it.
is intended to run scripts that don't have required parameters, don't return
output to console, and don't prompt for user input. When you use the **Run with
PowerShell** feature, the PowerShell console window appears only briefly, if at
all.

To use the **Run with PowerShell** feature:

Expand All @@ -35,7 +34,7 @@ an execution policy of Bypass, runs the script, and closes the session.
It runs a command that has the following format:

```
PowerShell.exe -File <FileName> -ExecutionPolicy Bypass
pwsh.exe -File <FileName> -ExecutionPolicy Bypass
```

**Run with PowerShell** sets the Bypass execution policy only for the session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains how to use the Run with PowerShell feature to run a script from a file system drive.
Locale: en-US
ms.date: 10/23/2023
ms.date: 03/06/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_run_with_powershell?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Run With PowerShell
Expand All @@ -18,11 +18,10 @@ file system drive.

Beginning in Windows PowerShell 3.0, you can use the **Run with PowerShell**
feature to run scripts from File Explorer. The **Run with PowerShell** feature
is designed to run scripts that don't have required parameters and don't return
output to the command prompt.

When you use the **Run with PowerShell** feature, the Windows PowerShell
console window appears only briefly, if at all. You can't interact with it.
is intended to run scripts that don't have required parameters, don't return
output to console, and don't prompt for user input. When you use the **Run with
PowerShell** feature, the PowerShell console window appears only briefly, if at
all.

To use the **Run with PowerShell** feature:

Expand All @@ -35,7 +34,7 @@ an execution policy of Bypass, runs the script, and closes the session.
It runs a command that has the following format:

```
PowerShell.exe -File <FileName> -ExecutionPolicy Bypass
pwsh.exe -File <FileName> -ExecutionPolicy Bypass
```

**Run with PowerShell** sets the Bypass execution policy only for the session
Expand Down

0 comments on commit b76bf93

Please sign in to comment.