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.

  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 Specifies an action that changes the state of a resource to make it inaccessible, unavailable, or unusable. This field is introduced in Windows PowerShell 2.0.
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 Specifies an action that looks for an object in a container that is unknown, implied, optional, or specified. This field is introduced in Windows PowerShell 2.0.
public field static Format Specifies an action that arranges objects in a specified form or layout. This field is introduced in Windows PowerShell 2.0.
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 a resource. (The Set verb can also be used when creating a resource that includes data, such as the Set-Variable cmdlet).
public field static Open Specifies an action that changes the state of a resource to make it accessible, available, or usable. This field is introduced in Windows PowerShell 2.0.
public field static Optimize Increases the effectiveness of a resource.
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 Specifies an action that sets a resource back to its original state. This field is introduced in Windows PowerShell 2.0.
public field static Resize Changes the size of a resource.
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 replaces data on an existing resource or creates a resource that contains some data. For example, the Set-Date cmdlet changes the system time on the local computer. (The New verb can also be used to create a resource.)
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 Specifies an action that bypasses one or more resources or points in a sequence. This field is introduced in Windows PowerShell 2.0.
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 Specifies an action that moves to the next point or resource in a sequence. This field is introduced in Windows PowerShell 2.0.
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-Transaction cmdlet 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 releases a resource that was locked.
public field static Watch Specifies an action that continually inspects or monitors a resource for changes. This field is introduced in Windows PowerShell 2.0.
Top

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft. All rights reserved.