Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Use newer version of PowerShell rather than preinstalled with windows #351

Open
wants to merge 2 commits into
base: 17763-v7
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion IoTCorePShell.cmd
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion Tools/IoTCoreImaging/IoTWorkspace.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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`""
}

Expand Down