-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update ServerRemoteHost
Version to be same as PSVersion
#15809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ServerRemoteHost
Version to be same as PSVersion
#15809
Conversation
@PaulHigin I searched the Windows code base and browsed a few pages of GitHub hits and it seems that there is code checking for |
@SteveL-MSFT Do we want to mark this for backport? |
@TravisEz13 no, there's no need to backport this |
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
@TravisEz13 Ready to merge? |
ServerRemoteHost
Version to be same as PSVersion
🎉 Handy links: |
🎉 Handy links: |
PR Summary
This change updates that
Version
member ofServerRemoteHost
to be exactly$PSVersionTable.PSVersion
instead of a fixed 1.0.0.0.PR Context
ServerRemoteHost
which is used when using PowerShell remoting has a fixed version of 1.0.0.0. This doesn't really provide any information when retrieved via$Host.Version
. Instead, it should reflect the version of PowerShell being used.PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).