Skip to content

Commit

Permalink
Set PowerShell supported version to 5 (#5132)
Browse files Browse the repository at this point in the history
* Set PowerShell supported version to 5

* Set PowerShell supported version to 5

* Set PowerShell supported version to 5

* Hadi's suggestion

Co-authored-by: Hadi Eskandari <H.Eskandari@Gmail.com>

* Note about PowerShell Core

* Note about PowerShell Core, simplify section

Co-authored-by: Hadi Eskandari <H.Eskandari@Gmail.com>
  • Loading branch information
mauroservienti and HEskandari authored Nov 25, 2020
1 parent 3126032 commit e19024f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nservicebus/operations/management-using-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The PowerShell module provides cmdlets to assist with:

## Prerequisites

Prior to installation ensure that PowerShell 2 or higher is installed.
Prior to installation ensure that PowerShell 2 or higher is installed. NServiceBus PowerShell modules are compatible with PowerShell 5. Versions of PowerShell later than 5 (including PowerShell Core) are not supported and might not work as expected.


## Installation
Expand Down Expand Up @@ -51,4 +51,4 @@ A list of available cmdlets can be found by issuing the following PowerShell com
Get-Command -Module NServiceBus.PowerShell
```

Help for each cmdlet is incorporated within the module. Help can be accessed via the standard [PowerShell Get-Help Command](https://technet.microsoft.com/en-us/library/ee176848.aspx), e.g. `Get-Help Set-NServiceBusLocalMachineSettings`.
Help for each cmdlet is incorporated within the module. Help can be accessed via the standard [PowerShell Get-Help Command](https://technet.microsoft.com/en-us/library/ee176848.aspx), e.g. `Get-Help Set-NServiceBusLocalMachineSettings`.
7 changes: 2 additions & 5 deletions servicecontrol/powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ ServiceControl version 1.7 introduced a new graphical management utility to add,

## Prerequisites

The ServiceControlMgmt module requires:

* Microsoft PowerShell 3.0

ServiceControlMgmt PowerShell module is compatible with PowerShell 5. Versions of PowerShell later than 5 (including PowerShell Core) are not supported and might not work as expected.

## Loading and running the PowerShell module

Expand Down Expand Up @@ -105,4 +102,4 @@ The following example shows how to add a UrlAcl for a ServiceControl service tha

```ps
Add-UrlAcl -Url http://servicecontrol.mycompany.com:33333/api/ -Users Users
```
```
6 changes: 5 additions & 1 deletion transports/msmq/distributor/disconnect-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ redirects:

The Distributor starts sending messages to a Worker once it is aware of it. A Worker registers itself with a Distributor by sending a message containing a `SessionID` that identifies the current running Worker and the number of messages it can handle concurrently.

## Prerequisites

Prior to installation ensure that PowerShell 2 or higher is installed. NServiceBus PowerShell modules are compatible with PowerShell 5. Versions of PowerShell later than 5 (including PowerShell Core) are not supported and might not work as expected.

## Disconnecting a Worker

If the Worker is configured using the [NServiceBus.Distributor.MSMQ NuGet](https://www.nuget.org/packages/NServiceBus.Distributor.MSMQ), there is a PowerShell cmdlet that can be used to disconnect a Worker from a Distributor. The steps are the following:
Expand All @@ -30,4 +34,4 @@ If the Worker is configured using the [NServiceBus.Distributor.MSMQ NuGet](https

1. A disconnect message is sent by the PowerShell cmdlet to the Distributor control queue.
1. When the Distributor processes it, the Worker with the address specified in the message is set with SessionID `disconnected`.
1. Ready messages sent back by the Worker to the Distributor never match the session, so they are skipped and that way the Worker won't receive any more messages from the Distributor.
1. Ready messages sent back by the Worker to the Distributor never match the session, so they are skipped and that way the Worker won't receive any more messages from the Distributor.

0 comments on commit e19024f

Please sign in to comment.