Windows Server 2008 R2에서 PowerShell을 업그레이드하려면 어떻게해야합니까?


11

Windows Server 2008 R2에서 Windows PowerShell 1.0을 사용하고 있습니다. Windows 8에서 PowerShell 3.0을 사용해 보았는데 나에게 잘 어울립니다.

이제 질문은 Windows Server 2008 R2 컴퓨터에서 PowerShell을 업그레이드하는 방법입니다. 3.0을 사용할 수없는 경우 사용 가능한 최신 버전으로 업그레이드 할 수있는 방법이 있습니까?


Name             : ConsoleHost
Version          : 2.0
InstanceId       : f0b6480c-be55-429d-a197-65604de5887e
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

답변:


5

불가능합니다. Windows PowerShell 2.0은 Windows Server 2008 R2에 포함되어 있습니다. 지원되는 방식으로 2008 R2에서 Windows PowerShell 1.0을 설치할 수 없습니다.

실행중인 PowerShell 버전을 확인하려면 $host변수 를 에코하십시오 .

Name             : Windows PowerShell ISE Host
Version          : 3.0
InstanceId       : 711f19be-3f19-4612-bea3-61899c1a73c2
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.Host.ISE.ISEOptions
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

아니요, Window 웹 서버 2008 R2 sp1을 사용하고 있으며 여전히 1.0 powershell을 가지고 있으므로 2.0, 3.0을 찾고 있습니다. 내 게시물에 혼란이 생깁니다. 가능하면 도와주세요.
Anirudha Gupta

2
난 당신이 혼란스러워 생각합니다. Windows Server 2008 R2 SP1에는 Windows PowerShell 2.0이 기본적으로 포함되어 있습니다.
Trevor Sullivan

3
그렇습니다. 경로는 여전히 v1.0입니다. 무시하십시오 :)
Trevor Sullivan

1
사용중인 PowerShell 버전을 찾는 다른 방법은 다음과 같습니다. $ PSVersionTable
Sean Perkins

6
이 게시물은 OP의 질문입니다. PowerShell을 어떻게 업그레이드 할 수 있습니까 ... Windows Server 2008 R2?
나는 복구합니다 Monica Monica

30

PowerShell 2.0은 Server 2008 R2에 포함되어 있습니다. PowerShell 3.0은 Windows 8 및 Server 2012에 포함되어 있습니다. PowerShell 3.0은 Server 2008 R2에 설치할 수 있습니다.

다음 지침은이 페이지에서 발췌 한 것입니다. http://technet.microsoft.com/en-us/library/hh847837.aspx

  1. Windows Management Framework 3.0을 설치하기 전에 이전 버전의 Windows Management Framework 3.0을 제거하십시오.

  2. https://go.microsoft.com/fwlink/?LinkID=212547 의 Microsoft 다운로드 센터에서 Microsoft .NET Framework 4.0 (dotNetFx40_Full_setup.exe)의 전체 설치를 설치 하십시오 .

  3. 또는 Microsoft 다운로드 센터 ( https://go.microsoft.com/fwlink/?LinkID=242919 )에서 Microsoft .NET Framework 4.5 (dotNetFx45_Full_setup.exe)를 설치 하십시오 .

  4. https://www.microsoft.com/en-us/download/details.aspx?id=34595 의 Microsoft 다운로드 센터에서 Windows Management Framework 3.0을 설치 하십시오 .

이 페이지에서는 Server 2008 (비 R2) 및 Windows 7에 PowerShell 3.0을 설치하는 방법도 설명합니다.


3
분명히 이것은 받아 들일 수있는 대답이어야합니다 ... 현재 받아 들여진 대답은 'Powershell Version 1.0'오류를 지적합니다 ...
Just Lucky Really

1
technet.microsoft.com/en-us/library/hh847837.aspx 링크 가 리디렉션되었습니다. 리디렉션 된 페이지에는 Server 2008에 PowerShell 3을 설치하는 데 대한 정보가 없습니다. 일부 정보는 다음 링크에 있습니다. docs.microsoft.com/en-us/powershell/scripting/setup/…
Mike Sherrill 'Cat Recall '


2

먼저 PowerShell 버전을 확인하는 올바른 방법은 변수를 확인하고 $PSVersionTable.PSVersion$ Host 또는 Get-Host를 사용하지 않는 것입니다.

둘째, 사용 가능한 최신 버전으로 업데이트하는 대신 서버에 어떤 버전의 PowerShell을 설치해야하는지 조사해야합니다. The Scripting Guy의 최신 게시물 최신 Windows PowerShell 버전으로 업그레이드해야합니까? 이 결정을 내리는 데 도움이 될 수 있습니다. 예를 들어,이 글에서는 PowerShell을 업그레이드하면 중요한 응용 프로그램이 손상 될 수 있다고 지적합니다.

Windows PowerShell을 업그레이드하면 내 응용 프로그램이 손상됩니까? 불행히도 대답은 그럴 수도 있다는 것입니다. Windows PowerShell 4.0 용 릴리스 정보는 Windows PowerShell 4.0과 호환되지 않는 다음 응용 프로그램 목록을 제공합니다.

  • System Center 2012 Configuration Manager (SP1 제외)
  • System Center Virtual Machine Manager 2008 R2 (SP1 포함)
  • Microsoft Exchange Server 2013, Microsoft Exchange Server 2010 및 Microsoft Exchange Server 2007
  • Microsoft SharePoint 2013 및 Microsoft SharePoint 2010
  • Windows Small Business Server 2011 표준

컴퓨터에서 이러한 제품을 실행중인 경우 Windows PowerShell 4.0을 설치하지 마십시오. Windows PowerShell 3.0의 목록은 매우 비슷합니다. 이러한 응용 프로그램 중 일부 (예 : Exchange Server 2013)는 서비스 팩과 호환됩니다. 특정 응용 프로그램 및 상황에 맞는 서비스 팩 또는 다른 수정 프로그램이 있는지 확인해야합니다.

또한 새 버전의 PowerShell은 기존 스크립트를 손상시킬 수도 있습니다.


0

현재 버전을 유지하려면 Windows Server 2008 R2를 계속 실행 중이고 PowerShell 2.0을 사용하고 있다고 가정합니다.

Windows PowerShell에서 다음 코드를 실행하십시오.

Import-Module servermanager
Add-WindowsFeature powershell-ise

3
수퍼 유저를 환영합니다 : "Windows Server 2008 R2에서 PowerShell을 업그레이드하는 방법은 무엇입니까?" 귀하의 답변 "현재 버전을 유지하는 방법?" 원래 질문이 아닙니다. 그것은 여전히 ​​가치가 있지만 의견이어야합니다, 당신은 아직 담당자가 없지만 사이트를 계속할 때 그것을 얻습니다 (시간이 오래 걸리지 않습니다). 몇 분을 가지고 읽어 보시기 바랍니다 : - superuser.com/help .Answering : superuser.com/help/how-to-answer을 다시 환영 superuser.Thankyou에
mic84
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.