PowerShell官方的命令命名规则

Cmdlet Verb Name 中介绍了一些常用动词以及试用的环境, 大家在编写cmdlet, function时, 最好先进行一定了解.

命名规则可以帮助我们快速了解命令的功能, 再利用PSSnapin, 可以将不同命令划分成操作不同对象组, 以便于管理.

例如:

 

PS C : Documents and Settings Administrator >  Get - PSSnapin

Name        
:  Microsoft . PowerShell . Core
PSVersion   
:   2.0
Description 
:  This Windows PowerShell snap - in contains Windows PowerShell management cmdlets used to manage components
              of Windows PowerShell
.

Name        
:  Microsoft . PowerShell . Host
PSVersion   
:   2.0
Description 
:  This Windows PowerShell snap - in contains cmdlets used by the Windows PowerShell host .

Name        
:  Microsoft . PowerShell . Management
PSVersion   
:   2.0
Description 
:  This Windows PowerShell snap - in contains management cmdlets used to manage Windows components .

Name        
:  Microsoft . PowerShell . Security
PSVersion   
:   2.0
Description 
:  This Windows PowerShell snap - in contains cmdlets to manage Windows PowerShell security .

Name        
:  Microsoft . PowerShell . Utility
PSVersion   
:   2.0
Description 
:  This Windows PowerShell snap - in contains utility Cmdlets used to manipulate data .

Name        
:  Microsoft . PowerShell . GetEvent
PSVersion   
:   2.0
Description 
:  This PS snap - in contains get - event cmdlet used to  read  Windows event  log  data and configuration .

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值