Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VerbsCommon Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the common verb names that can be used to name cmdlets, such as the verbs Get and Set.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.VerbsCommon

public static class VerbsCommon

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticAdd

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.

System_CAPS_pubfieldSystem_CAPS_staticClear

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.

System_CAPS_pubfieldSystem_CAPS_staticClose

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.

System_CAPS_pubfieldSystem_CAPS_staticCopy

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.

System_CAPS_pubfieldSystem_CAPS_staticEnter

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.

System_CAPS_pubfieldSystem_CAPS_staticExit

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.

System_CAPS_pubfieldSystem_CAPS_staticFind

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.

System_CAPS_pubfieldSystem_CAPS_staticFormat

Specifies an action that arranges objects in a specified form or layout. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticGet

Specifies an action that retrieves a resource. For example, the Get-Content cmdlet retrieves contents of items at a specified location.

System_CAPS_pubfieldSystem_CAPS_staticHide

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.

System_CAPS_pubfieldSystem_CAPS_staticJoin

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.

System_CAPS_pubfieldSystem_CAPS_staticLock

Specifies an action that secures a resource. Introduced in Windows PowerShell 3.0.

System_CAPS_pubfieldSystem_CAPS_staticMove

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.

System_CAPS_pubfieldSystem_CAPS_staticNew

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).

System_CAPS_pubfieldSystem_CAPS_staticOpen

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.

System_CAPS_pubfieldSystem_CAPS_staticOptimize

Increases the effectiveness of a resource.

System_CAPS_pubfieldSystem_CAPS_staticPop

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.

System_CAPS_pubfieldSystem_CAPS_staticPush

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.

System_CAPS_pubfieldSystem_CAPS_staticRedo

Specifies an action that resets a resource to the state that was undone. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticRemove

Specifies an action that deletes a resource from a container. For example, the Remove-Variable cmdlet deletes variables from the current session.

System_CAPS_pubfieldSystem_CAPS_staticRename

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.

System_CAPS_pubfieldSystem_CAPS_staticReset

Specifies an action that sets a resource back to its original state. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticResize

Changes the size of a resource. Introduced in Windows PowerShell 3.0.

System_CAPS_pubfieldSystem_CAPS_staticSearch

Specifies an action that creates a reference to a resource in a container. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticSelect

Specifies an action that locates a resource in a container. For example, the Select-String cmdlet finds text in strings and files.

System_CAPS_pubfieldSystem_CAPS_staticSet

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.)

System_CAPS_pubfieldSystem_CAPS_staticShow

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.

System_CAPS_pubfieldSystem_CAPS_staticSkip

Specifies an action that bypasses one or more resources or points in a sequence. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticSplit

Specifies an action that separates parts of a resource. For example, the Split-Path cmdlet returns different parts of a path.

System_CAPS_pubfieldSystem_CAPS_staticStep

Specifies an action that moves to the next point or resource in a sequence. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticSwitch

Specifies an action that alternates between two resources, such as to change between two locations, responsibilities, or states.

System_CAPS_pubfieldSystem_CAPS_staticUndo

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.

System_CAPS_pubfieldSystem_CAPS_staticUnlock

Specifies an action that releases a resource that was locked.

System_CAPS_pubfieldSystem_CAPS_staticWatch

Specifies an action that continually inspects or monitors a resource for changes. This field is introduced in Windows PowerShell 2.0.

The verb portion of a cmdlet name specifies the action that is taken by the cmdlet and is specified by the Cmdlet attribute. For more information about the declaration syntax used to specify the Cmdlet attribute, see Cmdlet Attribute Declaration.

For more information about the guidelines for selecting verb names, see Approved Verbs for Windows PowerShell Commands.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show: