From 86e1cab104487dbb79d3c9f62ab18d5c9707502c Mon Sep 17 00:00:00 2001 From: r9guy <9428627+r9guy@users.noreply.github.com> Date: Sun, 28 Feb 2021 09:24:03 +0400 Subject: [PATCH 1/2] Update IoTCorePShell.cmd powershell.exe replaced with pwsh.exe to take advantage of newer installed versions of PowerShell. preinstalled edition of PowerShell known to have problems then building FFU. --- IoTCorePShell.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IoTCorePShell.cmd b/IoTCorePShell.cmd index eaaf61e0..b7791c6a 100644 --- a/IoTCorePShell.cmd +++ b/IoTCorePShell.cmd @@ -1,2 +1,2 @@ @echo off -powershell -Command "Start-Process 'powershell.exe' -ArgumentList '-noexit -ExecutionPolicy Bypass -Command \". %~dp0Tools\Launchshell.ps1\"' -Verb runAs" +powershell -Command "Start-Process 'pwsh.exe' -ArgumentList '-noexit -ExecutionPolicy Bypass -Command \". %~dp0Tools\Launchshell.ps1\"' -Verb runAs" From 073fe92529dd05dbf28ef4a1c083abcc9453afa7 Mon Sep 17 00:00:00 2001 From: r9guy <9428627+r9guy@users.noreply.github.com> Date: Sun, 28 Feb 2021 10:04:16 +0400 Subject: [PATCH 2/2] Update IoTWorkspace.ps1 --- Tools/IoTCoreImaging/IoTWorkspace.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/IoTCoreImaging/IoTWorkspace.ps1 b/Tools/IoTCoreImaging/IoTWorkspace.ps1 index b95fdc3f..f878805d 100644 --- a/Tools/IoTCoreImaging/IoTWorkspace.ps1 +++ b/Tools/IoTCoreImaging/IoTWorkspace.ps1 @@ -184,7 +184,7 @@ function New-IoTWorkspace { function Write-CmdShortcut([string] $dir) { $CmdFile = "$dir\IoTCorePShell.cmd" Set-Content -Path $CmdFile -Value "@echo off" - $cmdstring = "Start-Process 'powershell.exe' -ArgumentList '-noexit -ExecutionPolicy Bypass -Command \`". $env:TOOLS_DIR\Launchshell.ps1\`" %~dp0\IoTWorkspace.xml' -Verb runAs" + $cmdstring = "Start-Process 'pwsh.exe' -ArgumentList '-noexit -ExecutionPolicy Bypass -Command \`". $env:TOOLS_DIR\Launchshell.ps1\`" %~dp0\IoTWorkspace.xml' -Verb runAs" Add-Content -Path $CmdFile -Value "powershell -Command `"$cmdstring`"" }