You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取已安装的PowerShell Gallery包中的可调用函数列表?

查看PowerShell模块的可用函数及功能
  • 先确保模块已导入(部分模块安装后不会自动加载):

    Import-Module ModuleName
    
  • 查看模块的基础信息(版本、安装路径等):

    Get-Module ModuleName
    
  • 列出该模块提供的所有可调用命令(包含函数、Cmdlet、别名等):

    Get-Command -Module ModuleName
    
  • 只筛选出模块中的可用函数:

    Get-Command -Module ModuleName -CommandType Function
    
  • 查看某个函数的详细用法(参数、示例等):

    # 查看基础用法
    Get-Help 目标函数名 -Detailed
    # 查看完整文档(含示例和备注)
    Get-Help 目标函数名 -Full
    
  • 查看模块导出的所有成员(含变量、别名、函数等):

    Get-Module ModuleName | Select-Object -ExpandProperty ExportedCommands
    # 或者查看所有导出项的概览
    Get-Module ModuleName | Select-Object Exported*
    

内容的提问来源于stack exchange,提问作者Dan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 05:12:31