Get-Module 會在$env:PSModulePath 環境變數所指定的路徑中尋找可用的模組。 如需 PSModulePath 的詳細資訊,請參閱 about_Modules 和about_Environment_Variables。範例3:取得所有導出的檔案PowerShell 複製 Get-Module -ListAvailable -All此命令取得所有可用模組的所有匯出檔案。
此版本的 PowerShellGet 具有有限的功能,且不支援 PowerShell 資源庫 的更新功能。 若要支援,您必須更新為最新版本。 PowerShellGet 展開資料表 Find-Command Finds PowerShell commands in modules. Find-DscResource Finds Desired State Configuration (DSC) resources. Find-Module Finds modules in a repository...
The Get-InstalledModule cmdlet gets PowerShell modules that are installed on a computer using PowerShellGet. To see all modules installed on the system, use the Get-Module -ListAvailable command. This is a proxy cmdlet for the Get-InstalledPSResource cmd
示例 PSC:\Users\admin>Get-Module-ListAvailable 目录: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands---Script 1.0.1 Microsoft.PowerShell.Operation.V...{Get-OperationValidat...Binary 1.0.0.1 PackageManagement{Find-Package,Get-Pa...Script 3.4.0 Pester{Describe,C...
PowerShell Update-Module[[-Name] <String[]>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-Credential <PSCredential>] [-Scope <String>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>] [-Force] [-AllowPrerelease] [-AcceptLicense] [-PassThru] [-WhatIf] [-Confirm] [<Common...
PowerShell 复制 Get-Process -InputObject <Process[]> -IncludeUserName [<CommonParameters>]说明Get-Process cmdlet 获取本地计算机上的进程。 如果没有参数,此 cmdlet 将获取本地计算机上的所有进程。 还可以通过进程名称或进程 ID(PID)指定特定进程,或通过管道将进程对象传递给此 cmdlet。 默认情况下,此 ...
Windows10V1709中缺少PowershellGet 、 一些挖掘显示,我没有安装PowershellGet,所有的文档/下载要么是“开箱即用”,要么是运行安装模块来安装PowershellGet,因为Windows10没有可用的下载。我在C:\Program Files\WindowsPowerShell\Modules中没有PowershellGet文件夹,但我有PackageManagement。我在哪里可以找到PowershellGet...
Davlind/PSColor: Provides simple color highlighting for some PowerShell output () pwsh Color pwsh Gallery PScolor模块 默认情况下 目录为蓝绿色 文本文件为金黄色 二进制文件为灰色 隐藏目录为黑色 Get-ChildItemColor pwsh Get-ChildItem 个人比较喜欢的配色 ...
'PowerShellGet'. Try Get-PSRepository to see all available registered module repositories. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21 + ... $null = PackageManagement\Install-Package @PSBoundParameters ...
Get-Module查找由$Env:PSModulePath环境变量指定的路径中的可用模块。 有关PSModulePath的详细信息,请参阅about_Modules和about_Environment_Variables。 示例3:获取所有导出的文件 PowerShell Get-Module-ListAvailable-All 此命令获取所有可用模块的所有导出文件。