您现在的位置是:网站首页> 编程资料编程资料
Windows Powershell 命令集 cmdlets_PowerShell_
2023-05-26
749人已围观
简介 Windows Powershell 命令集 cmdlets_PowerShell_
cmdlets是Powershell的内部命令,cmdlet的类型名为System.Management.Automation.CmdletInfo,包含下列属性和方法:
| Name | MemberType | Definition |
|---|---|---|
| Equals | Method | bool Equals(System.Object obj) |
| GetHashCode | Method | int GetHashCode() |
| GetType | Method | type GetType() |
| ToString | Method | string ToString() |
| CommandType | Property | System.Management.Automation.CommandTypes CommandType {get;} |
| DefaultParameterSet | Property | System.String DefaultParameterSet {get;} |
| Definition | Property | System.String Definition {get;} |
| HelpFile | Property | System.String HelpFile {get;} |
| ImplementingType | Property | System.Type ImplementingType {get;} |
| Module | Property | System.Management.Automation.PSModuleInfo Module {get;} |
| ModuleName | Property | System.String ModuleName {get;} |
| Name | Property | System.String Name {get;} |
| Noun | Property | System.String Noun {get;} |
| OutputType | Property | System.Collections.ObjectModel.ReadOnlyCollection`1[[System.Management.Automation.PSTypeName, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] OutputType {get;} |
| Parameters | Property | System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Management.Automation.ParameterMetadata, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Parameters {get;} |
| ParameterSets | Property | System.Collections.ObjectModel.ReadOnlyCollection`1[[System.Management.Automation.CommandParameterSetInfo, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] ParameterSets {get;} |
| PSSnapIn | Property | System.Management.Automation.PSSnapInInfo PSSnapIn {get;} |
| Verb | Property | System.String Verb {get;} |
| Visibility | Property | System.Management.Automation.SessionStateEntryVisibility Visibility {get;set;} |
| DLL | ScriptProperty | System.Object DLL {get=$this.ImplementingType.Assembly.Location;} |
| HelpUri | ScriptProperty | System.Object HelpUri {get=try { # ok to cast CommandTypes enum to HelpCategory because string/indentifier for # cmdlet,function,filter,alias,externalscript is identical. # it is ok to fail for other enum values (i.e. for Application) $helpObject = get-help -Name ($this.Name) -Category ([string]($this.CommandType)) -ErrorAction SilentlyContinue# return first non-null uri (and try not to hit any strict mode things) if ($helpObject -eq $null) { return $null } if ($helpObject.psobject.properties['relatedLinks'] -eq $null) { return $null } if ($helpObject.relatedLinks.psobject.properties['navigationLink'] -eq $null) { return $null } $helpUri = [string]$( $helpObject.relatedLinks.navigationLink | %{ if ($_.psobject.properties['uri'] -ne $null) { $_.uri } } | ?{ $_ } | select -first 1 ) return $helpUri } catch {};} |
下面是全部的Cmdlets命令
每个命令有一个动词和名词组成,命令的作用一目了然。
| Name | ModuleName | Help |
|---|---|---|
| Add-Computer | Microsoft.PowerShell.Management | help |
| Add-Content | Microsoft.PowerShell.Management | help |
| Add-History | Microsoft.PowerShell.Core | help |
| Add-Member | Microsoft.PowerShell.Utility | help |
| Add-PSSnapin | Microsoft.PowerShell.Core | help |
| Add-Type | Microsoft.PowerShell.Utility | help |
| Checkpoint-Computer | Microsoft.PowerShell.Management | help |
| Clear-Content | Microsoft.PowerShell.Management | help |
| Clear-EventLog | Microsoft.PowerShell.Management | help |
| Clear-History | Microsoft.PowerShell.Core | help |
| Clear-Item | Microsoft.PowerShell.Management | help |
| Clear-ItemProperty | Microsoft.PowerShell.Management | help |
| Clear-Variable | Microsoft.PowerShell.Utility | help |
| Compare-Object | Microsoft.PowerShell.Utility | help |
| Complete-Transaction | Microsoft.PowerShell.Management | help |
| Connect-WSMan | Microsoft.WSMan.Management | help |
| ConvertFrom-Csv | Microsoft.PowerShell.Utility | help |
| ConvertFrom-SecureString | Microsoft.PowerShell.Security | help |
| ConvertFrom-StringData | Microsoft.PowerShell.Utility | help |
| Convert-Path | Microsoft.PowerShell.Management | help |
| ConvertTo-Csv | Microsoft.PowerShell.Utility | help |
| ConvertTo-Html | Microsoft.PowerShell.Utility | help |
| ConvertTo-SecureString | Microsoft.PowerShell.Security | help |
| ConvertTo-Xml | Microsoft.PowerShell.Utility | help |
| Copy-Item | Microsoft.PowerShell.Management | help |
| Copy-ItemProperty | Microsoft.PowerShell.Management | help |
| Debug-Process | Microsoft.PowerShell.Management | help |
| Disable-ComputerRestore | Microsoft.PowerShell.Management | help |
| Disable-PSBreakpoint | Microsoft.PowerShell.Utility | help |
| Disable-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
| Disable-WSManCredSSP | Microsoft.WSMan.Management | help |
| Disconnect-WSMan | Microsoft.WSMan.Management | help |
| Enable-ComputerRestore | Microsoft.PowerShell.Management | help |
| Enable-PSBreakpoint | Microsoft.PowerShell.Utility | help |
| Enable-PSRemoting | Microsoft.PowerShell.Core | help |
| Enable-PSSessionConfiguration | Microsoft.PowerShell.Core | help提示:
本文由神整理自网络,如有侵权请联系本站删除!
本站声明: 1、本站所有资源均来源于互联网,不保证100%完整、不提供任何技术支持; 2、本站所发布的文章以及附件仅限用于学习和研究目的;不得将用于商业或者非法用途;否则由此产生的法律后果,本站概不负责!
相关内容
点击排行本栏推荐
|
