![]() So still not quite sure how to make ps7 the default. Write-Error: No session configuration matches criteria Though I would try this in ps7 so switched back by running pwsh and ran the same command again to get he following. Exception setting "PSVersion": "The value 7.0 is not valid for Set-PSSessionConfiguration : Cannot bind parameter 'PSVersion' to the Which I think is what I want to do so switched back to ps 5.1 and tried this command: Get-PSSessionConfiguration -Name microsoft.powershell | Set-PSSessionConfiguration -PSVersion 7.0 Set the default microsoft.powershell endpoint to any PowerShell they Now how to make this happen by default.? From this github issue : This now uses ps 7 on the remote session, happy days. ![]() Invoke-Command -ComputerName name -ScriptBlock However I when I create a session to these servers from my pc with ps7 I am always running ps5.1 on the remote machine. With the release of powershell 7, seems like it is time to move past ps 5.1 so I have installed in on a couple of servers to give it a go. ![]()
0 Comments
Leave a Reply. |