PowerShell 使用通配符查找包含相关字符的命令#yyds干货盘点#

网友投稿 956 2022-09-17

PowerShell 使用通配符查找包含相关字符的命令#yyds干货盘点#

PowerShell 使用通配符查找包含相关字符的命令#yyds干货盘点#

环境配置说明

Windows 21H1 PSVersion 5.1.19041.1320

示例

PS C:\Users\admin> Get-Help *ess Name Category Module Synopsis ---- -------- ------ -------- Enter-PSHostProcess Cmdlet Microsoft.PowerShell.Core Connects to and enters into an interactive session with a local process. Exit-PSHostProcess Cmdlet Microsoft.PowerShell.Core Closes an interactive session with a local process. Write-Progress Cmdlet Microsoft.PowerShell.U... Displays a progress bar within a PowerShell command window. Debug-Process Cmdlet Microsoft.PowerShell.M... Debugs one or more processes running on the local computer. Get-Process Cmdlet Microsoft.PowerShell.M... Gets the processes that are running on the local computer or a remote compu... Start-Process Cmdlet Microsoft.PowerShell.M... Starts one or more processes on the local computer. Stop-Process Cmdlet Microsoft.PowerShell.M... Stops one or more running processes. Wait-Process Cmdlet Microsoft.PowerShell.M... Waits for the processes to be stopped before accepting more input. Get-AppvVirtualProcess Function AppvClient ... Start-AppvVirtualProcess Function AppvClient ... Set-AssignedAccess Function AssignedAccess Configures a user to launch only one app. Clear-AssignedAccess Function AssignedAccess Removes the user account from assigned access. Get-AssignedAccess Function AssignedAccess Retrieves the current configuration for assigned access. Get-DnsClientServerAddress Function DnsClient ... Set-DnsClientServerAddress Function DnsClient ... Add-NetNatExternalAddress Function NetNat ... Get-NetNatExternalAddress Function NetNat ... Remove-NetNatExternalAddress Function NetNat ... Remove-NetIPAddress Function NetTCPIP ... New-NetIPAddress Function NetTCPIP ... Set-NetIPAddress Function NetTCPIP ... Get-NetIPAddress Function NetTCPIP ... Remove-NetworkSwitchEthernetPo... Function NetworkSwitchManager ... Set-NetworkSwitchEthernetPortI... Function NetworkSwitchManager ... Get-SmbShareAccess Function SmbShare ... Revoke-SmbShareAccess Function SmbShare ... Block-SmbShareAccess Function SmbShare ... Unblock-SmbShareAccess Function SmbShare ... Grant-SmbShareAccess Function SmbShare ... Block-FileShareAccess Function Storage ... Revoke-FileShareAccess Function Storage ... Unblock-FileShareAccess Function Storage ... Grant-FileShareAccess Function Storage ... New-VpnServerAddress Function VpnClient ...

PS C:\Users\admin> Get-Command *ess* -CommandType Cmdlet CommandType Name Version Source ----------- ---- ------- ------ Cmdlet Connect-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet ConvertTo-ProcessMitigationPolicy 1.0.12 ProcessMitigations Cmdlet Debug-Process 3.1.0.0 Microsoft.PowerShell.Management Cmdlet Disable-PSSessionConfiguration 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Disable-TlsSessionTicketKey 2.0.0.0 TLS Cmdlet Disconnect-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Enable-PSSessionConfiguration 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Enable-TlsSessionTicketKey 2.0.0.0 TLS Cmdlet Enter-PSHostProcess 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Enter-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Exit-PSHostProcess 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Exit-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Export-PSSession 3.1.0.0 Microsoft.PowerShell.Utility Cmdlet Export-TlsSessionTicketKey 2.0.0.0 TLS Cmdlet Get-CimSession 1.0.0.0 CimCmdlets Cmdlet Get-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security Cmdlet Get-Process 3.1.0.0 Microsoft.PowerShell.Management Cmdlet Get-ProcessMitigation 1.0.12 ProcessMitigations Cmdlet Get-PSHostProcessInfo 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Get-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Get-PSSessionCapability 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Get-PSSessionConfiguration 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Import-PSSession 3.1.0.0 Microsoft.PowerShell.Utility Cmdlet Invoke-Expression 3.1.0.0 Microsoft.PowerShell.Utility Cmdlet New-CimSession 1.0.0.0 CimCmdlets Cmdlet New-CimSessionOption 1.0.0.0 CimCmdlets Cmdlet New-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet New-PSSessionConfigurationFile 3.0.0.0 Microsoft.PowerShell.Core Cmdlet New-PSSessionOption 3.0.0.0 Microsoft.PowerShell.Core Cmdlet New-TlsSessionTicketKey 2.0.0.0 TLS Cmdlet New-WSManSessionOption 3.0.0.0 Microsoft.WSMan.Management Cmdlet Protect-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security Cmdlet Receive-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Register-PSSessionConfiguration 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Remove-CimSession 1.0.0.0 CimCmdlets Cmdlet Remove-PSSession 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Resume-ProvisioningSession 3.0 Provisioning Cmdlet Send-MailMessage 3.1.0.0 Microsoft.PowerShell.Utility Cmdlet Set-ProcessMitigation 1.0.12 ProcessMitigations Cmdlet Set-PSSessionConfiguration 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Start-Process 3.1.0.0 Microsoft.PowerShell.Management Cmdlet Stop-Process 3.1.0.0 Microsoft.PowerShell.Management Cmdlet Test-PSSessionConfigurationFile 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Unprotect-CmsMessage 3.0.0.0 Microsoft.PowerShell.Security Cmdlet Unregister-PSSessionConfiguration 3.0.0.0 Microsoft.PowerShell.Core Cmdlet Wait-Process 3.1.0.0 Microsoft.PowerShell.Management Cmdlet Write-Progress 3.1.0.0 Microsoft.PowerShell.Utility

通配符属于正则表达式中的内容,十分好用,建议专门拿出时间来学习。

学习资料

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

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

上一篇:python 基本类型,运算,循环(python中布尔类型的值是)
下一篇:PowerShell get-verb 查看powershell的动词体系#yyds干货盘点#
相关文章

 发表评论

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