Databases Reference
In-Depth Information
WsMan.Management
The namespace of the WsMAN.Management snap-in is Microsoft.WsMan.Management. This snap-in
contains cmdlets related to WsMan.
You can find all the cmdlets available in the namespace Microsoft.WsMan.Management using the follow-
ing cmdlet, shown in Figure 2-23:
Get-Command -commandtype cmdlet | Where-Object {$_.PSSnapin -match
"WsMan.Management"}
Figure 2-23
cmdlets related to WsManagement are very new and currently there is little documentation for Power-
Shell 2.0 CTP3. This should change, however, after its official release. Such documentation, when it
becomes available, will help you understand more about each of the cmdlets and enable you to explore
their functionality and usage.
PowerShell cmdlet Syntax
As stated earlier in this chapter, cmdlets are constructed in verb-noun format. The verb specifies the action
to be performed and the noun specifies the object being operated on. Recall that the noun is always
singular, even if it retrieves or acts on multiple objects or data.
Two examples are the cmdlet Get-process and Write-host .
Most cmdlets accept parameters. All parameters names are prefixed with a hyphen, and all the parameter
values are prefixed with a blank space after the parameter name. There are two types of parameters:
named parameters and positional parameters .
Named Parameter
This is the easiest and most common way to use parameters. Basically, you specify the name of the
parameter followed by its value — for example, Get-Process -Name smss :
Get-Process -Name smss
Search WWH ::




Custom Search