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
14 changes: 7 additions & 7 deletions docs/installation/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ brew cask upgrade powershell
### Installation via Direct Download

Using macOS 10.12+, download the PKG package
`powershell-6.0.1-osx.10.12-x64.pkg`
`powershell-6.0.2-osx.10.12-x64.pkg`
from the [releases][] page onto the macOS machine.

Either double-click the file and follow the prompts,
or install it from the terminal:

```sh
sudo installer -pkg powershell-6.0.1-osx.10.12-x64.pkg -target /
sudo installer -pkg powershell-6.0.2-osx.10.12-x64.pkg -target /
```

[releases]: https://github.com/PowerShell/PowerShell/releases
Expand All @@ -57,19 +57,19 @@ sudo installer -pkg powershell-6.0.1-osx.10.12-x64.pkg -target /

```sh
# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-osx-x64.tar.gz
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-osx-x64.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /usr/local/microsoft/powershell/6.0.1
sudo mkdir -p /usr/local/microsoft/powershell/6.0.2

# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/6.0.1
sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/6.0.2

# Set execute permissions
sudo chmod +x /usr/local/microsoft/powershell/6.0.1/pwsh
sudo chmod +x /usr/local/microsoft/powershell/6.0.2/pwsh

# Create the symbolic link that points to pwsh
sudo ln -s /usr/local/microsoft/powershell/6.0.1/pwsh /usr/local/bin/pwsh
sudo ln -s /usr/local/microsoft/powershell/6.0.2/pwsh /usr/local/bin/pwsh
```

### Uninstallation
Expand Down
14 changes: 7 additions & 7 deletions docs/installation/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ $s = New-PSSession -ComputerName <deviceIp> -Credential Administrator
```powershell
# change the destination to however you had partitioned it with sufficient space for the zip and the unzipped contents
# the path should be local to the device
Copy-Item .\PowerShell-6.0.1-win-arm32.zip -Destination u:\users\administrator\Downloads -ToSession $s
Copy-Item .\PowerShell-6.0.2-win-arm32.zip -Destination u:\users\administrator\Downloads -ToSession $s
```

* Connect to the device and expand the archive

```powershell
Enter-PSSession $s
cd u:\users\administrator\downloads
Expand-Archive .\PowerShell-6.0.1-win-arm32.zip
Expand-Archive .\PowerShell-6.0.2-win-arm32.zip
```

* Setup remoting to PowerShell Core 6

```powershell
cd .\PowerShell-6.0.1-win-arm32
cd .\PowerShell-6.0.2-win-arm32
# Be sure to use the -PowerShellHome parameter otherwise it'll try to create a new endpoint with Windows PowerShell 5.1
.\Install-PowerShellRemoting.ps1 -PowerShellHome .
# You'll get an error message and will be disconnected from the device because it has to restart WinRM
Expand All @@ -69,7 +69,7 @@ cd .\PowerShell-6.0.1-win-arm32

```powershell
# Be sure to use the -Configuration parameter. If you omit it, you will connect to Windows PowerShell 5.1
Enter-PSSession -ComputerName <deviceIp> -Credential Administrator -Configuration powershell.6.0.1
Enter-PSSession -ComputerName <deviceIp> -Credential Administrator -Configuration powershell.6.0.2
```

## Deploying on Nano Server
Expand Down Expand Up @@ -161,7 +161,7 @@ Install-PowerShellRemoting.ps1
For Example:

``` powershell
& 'C:\Program Files\PowerShell\6.0.1\Install-PowerShellRemoting.ps1' -PowerShellHome 'C:\Program Files\PowerShell\6.0.1\'
& 'C:\Program Files\PowerShell\6.0.2\Install-PowerShellRemoting.ps1' -PowerShellHome 'C:\Program Files\PowerShell\6.0.2\'
```

**NOTE:** The remoting registration script will restart WinRM, so all existing PSRP sessions will terminate immediately after the script is run. If run during a remote session, this will terminate the connection.
Expand All @@ -171,8 +171,8 @@ For Example:
Create a PowerShell session to the new PowerShell endpoint by specifying `-ConfigurationName "some endpoint name"`. To connect to the PowerShell instance from the example above, use either:

``` powershell
New-PSSession ... -ConfigurationName "powershell.6.0.1"
Enter-PSSession ... -ConfigurationName "powershell.6.0.1"
New-PSSession ... -ConfigurationName "powershell.6.0.2"
Enter-PSSession ... -ConfigurationName "powershell.6.0.2"
```

Note that `New-PSSession` and `Enter-PSSession` invocations that do not specify `-ConfigurationName` will target the default PowerShell endpoint, `microsoft.powershell`.
Expand Down
1 change: 0 additions & 1 deletion tools/packaging/packaging.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,6 @@ function New-ManGzip
$RoffFile = $RonnFile -replace "\.ronn$"

# Run ronn on assets file
# Run does not play well with files named powershell6.0.1, so we generate and then rename
Start-NativeExecution { ronn --roff $RonnFile }

# gzip in assets directory
Expand Down