Windows Nano Server安裝配置詳解09:Nano Powershell

來源:互聯網
上載者:User

標籤:windows nano server   remote powershell   遠端管理   

從 5.1 版本開始,PowerShell 在具有不同功能集和平台相容性的不同版本中可用。

案頭版:基於 .NET Framework 而構建,相容面向在 Windows 完整佔用空間版本(例如,Server Core 和 Windows Desktop)上啟動並執行 PowerShell 版本的指令碼和模組。

核心版:基於 .NET Core 而構建,相容面向在 Windows 佔用空間減小版本(例如,Nano Server 和 Windows IoT)上啟動並執行 PowerShell 版本的指令碼和模組。

當前啟動並執行 PowerShell 版本顯示在 $PSVersionTable 的 PSEdition 屬性中。

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/8C/9D/wKioL1hy9ePxDmYlAAEidiXFYF4206.png" title="clipboard.png" alt="wKioL1hy9ePxDmYlAAEidiXFYF4206.png" />Nano Server 上 PowerShell 的差異

預設情況下,Nano Server 在所有 Nano Server 安裝中都包括 PowerShell Core。 PowerShell Core 是基於 .NET Core 構建的 PowerShell 佔用空間減小版本,且在佔用空間減小版本的 Windows(例如,Nano Server 和 Windows IoT Core)上運行。 PowerShell Core 與其他 PowerShell 版本(例如 Windows Server 2016 上啟動並執行 Windows PowerShell)運行方式相同。 然而,Nano Server 佔用空間減少意味著不是所有 Windows Server 2016 中的 PowerShell 功能都在 Nano Server 上的 PowerShell Core 中可用。

結合使用 Windows PowerShell Desired State Configuration 與 Nano Server

可以使用 Windows PowerShell Desired State Configuration (DSC) 將 Nano Server 作為目標節點來管理。 目前,僅可以在請求模式下管理使用 DSC 運行 Nano Server 的節點。 並非所有 DSC 功能都與 Nano Server 正常運行。

本文出自 “曾垂鑫的技術專欄” 部落格,謝絕轉載!

Windows Nano Server安裝配置詳解09:Nano Powershell

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.