How i can update PS version ?

Андрей Михалевский 3,331 Reputation points
2022-11-17T14:12:49.157+00:00

Hi. I have windows server 2008 R2 without internet. How i can update offline my version ps?

PS C:\Users\Administrator> $PSVersionTable

Name Value
---- -----
CLRVersion 2.0.50727.5420
BuildVersion 6.1.7601.17514
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,555 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasileios Dionysopoulos 641 Reputation points
    2022-11-17T14:24:43.087+00:00

  2. Rich Matheisen 46,816 Reputation points
    2022-11-17T19:23:50.127+00:00

    You're currently running PS version 2.0, not 7.0. The two are quite different. The version of PowerShell you're running is "Windows PowerShell". PowerShell 7.0 is a cross-platform version of PowerShell. I'm guessing you might not be happy with version 7 since it lacks many things that administrating a Windows network make easy (e.g., WMI and CIM, among others).

    If you're going to update Windows Powershell, try this: install-powershell-5-windows-server-2008-r2

    If you have software on that machine that depends on earlier versions of WMF, be sure to check with vendors about how to handle upgrading those apps, too (and that includes Microsoft software, too!).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.