Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions reference/7.4/Microsoft.PowerShell.Management/Start-Process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 03/11/2026
ms.date: 07/06/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-process?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -407,12 +407,10 @@ Accept wildcard characters: False

### -UseNewEnvironment

Indicates that this cmdlet uses new environment variables specified for the process. By default, the
started process runs with the environment variables inherited from the parent process.

On Windows, when you use **UseNewEnvironment**, the new process starts only containing the default
environment variables defined for the **Machine** scope. This has the side effect that the
`$Env:USERNAME` is set to **SYSTEM**. None of the variables from the **User** scope are included.
By default, the started process runs with the environment variables inherited from the parent
process. With this parameter, the cmdlet uses the default environment variables for the new process.
On Windows, the default environment variables are the predefined variables from the **Machine** and
**User** scopes.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
12 changes: 5 additions & 7 deletions reference/7.5/Microsoft.PowerShell.Management/Start-Process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 03/11/2026
ms.date: 07/06/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-process?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -407,12 +407,10 @@ Accept wildcard characters: False

### -UseNewEnvironment

Indicates that this cmdlet uses new environment variables specified for the process. By default, the
started process runs with the environment variables inherited from the parent process.

On Windows, when you use **UseNewEnvironment**, the new process starts only containing the default
environment variables defined for the **Machine** scope. This has the side effect that the
`$Env:USERNAME` is set to **SYSTEM**. None of the variables from the **User** scope are included.
By default, the started process runs with the environment variables inherited from the parent
process. With this parameter, the cmdlet uses the default environment variables for the new process.
On Windows, the default environment variables are the predefined variables from the **Machine** and
**User** scopes.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
12 changes: 5 additions & 7 deletions reference/7.6/Microsoft.PowerShell.Management/Start-Process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 05/05/2026
ms.date: 07/06/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-process?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -407,12 +407,10 @@ Accept wildcard characters: False

### -UseNewEnvironment

Indicates that this cmdlet uses new environment variables specified for the process. By default, the
started process runs with the environment variables inherited from the parent process.

On Windows, when you use **UseNewEnvironment**, the new process starts only containing the default
environment variables defined for the **Machine** scope. This has the side effect that the
`$Env:USERNAME` is set to **SYSTEM**. None of the variables from the **User** scope are included.
By default, the started process runs with the environment variables inherited from the parent
process. With this parameter, the cmdlet uses the default environment variables for the new process.
On Windows, the default environment variables are the predefined variables from the **Machine** and
**User** scopes.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
12 changes: 5 additions & 7 deletions reference/7.7/Microsoft.PowerShell.Management/Start-Process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 03/11/2026
ms.date: 07/06/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-process?view=powershell-7.7&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -407,12 +407,10 @@ Accept wildcard characters: False

### -UseNewEnvironment

Indicates that this cmdlet uses new environment variables specified for the process. By default, the
started process runs with the environment variables inherited from the parent process.

On Windows, when you use **UseNewEnvironment**, the new process starts only containing the default
environment variables defined for the **Machine** scope. This has the side effect that the
`$Env:USERNAME` is set to **SYSTEM**. None of the variables from the **User** scope are included.
By default, the started process runs with the environment variables inherited from the parent
process. With this parameter, the cmdlet uses the default environment variables for the new process.
On Windows, the default environment variables are the predefined variables from the **Machine** and
**User** scopes.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down