Chinaunix首页 | 论坛 | 博客
  • 博客访问: 921768
  • 博文数量: 74
  • 博客积分: 10001
  • 博客等级: 上将
  • 技术积分: 2609
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-04 19:54
文章存档

2015年(1)

2009年(2)

2008年(71)

我的朋友

分类: WINDOWS

2008-05-19 22:40:28

PowerShell官方的命令命名规则

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

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

例如:

PS C:Documents and SettingsAdministrator> 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.
阅读(1703) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~