PowerShell Kopiér Get-InstalledModule [[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-AllVersions] [-AllowPrerelease] [<CommonParameters>]DescriptionThe Get-InstalledModule cmdlet gets PowerShell modules that are installed on a computer...
$env:ProgramFiles\PowerShell\Modules CurrentUser會將模組安裝在只有電腦目前用戶可存取的位置。 例如: $home\Documents\PowerShell\Modules 未定義範圍時,會根據 PowerShellGet 版本設定預設值。 在PowerShellGet 2.0.0 版和更新版本中,預設值為CurrentUser,不需要提高安裝許可權。
Get-InstalledScript Gets an installed script. Get-PSRepository Gets PowerShell repositories. Install-Module Downloads one or more modules from a repository, and installs them on the local computer. Install-Script Installs a script. New-ScriptFileInfo Creates a script file with metadata. Publish-...
PowerShell 复制 Update-Module [[-Name] <String[]>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-Credential <PSCredential>] [-Scope <String>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>] [-Force] [-AllowPrerelease] [-AcceptLicense] [-PassThru] [-WhatIf] [-Confirm] ...
Describe the bug I'm unable to install from (though I am able to publish to) PowerShell modules using the Install-Module PowerShell commandlet in PowerShellGet, which is the recommended way to install PowerShell modules from a NuGet feed...
Set of commands to install PowerShell modules from central directory, local files, or the web. Installation In your prompt execute: (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/psget/psget/master/GetPsGet.ps1") | iex ...
若要详细了解模块,请参阅 about_Modules。 示例3:获取隐藏的事件订阅者 此示例为 PowerShell.Exiting 事件注册事件订阅服务器。 订阅是使用 SupportEvent 参数注册的,该参数将事件订阅者从 cmdlet 的默认输出 Get-EventSubscriber 中隐藏。 必须使用 Force 参数来获取所有事件订阅者,包括隐藏的订阅者。 PowerShell 复...
Summary: Learn how to find modules that were installed by the Windows PowerShellGetcommand. How can I use Windows PowerShell to find modules that have been installed by theGetcommand? Use theGet-InstalledModulecommand.
The earliest version of PackageManagement (version 1.0.0.1) did not ship with the NuGet provider, so any use of PowerShellGet also required that the NuGet provider be bootstrapped or explicitly installed. Understandably, it can be a source of deep frustration when the tool you use to install...
Get-InstalledScript Gets an installed script. Get-PSRepository Gets PowerShell repositories. Install-Module Downloads one or more modules from a repository, and installs them on the local computer. Install-Script Installs a script. New-ScriptFileInfo ...