在 Windows Server 2008 R2 中安裝 PowerShell 5.1
互聯網 2022/3/2 7:17:40
首先需要安裝 .NET Framework 4.5.2 或更高版本:https://dotnet.microsoft.com/en-us/download/dotnet-framework
然后下載安裝 PowerShell 5.1:https://www.microsoft.com/en-us/download/details.aspx?id=54616
如果在執行包含中文內容的腳本時不顯示中文,或 Write-Output 中文時出錯,如下圖:
out-lineoutput : The Win32 internal error "A device attached to the system is not functioning" 0x1F occurred while writing to the console output buffer at the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLineOutputCommand
請注意修改以下配置:
1、在標題欄中點擊右鍵,選擇“屬性”:
2、切換到字體選項卡,將原有默認點陣字體切換為上方字體:
3、點擊確定即可正常使用。
參考:https://blog.51cto.com/jameszhan/2642202

關于找一找教程網
本站文章僅代表作者觀點,不代表本站立場,所有文章非營利性免費分享。
本站提供了軟件編程、網站開發技術、服務器運維、人工智能等等IT技術文章,希望廣大程序員努力學習,讓我們用科技改變世界。
[在 Windows Server 2008 R2 中安裝 PowerShell 5.1]http://www.yachtsalesaustralia.com/tech/detail-304542.html
- 2022-08-12powershell修改編碼
- 2022-08-09powershell無法執行腳本
- 2022-07-13在Windows 10 , windows 7 上開啟 Powershell 遠程功能
- 2022-06-22powershell無文件攻擊場景匯總
- 2022-06-16ESXI系列問題整理以及記錄——使用Windows PowerShell中的SSH功能連接ESXI控制臺
- 2022-05-24PowerShell 筆記 - 輸出格式化
- 2022-05-24PowerShell 筆記 - 管道進階
- 2022-05-15Windows Powershell個性化設置
- 2022-05-14window10 powershell ssh登錄提示Bad owner or permissions
- 2022-05-12PowerShell SSH 連接 VirtualBox Ubuntu 虛擬機的具體步驟