Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docs for -CustomPipeName #4032

Merged
Merged
Show file tree
Hide file tree
Changes from 3 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
21 changes: 19 additions & 2 deletions reference/6/Microsoft.PowerShell.Core/About/about_pwsh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
ms.date: 06/09/2017
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update ms.date to the current date.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
title: about_PowerShell_exe
---
Expand All @@ -21,6 +20,7 @@ pwsh starts a PowerShell session.
pwsh[.exe]
[-Version]
[-ConfigurationName]
[-CustomPipeName <string>]
[-EncodedCommand <Base64EncodedCommand>]
[-ExecutionPolicy <ExecutionPolicy>]
[-InputFormat {Text | XML}]
Expand Down Expand Up @@ -50,6 +50,17 @@ Specifies a configuration endpoint in which PowerShell is run.
This can be any endpoint registered on the local machine including the default PowerShell
remoting endpoints or a custom endpoint having specific user role capabilities.

#### -CustomPipeName <PipeName>

Specifies the name to use for an additional IPC server
(named pipe)
used for debugging and other cross-process communication.
This offers a predictable mechanism for connecting to other PowerShell instances.
Typically used with the
`CustomPipeName`
parameter on
`Enter-PSHostProcess`.

#### -EncodedCommand <Base64EncodedCommand>

Accepts a base-64-encoded string version of a command. Use this parameter to
Expand Down Expand Up @@ -184,4 +195,10 @@ pwsh -SettingsFile ~/powershell.config.json

# Example of specifying a configuration name
pwsh -ConfigurationName AdminRoles
```

# Example of specifying a custom pipe name
# PowerShell instance 1
pwsh -CustomPipeName mycustompipe
# PowerShell instance 2
Enter-PSHostProcess -CustomPipeName mycustompipe
```
29 changes: 27 additions & 2 deletions reference/6/Microsoft.PowerShell.Core/Enter-PSHostProcess.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ title: Enter-PSHostProcess
# Enter-PSHostProcess

## SYNOPSIS

TylerLeonhardt marked this conversation as resolved.
Show resolved Hide resolved
Connects to and enters into an interactive session with a local process.

## SYNTAX
Expand Down Expand Up @@ -39,6 +40,12 @@ Enter-PSHostProcess [-Name] <String> [[-AppDomainName] <String>] [<CommonParamet
Enter-PSHostProcess [-HostProcessInfo] <PSHostProcessInfo> [[-AppDomainName] <String>] [<CommonParameters>]
```

### PipeNameParameterSet

```
Enter-PSHostProcess -CustomPipeName <String> [<CommonParameters>]
```

## DESCRIPTION

The **Enter-PSHostProcess** cmdlet connects to and enters into an interactive session with a local process.
Expand Down Expand Up @@ -112,7 +119,7 @@ PS C:\>

```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: ProcessIdParameterSet, ProcessParameterSet, ProcessNameParameterSet, PSHostProcessInfoParameterSet
Aliases:

Required: False
Expand Down Expand Up @@ -188,6 +195,24 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -CustomPipeName

Gets or sets the custom named pipe name to connect to.
This is usually used in conjunction with
`pwsh -CustomPipeName`.

```yaml
Type: String
Parameter Sets: PipeNameParameterSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix "about_CommonParameters" to be a valid hyperlink.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update ms.date to the current date in both articles

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

Expand All @@ -209,4 +234,4 @@ That is, they have loaded the PowerShell engine.

## RELATED LINKS

[Exit-PSHostProcess](Exit-PSHostProcess.md)
[Exit-PSHostProcess](Exit-PSHostProcess.md)