powershell 适用于PS Core的Windows PowerShell模块

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 适用于PS Core的Windows PowerShell模块相关的知识,希望对你有一定的参考价值。

<#
Most of the modules that ship as part of Windows (for example, DnsClient, Hyper-V, NetTCPIP, Storage, etc.) and other Microsoft products including Azure and Office have not been explicitly ported to .NET Core yet.
By installing the WindowsPSModulePath module, you can use Windows PowerShell modules by appending the Windows PowerShell PSModulePath to your PowerShell Core PSModulePath.
#>
# Add `-Scope CurrentUser` if you're installing as non-admin
Install-Module WindowsPSModulePath -Force

# Add this line to your profile if you always want Windows PowerShell PSModulePath
Add-WindowsPSModulePath

以上是关于powershell 适用于PS Core的Windows PowerShell模块的主要内容,如果未能解决你的问题,请参考以下文章

无法在适用于 Windows 的 Python 3.7 上安装 win32core

开源版本PowerShell Core 6.2 发布

powershell win_autoinstall_chocolatey.ps1

PowerShell 3 的文件扩展名

powershell脚本:你的文件已经被黑客篡改.ps1

如何给PowerShell脚本加密