Windows Powershell 命令集 cmdlets
程序员文章站
2022-11-15 18:53:29
cmdlets是powershell的内部命令,cmdlet的类型名为system.management.automation.cmdletinfo,包含下列属性和方法:...
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 |
enable-wsmancredssp | microsoft.wsman.management | help |
enter-pssession | microsoft.powershell.core | help |
exit-pssession | microsoft.powershell.core | help |
export-alias | microsoft.powershell.utility | help |
export-clixml | microsoft.powershell.utility | help |
export-console | microsoft.powershell.core | help |
export-counter | microsoft.powershell.diagnostics | help |
export-csv | microsoft.powershell.utility | help |
export-formatdata | microsoft.powershell.utility | help |
export-modulemember | microsoft.powershell.core | help |
export-pssession | microsoft.powershell.utility | help |
foreach-object | microsoft.powershell.core | help |
format-custom | microsoft.powershell.utility | help |
format-list | microsoft.powershell.utility | help |
format-table | microsoft.powershell.utility | help |
format-wide | microsoft.powershell.utility | help |
get-acl | microsoft.powershell.security | help |
get-alias | microsoft.powershell.utility | help |
get-authenticodesignature | microsoft.powershell.security | help |
get-childitem | microsoft.powershell.management | help |
get-command | microsoft.powershell.core | help |
get-computerrestorepoint | microsoft.powershell.management | help |
get-content | microsoft.powershell.management | help |
get-counter | microsoft.powershell.diagnostics | help |
get-credential | microsoft.powershell.security | help |
get-culture | microsoft.powershell.utility | help |
get-date | microsoft.powershell.utility | help |
get-event | microsoft.powershell.utility | help |
get-eventlog | microsoft.powershell.management | help |
get-eventsubscriber | microsoft.powershell.utility | help |
get-executionpolicy | microsoft.powershell.security | help |
get-formatdata | microsoft.powershell.utility | help |
get-help | microsoft.powershell.core | help |
get-history | microsoft.powershell.core | help |
get-host | microsoft.powershell.utility | help |
get-hotfix | microsoft.powershell.management | help |
get-item | microsoft.powershell.management | help |
get-itemproperty | microsoft.powershell.management | help |
get-job | microsoft.powershell.core | help |
get-location | microsoft.powershell.management | help |
get-member | microsoft.powershell.utility | help |
get-module | microsoft.powershell.core | help |
get-pfxcertificate | microsoft.powershell.security | help |
get-process | microsoft.powershell.management | help |
get-psbreakpoint | microsoft.powershell.utility | help |
get-pscallstack | microsoft.powershell.utility | help |
get-psdrive | microsoft.powershell.management | help |
get-psprovider | microsoft.powershell.management | help |
get-pssession | microsoft.powershell.core | help |
get-pssessionconfiguration | microsoft.powershell.core | help |
get-pssnapin | microsoft.powershell.core | help |
get-random | microsoft.powershell.utility | help |
get-service | microsoft.powershell.management | help |
get-tracesource | microsoft.powershell.utility | help |
get-transaction | microsoft.powershell.management | help |
get-uiculture | microsoft.powershell.utility | help |
get-unique | microsoft.powershell.utility | help |
get-variable | microsoft.powershell.utility | help |
get-winevent | microsoft.powershell.diagnostics | help |
get-wmiobject | microsoft.powershell.management | help |
get-wsmancredssp | microsoft.wsman.management | help |
get-wsmaninstance | microsoft.wsman.management | help |
group-object | microsoft.powershell.utility | help |
import-alias | microsoft.powershell.utility | help |
import-clixml | microsoft.powershell.utility | help |
import-counter | microsoft.powershell.diagnostics | help |
import-csv | microsoft.powershell.utility | help |
import-localizeddata | microsoft.powershell.utility | help |
import-module | microsoft.powershell.core | help |
import-pssession | microsoft.powershell.utility | help |
invoke-command | microsoft.powershell.core | help |
invoke-expression | microsoft.powershell.utility | help |
invoke-history | microsoft.powershell.core | help |
invoke-item | microsoft.powershell.management | help |
invoke-wmimethod | microsoft.powershell.management | help |
invoke-wsmanaction | microsoft.wsman.management | help |
join-path | microsoft.powershell.management | help |
limit-eventlog | microsoft.powershell.management | help |
measure-command | microsoft.powershell.utility | help |
measure-object | microsoft.powershell.utility | help |
move-item | microsoft.powershell.management | help |
move-itemproperty | microsoft.powershell.management | help |
new-alias | microsoft.powershell.utility | help |
new-event | microsoft.powershell.utility | help |
new-eventlog | microsoft.powershell.management | help |
new-item | microsoft.powershell.management | help |
new-itemproperty | microsoft.powershell.management | help |
new-module | microsoft.powershell.core | help |
new-modulemanifest | microsoft.powershell.core | help |
new-object | microsoft.powershell.utility | help |
new-psdrive | microsoft.powershell.management | help |
new-pssession | microsoft.powershell.core | help |
new-pssessionoption | microsoft.powershell.core | help |
new-service | microsoft.powershell.management | help |
new-timespan | microsoft.powershell.utility | help |
new-variable | microsoft.powershell.utility | help |
new-webserviceproxy | microsoft.powershell.management | help |
new-wsmaninstance | microsoft.wsman.management | help |
new-wsmansessionoption | microsoft.wsman.management | help |
out-default | microsoft.powershell.utility | help |
out-file | microsoft.powershell.utility | help |
out-gridview | microsoft.powershell.utility | help |
out-host | microsoft.powershell.utility | help |
out-null | microsoft.powershell.utility | help |
out-printer | microsoft.powershell.utility | help |
out-string | microsoft.powershell.utility | help |
pop-location | microsoft.powershell.management | help |
push-location | microsoft.powershell.management | help |
read-host | microsoft.powershell.utility | help |
receive-job | microsoft.powershell.core | help |
register-engineevent | microsoft.powershell.utility | help |
register-objectevent | microsoft.powershell.utility | help |
register-pssessionconfiguration | microsoft.powershell.core | help |
register-wmievent | microsoft.powershell.management | help |
remove-computer | microsoft.powershell.management | help |
remove-event | microsoft.powershell.utility | help |
remove-eventlog | microsoft.powershell.management | help |
remove-item | microsoft.powershell.management | help |
remove-itemproperty | microsoft.powershell.management | help |
remove-job | microsoft.powershell.core | help |
remove-module | microsoft.powershell.core | help |
remove-psbreakpoint | microsoft.powershell.utility | help |
remove-psdrive | microsoft.powershell.management | help |
remove-pssession | microsoft.powershell.core | help |
remove-pssnapin | microsoft.powershell.core | help |
remove-variable | microsoft.powershell.utility | help |
remove-wmiobject | microsoft.powershell.management | help |
remove-wsmaninstance | microsoft.wsman.management | help |
rename-item | microsoft.powershell.management | help |
rename-itemproperty | microsoft.powershell.management | help |
reset-computermachinepassword | microsoft.powershell.management | help |
resolve-path | microsoft.powershell.management | help |
restart-computer | microsoft.powershell.management | help |
restart-service | microsoft.powershell.management | help |
restore-computer | microsoft.powershell.management | help |
resume-service | microsoft.powershell.management | help |
select-object | microsoft.powershell.utility | help |
select-string | microsoft.powershell.utility | help |
select-xml | microsoft.powershell.utility | help |
send-mailmessage | microsoft.powershell.utility | help |
set-acl | microsoft.powershell.security | help |
set-alias | microsoft.powershell.utility | help |
set-authenticodesignature | microsoft.powershell.security | help |
set-content | microsoft.powershell.management | help |
set-date | microsoft.powershell.utility | help |
set-executionpolicy | microsoft.powershell.security | help |
set-item | microsoft.powershell.management | help |
set-itemproperty | microsoft.powershell.management | help |
set-location | microsoft.powershell.management | help |
set-psbreakpoint | microsoft.powershell.utility | help |
set-psdebug | microsoft.powershell.core | help |
set-pssessionconfiguration | microsoft.powershell.core | help |
set-service | microsoft.powershell.management | help |
set-strictmode | microsoft.powershell.core | help |
set-tracesource | microsoft.powershell.utility | help |
set-variable | microsoft.powershell.utility | help |
set-wmiinstance | microsoft.powershell.management | help |
set-wsmaninstance | microsoft.wsman.management | help |
set-wsmanquickconfig | microsoft.wsman.management | help |
show-eventlog | microsoft.powershell.management | help |
sort-object | microsoft.powershell.utility | help |
split-path | microsoft.powershell.management | help |
start-job | microsoft.powershell.core | help |
start-process | microsoft.powershell.management | help |
start-service | microsoft.powershell.management | help |
start-sleep | microsoft.powershell.utility | help |
start-transaction | microsoft.powershell.management | help |
start-transcript | microsoft.powershell.host | help |
stop-computer | microsoft.powershell.management | help |
stop-job | microsoft.powershell.core | help |
stop-process | microsoft.powershell.management | help |
stop-service | microsoft.powershell.management | help |
stop-transcript | microsoft.powershell.host | help |
suspend-service | microsoft.powershell.management | help |
tee-object | microsoft.powershell.utility | help |
test-computersecurechannel | microsoft.powershell.management | help |
test-connection | microsoft.powershell.management | help |
test-modulemanifest | microsoft.powershell.core | help |
test-path | microsoft.powershell.management | help |
test-wsman | microsoft.wsman.management | help |
trace-command | microsoft.powershell.utility | help |
undo-transaction | microsoft.powershell.management | help |
unregister-event | microsoft.powershell.utility | help |
unregister-pssessionconfiguration | microsoft.powershell.core | help |
update-formatdata | microsoft.powershell.utility | help |
update-list | microsoft.powershell.utility | help |
update-typedata | microsoft.powershell.utility | help |
use-transaction | microsoft.powershell.management | help |
wait-event | microsoft.powershell.utility | help |
wait-job | microsoft.powershell.core | help |
wait-process | microsoft.powershell.management | help |
where-object | microsoft.powershell.core | help |
write-debug | microsoft.powershell.utility | help |
write-error | microsoft.powershell.utility | help |
write-eventlog | microsoft.powershell.management | help |
write-host | microsoft.powershell.utility | help |
write-output | microsoft.powershell.utility | help |
write-progress | microsoft.powershell.utility | help |
write-verbose | microsoft.powershell.utility | help |
write-warning | microsoft.powershell.utility | help |
下一篇: 在线教男朋友谈恋爱
推荐阅读
-
Windows Server 2016-Powershell之客户端加域
-
Powershell使用WINDOWS事件日志记录程序日志
-
Windows10文件目录下添加 Shift+右键打开管理员Powershell窗口
-
python通过ssh-powershell监控windows的方法
-
PowerShell中查看当前版本、Windows版本、.NET版本信息的代码
-
PowerShell脚本中控制Windows DNS服务的方法
-
windows powershell基础
-
Windows Powershell 介绍和安装
-
Windows Powershell 命令集 cmdlets
-
Windows Powershell 管道和重定向