Switching to PS v7 on a remote session #96
Unanswered
OTonGitHub
asked this question in
Q&A
Replies: 1 comment
-
It seems using PSSession has some "limitations" even though it can transfer object and can simultaneously invoke commands when managing a number of windows servers. I ended up just ssh-ing to my server, then running |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When remoted to my windows server core, using
Enter-PSSession
, no matter what I tried, I couldnt swap shell to PS v7, when I run pwsh, it definitely instantiates powershell 7 because I see the output indicating powershell v7.x.x but running$PSVersionTable
still indicates the old version 5 in use. This is not an issue when using the server directly, both runningpwsh
directly on the shell or addingpwsh
toProfile.ps1
in the Powershell 5 directory works on server natively, but not if connected remotely, is there a way to resolve this? I am completely new to powershell and scripting using powershell. I just really liked that there is module wrapping around steamcmd and simplifying it, and can update everything easily with this wrapper, thanks.Beta Was this translation helpful? Give feedback.
All reactions