2017-08-30
Windows PowerShell 著作權 (C) 2016 Microsoft Corporation. 著作權所有,並保留一切權利。 PS C:\Users\Administrator> get-host Name : ConsoleHost Version : 5.1.14393.1532 InstanceId : f821ae5f-a4d8-4115-8456-177b7319db22 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : zh-TW CurrentUICulture : zh-TW PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace PS C:\Users\Administrator> $PSVersionTable Name Value ---- ----- PSVersion 5.1.14393.1532 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14393.1532 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 PS C:\Users\Administrator> |
參考這篇和實際測試
https://docs.microsoft.com/en-us/powershell/scripting/setup/windows-powershell-system-requirements?
view=powershell-5.1
- Windows 7 with Service Pack 1 的 PowerShell 是 2.0,安裝 Windows Management Framework 5.0 後,可以跑 Windows PowerShell 5.0
- Windows Server 2016 的 PowerShell 是 5.1
(完)
沒有留言:
張貼留言