示例 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...
cmdletGet-Module获取已在会话中导入的 PowerShell 模块。 PowerShell Get-Module 列出的模块可以包括从任何位置导入的模块,而不仅仅是从$env:PSModulePath导入。 使用以下命令列出 中$env:PSModulePath安装的模块: PowerShell Get-Module-ListAvailable 此命令获取中$env:PSModulePath安装的所有模块,而不仅仅是导入到...
Get-Module查找由$env:PSModulePath环境变量指定的路径中的可用模块。 有关PSModulePath的详细信息,请参阅about_Modules和about_Environment_Variables。 示例3:获取所有导出的文件 PowerShell Get-Module-ListAvailable-All 此命令获取所有可用模块的所有导出文件。
To obtain a listing of all modules that are available on the system but are not loaded into the Windows PowerShell console, you can use the Get-Module cmdlet with theListAvailableparameter, as shown here: PS C:\> Get-Module –ListAvailable List All Cmdlets of a Specific Module in Powers...
If no modules are loaded, nothing is displayed to the Windows PowerShell console (no errors are displayed, and there is no confirmation that the command was actually run).To obtain a listing of all modules that are available on the system but are not loaded into the Windows PowerShell ...
PowerShellGet Downloads one or more modules from a repository, and installs them on the local computer. Syntax PowerShell Install-Module[-Name] <String[]> [-MinimumVersion <String>] [-MaximumVersion <String>] [-RequiredVersion <String>] [-Repository <String[]>] [-Credential <PSCredential>...
如需詳細資訊,請參閱about_Modules、about_Preference_Variables及Get-Command與Import-ModuleCmdlet 的說明主題。 模組體驗改善 Windows PowerShell 3.0 帶來了對模組的進階功能支援,包括下列新功能。 個別模組的模組記錄 (LogPipelineExecutionDetails) 和新的「開啟模組記錄」群組原則設定。
You can find out what version of PowerShellGet and PackageManagement you’re using by running: Copy Get-ModulePowerShellGet, PackageManagement-ListAvailable The output will be order by priority, so if multiple paths are displayed, the top first path will be the one that gets referenced during...
Type Get-Help Function. Reusing Functions in New Sessions When you type a function at the PowerShell command prompt, the function becomes part of the current session. The function is available until the session ends. To use your function in all PowerShell sessions, add the function to your ...
若要获取所有受支持的区域性的列表,请使用 Get-Culture -ListAvailable 命令。 此外,此参数接受下列参数: CurrentCulture,即默认值; 序号,即非语言二进制比较; 固定的,即区域性独立比较。 使用Select-String -Culture Ordinal -CaseSensitive -SimpleMatch 命令,可以获得最快的二进制比较。 Culture 参数使用 Tab 补全...