PowerShell Get-Module 查看PSModulePath路径中的模块#yyds干货盘点#

网友投稿 1244 2022-09-17

PowerShell Get-Module 查看PSModulePath路径中的模块#yyds干货盘点#

PowerShell Get-Module 查看PSModulePath路径中的模块#yyds干货盘点#

环境配置说明

Windows 21H1 PSVersion 5.1.19041.1320

示例

PS C:\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, Context, I... Script 1.0.0.1 PowerShellGet {Install-Module, Find... Script 2.0.0 PSReadline {Get-PSReadLineKeyHan... 目录: C:\Windows\system32\WindowsPowerShell\v1.0\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 1.0.0.0 AppBackgroundTask {Disable-AppBackgroun... Manifest 2.0.0.0 AppLocker {Get-AppLockerFileInf... Manifest 1.0.0.0 AppvClient {Add-AppvClientConnec... Manifest 2.0.1.0 Appx {Add-AppxPackage, Get... Script 1.0.0.0 AssignedAccess {Clear-AssignedAccess... Manifest 1.0.0.0 BitLocker {Unlock-BitLocker, Su... Manifest 2.0.0.0 BitsTransfer {Add-BitsFile, Comple... Manifest 1.0.0.0 BranchCache {Add-BCDataCacheExten... Manifest 1.0.0.0 CimCmdlets {Get-CimAssociatedIns... Manifest 1.0 ConfigCI {Get-SystemDriver, Ne... Manifest 1.0 ConfigDefender {Get-MpPreference, Se... Manifest 1.0 Defender {Get-MpPreference, Se... Manifest 1.0.2.0 DeliveryOptimization {Delete-DeliveryOptim... Manifest 1.0.0.0 DirectAccessClientComponents {Disable-DAManualEntr... Script 3.0 Dism {Add-AppxProvisionedP... Manifest 1.0.0.0 DnsClient {Resolve-DnsName, Cle... Manifest 1.0.0.0 EventTracingManagement {Start-EtwTraceSessio... Manifest 2.0.0.0 International {Get-WinDefaultInputM... Manifest 1.0.0.0 iSCSI {Get-IscsiTargetPorta... Script 1.0.0.0 ISE {New-IseSnippet, Impo... Manifest 1.0.0.0 Kds {Add-KdsRootKey, Get-... Manifest 1.0.1.0 Microsoft.PowerShell.Archive {Compress-Archive, Ex... Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics {Get-WinEvent, Get-Co... Manifest 3.0.0.0 Microsoft.PowerShell.Host {Start-Transcript, St... Manifest 1.0.0.0 Microsoft.PowerShell.LocalAccounts {Add-LocalGroupMember... Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-C... Script 1.0 Microsoft.PowerShell.ODataUtils Export-ODataEndpointP... Manifest 3.0.0.0 Microsoft.PowerShell.Security {Get-Acl, Set-Acl, Ge... Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Format-List, Format-... Manifest 3.0.0.0 Microsoft.WSMan.Management {Disable-WSManCredSSP... Manifest 1.0 MMAgent {Disable-MMAgent, Ena... Manifest 1.0.0.0 MsDtc {New-DtcDiagnosticTra... Manifest 2.0.0.0 NetAdapter {Disable-NetAdapter, ... Manifest 1.0.0.0 NetConnection {Get-NetConnectionPro... Manifest 1.0.0.0 NetEventPacketCapture {New-NetEventSession,... Manifest 2.0.0.0 NetLbfo {Add-NetLbfoTeamMembe... Manifest 1.0.0.0 NetNat {Get-NetNat, Get-NetN... Manifest 2.0.0.0 NetQos {Get-NetQosPolicy, Se... Manifest 2.0.0.0 NetSecurity {Get-DAPolicyChange, ... Manifest 1.0.0.0 NetSwitchTeam {New-NetSwitchTeam, R... Manifest 1.0.0.0 NetTCPIP {Get-NetIPAddress, Ge... Manifest 1.0.0.0 NetworkConnectivityStatus {Get-DAConnectionStat... Manifest 1.0.0.0 NetworkSwitchManager {Disable-NetworkSwitc... Manifest 1.0.0.0 NetworkTransition {Add-NetIPHttpsCertBi... Manifest 1.0.0.0 PcsvDevice {Get-PcsvDevice, Star... Binary 1.0.0.0 PersistentMemory {Get-PmemDisk, Get-Pm... Manifest 1.0.0.0 PKI {Add-CertificateEnrol... Manifest 1.0.0.0 PnpDevice {Get-PnpDevice, Get-P... Manifest 1.1 PrintManagement {Add-Printer, Add-Pri... Binary 1.0.12 ProcessMitigations {Get-ProcessMitigatio... Script 3.0 Provisioning {Install-Provisioning... Manifest 1.1 PSDesiredStateConfiguration {Set-DscLocalConfigur... Script 1.0.0.0 PSDiagnostics {Disable-PSTrace, Dis... Binary 1.1.0.0 PSScheduledJob {New-JobTrigger, Add-... Manifest 2.0.0.0 PSWorkflow {New-PSWorkflowExecut... Manifest 1.0.0.0 PSWorkflowUtility Invoke-AsWorkflow Manifest 1.0.0.0 ScheduledTasks {Get-ScheduledTask, S... Manifest 2.0.0.0 SecureBoot {Confirm-SecureBootUE... Manifest 2.0.0.0 SmbShare {Get-SmbShare, Remove... Manifest 2.0.0.0 SmbWitness {Get-SmbWitnessClient... Manifest 1.0.0.1 StartLayout {Export-StartLayout, ... Manifest 2.0.0.0 Storage {Add-InitiatorIdToMas... Manifest 1.0.0.0 StorageBusCache {Clear-StorageBusDisk... Manifest 2.0.0.0 TLS {New-TlsSessionTicket... Manifest 1.0.0.0 TroubleshootingPack {Get-TroubleshootingP... Manifest 2.0.0.0 TrustedPlatformModule {Get-Tpm, Initialize-... Binary 2.1.639.0 UEV {Clear-UevConfigurati... Manifest 2.0.0.0 VpnClient {Add-VpnConnection, S... Manifest 1.0.0.0 Wdac {Get-OdbcDriver, Set-... Manifest 2.0.0.0 Whea {Get-WheaMemoryPolicy... Manifest 1.0.0.0 WindowsDeveloperLicense {Get-WindowsDeveloper... Script 1.0 WindowsErrorReporting {Enable-WindowsErrorR... Manifest 1.0.0.0 WindowsSearch {Get-WindowsSearchSet... Manifest 1.0.0.0 WindowsUpdate Get-WindowsUpdateLog

参数解析 -ListAvailable

-ListAvailable Indicates that this cmdlet gets all installed modules. `Get-Module` gets m odules in paths listed in the PSModulePath environment variable. Without t his parameter, `Get-Module` gets only the modules that are both listed in the PSModulePath environment variable, and that are loaded in the current session. ListAvailable does not return information about modules that are not found in the PSModulePath environment variable, even if those modules are loaded in the current session. 是否必需? False 位置? named 默认值 False 是否接受管道输入? False 是否接受通配符? False

学习资料

PowerShell 版本 + 工具 PowerShell/PowerShell 51CTO社区

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:C# 数据操作系列 - 12 NHibernate的增删改查(重生之门)
下一篇:PowerShell Get-Member 查看对象的成员列表#yyds干货盘点#
相关文章

 发表评论

暂时没有评论,来抢沙发吧~