Get-InstalledModuleReference Feedback Module: PowerShellGet Gets a list of modules on the computer that were installed by PowerShellGet.SyntaxPowerShell Kopiér Get-InstalledModule [[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-All...
Find-Module Finds modules in a repository that match specified criteria. Find-RoleCapability Finds role capabilities in modules. Find-Script Finds a script. Get-InstalledModule Gets a list of modules on the computer that were installed by PowerShellGet. Get-InstalledScript Gets an installed script...
Search for installed PowerShell Modules The list of installed modules can be a lot to look at. You can use the where-object filter to search for a specific name (wildcard search). In this example, I’m looking for the exchange module so I search on the keyword “Exchange” get-module ...
Get-Modulecmdlet 的ListAvailable参数找不到该模块。 Import-Modulecmdlet 找不到该模块。 若要导入模块,必须提供根模块文件或模块清单文件的完整路径。 除非将模块导入到会话中,否则其他功能(如以下)不起作用。 在PSModulePath环境变量中格式良好的模块中,即使模块未导入到会话中,这些功能也能正常工作。
Get-Module-ListAvailable 模块加载位置: Powershell从PSMDULEPATH环境变量中查找模块加载的位置 $env:PSMODULEPATH 使用分割符进行分割 $env:PSModulePath-split';' 导入模块# Import-Module 导入指定名称的模块(默认从$PSMODULEPATH加载) Import-Module-NamePSWorkflow ...
The Get-Module cmdlet lists the PowerShell modules that have been imported, or that can be imported, into a PowerShell session. Without parameters, Get-Module gets modules that have been imported into the current session. The ListAvailable parameter is u
New-Module[-Name] <String> [-ScriptBlock] <ScriptBlock> [-Function <String[]>] [-Cmdlet <String[]>] [-ReturnResult] [-AsCustomObject] [-ArgumentList <Object[]>] [<CommonParameters>] 说明 New-Modulecmdlet 从脚本块创建动态模块。 动态模块的成员(如函数和变量)在会话中立即可用,在关闭会话之...
若要详细了解模块,请参阅 about_Modules。 示例3:获取隐藏的事件订阅者 此示例为 PowerShell.Exiting 事件注册事件订阅服务器。 订阅是使用 SupportEvent 参数注册的,该参数将事件订阅者从 cmdlet 的默认输出 Get-EventSubscriber 中隐藏。 必须使用 Force 参数来获取所有事件订阅者,包括隐藏的订阅者。 PowerShell 复...
Exchange Online PowerShell v1 and v2 modules Any newer version of Exchange Online PowerShell module with the-UseRPSSessionparameter To switch to the v3 module and use REST cmdlets, take the following steps: If you are using New-PSSession to establish an RPS connection: ...
If the cmdlet isn't loaded, PowerShell searches the installed modules and autoloads the first module that contains the cmdlet and runs that cmdlet. PowerShell searches for modules in each path defined in the $env:PSModulePath environment variable. The paths are searched in the order that they...