As mentioned on this post
I was planning to test PowerShell Core on Windows IoT running on an ARM platform using RPI3….
PS Core Version 6.x claims to be a cross platform ![]()
It is still experimental as mentioned here :
https://docs.microsoft.com/en-us/powershell/scripting/setup/powershell-core-on-arm?view=powershell-6
So let’s take a look :
1. Download the correct ZIP
https://github.com/PowerShell/PowerShell/releases
Windows IoT running on RPI3 is a 32bit version (if you are using the free version)
2. Open the ZIP
This contains all the modules needed to run on your RPI3
Extract and copy all files over to your destination RPI3 folder.
For example c:\pscore
3. Setup Remoting on RPI3
Run this command and see PS notes :
You’ll get an error message and will be disconnected from the device because it has to restart WinRM
# 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
4. Connect to the PS Core on your RPI3
# 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.2
5. How to run Windows PowerShell modules in PowerShell Core
Run these 2 commands to get access to the Windows PS modules
Install-Module WindowsPSModulePath -Force -Scope CurrentUser Add-WindowsPSModulePath
Or this way for a custom module
Import-Module "C:\Program Files (x86)\AutoIt3\AutoItX\AutoItX.psd1" Get-Command *au3*
6. Test PS Core on your RPI3
All runs as expected ![]()
But keep in mind that not all functions are supported (yet)
Even if it says so see help ![]()
Running PowerShell Core on Linux or Mac see here to get started :
Enjoy !
