- 帖子
- 2874
- 积分
- 7021
- 技术
- 336
- 捐助
- 0
- 注册时间
- 2011-6-2
|
Cmdlet Verb Name 中介绍了一些常用动词以及试用的环境, 大家在编写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.
|
http://blog.chinaunix.net/uid-9781829-id-1997905.html |
|