VerbsCommon Members

Defines the common verb names that can be used to name cmdlets, such as the verbs “get” and “set”.

The following tables list the members exposed by the VerbsCommon type.

Public Fields

  Name Description
public field static Add Specifies an action that adds a resource to a container, or attaches an item to another item. For example, the Add-Content cmdlet adds content to a file.
public field static Clear Specifies an action that removes all resources from a container, but does not delete the container. For example, the Clear-Content cmdlet removes the contents of a file, but does not delete the file.
public field static Close  
public field static Copy Specifies an action that copies a resource to another name or to another container. For example, the Copy-Item cmdlet that is used to access stored data, copies an item from one location in the data store to another location.
public field static Enter Specifies an action that allows the user to move into a resource. For example, the Enter-PsSession cmdlet allows the user to move into an interactive session with a remote computer. This field is introduced in Windows PowerShell 2.0.
public field static Exit Specifies an action that allows the user to move out of a resource. For example, the Exit-PsSession cmdlet allows the user to move out of an interactive session with a remote computer. This field is introduced in Windows PowerShell 2.0.
public field static Find  
public field static Format  
public field static Get Specifies an action that retrieves a resource. For example, the Get-Content cmdlet retrieves contents of items at a specified location.
public field static Hide Specifies an action that makes a resource undetectable, such as concealing a service from a user. This field is introduced in Windows PowerShell 2.0.
public field static Join Specifies an action that combines resources into one resource. For example, the Join-Path cmdlet combines a path with a child path to create a single path.
public field static Lock Specifies an action that secures a resource.
public field static Move Specifies an action that moves a resource from one location to another. For example, the Move-Item cmdlet moves an item from one location to another.
public field static New Specifies an action that creates an empty resource that is not associated with any content. (If it does not make sense to create the resource without providing initial data, use the verb Set instead).
public field static Open  
public field static Pop Specifies an action that removes a resource from the top of a stack. For example, the Pop-Location cmdlet changes the current location to the location most recently pushed onto the stack. This field is introduced in Windows PowerShell 2.0.
public field static Push Specifies an action places a resource on the top of a stack of data. For example, the Push-Location cmdlet pushes the current location onto a stack. This field is introduced in Windows PowerShell 2.0.
public field static Redo Specifies an action that resets a resource to the state that was undone. This field is introduced in Windows PowerShell 2.0.
public field static Remove Specifies an action that deletes a resource from a container. For example, the Remove-Variable cmdlet deletes variables from the current session.
public field static Rename Specifies an action that changes the name of a resource. For example, the Rename-Item provider cmdlet changes the name of an item in a data store.
public field static Reset  
public field static Search Specifies an action that creates a reference to a resource in a container. This field is introduced in Windows PowerShell 2.0.
public field static Select Specifies an action that locates a resource in a container. For example, the Select-String cmdlet finds text in strings and files.
public field static Set Specifies an action that creates a resource that contains some data, or adds data to an existing resource. (Use this verb if it makes no sense to create the resource without attaching data. To create the resource without attaching content use New.) For example, the Set-Date cmdlet changes the system time on the local computer.
public field static Show Specifies an action that makes a resource visible to the user. For example, the Show-EventLog cmdlet displays the event logs of the local or a remote computer. This field is introduced in Windows PowerShell 2.0.
public field static Skip  
public field static Split Specifies an action that separates parts of a resource. For example, the Split-Path cmdlet returns different parts of a path.
public field static Step  
public field static Switch Specifies an action that alternates between two resources, such as to change between two locations, responsibilities, or states.
public field static Undo Specifies an action that sets a resource to its previous state before an action was performed. For example, the Undo-Transactioncmdlet rolls back the changes made in the transaction. This field is introduced in Windows PowerShell 2.0.
public field static Unlock Specifies an action that release a resource that was locked.
public field static Watch  
Top
Public Methods

(see also Protected Methods )
  Name Description
public methodEquals  Overloaded. (Inherited from Object )
public methodGetHashCode  (Inherited from Object )
public methodGetType  (Inherited from Object )
public methodstaticReferenceEquals  (Inherited from Object )
public methodToString  (Inherited from Object )
Top
Protected Methods

  Name Description
protected method Finalize  (Inherited from Object )
protected method MemberwiseClone  (Inherited from Object )
Top
See Also

Send comments about this topic to Microsoft.
Page view tracker