Specifies an action that allows the user to move into a resource. For example, the Copy-Item cmdlet copies an item (such as a file) from one location in the data store to another location. This verb is paired with Open.Ĭopies a resource to another name or to another container. For example, the Clear-Content cmdlet removes the contents of a file but does not delete the file.įlush, Erase, Release, Unmark, Unset, NullifyĬhanges the state of a resource to make it inaccessible, unavailable, or unusable. ![]() Removes all the resources from a container but does not delete the container. For example, the Add-Content cmdlet adds content to a file. Verb (alias)Īdds a resource to a container, or attaches an item to another item. Use the Start verb to begin asynchronous operations, such as starting an autonomousĮnumeration class to define generic actions that can apply to almost any cmdlet. Use the Invoke verb to perform synchronous operations, such as running a command and waiting for Use the Read verb to open a resource and extract With which you can access the resource in future. Use the Get verb to obtain information about a resource (such as a file) or to obtain an object Use the Search verb to create a reference to a resource Optionally creating it if it does not exist, such as the Set-Variable cmdlet. ![]() Use the Set verb to modify an existing resource, Use the New verb to create a new resource. For example, Add-Content adds output to an existing file. Use the Add to add something to an existing container The following similar verbs represent different actions. You may get a complete list of verbs using the Get-Verb cmdlet. Use these verbs under exceptional circumstances. The PowerShell language and a rare few cmdlets Do not use the following reserved verbs or aliases.Use only the form of each verb that is listed in this topic.For example, always use Remove, never use Delete or Do not use a synonym of an approved verb.Use the verb to describe the general scope of the action, and use parameters to further refine the. ![]() Use one of the predefined verb names provided by PowerShell.The following recommendations help you choose an appropriate verb for your cmdlet, to ensureĬonsistency between the cmdlets that you create, the cmdlets that are provided by PowerShell, and Need not be respected for command aliases mimicking well known commands from other environments. This is a recommendation but not a rule in particular, it For example, the alias prefix for Import is ip and, accordingly, We use this alias prefix in aliasesįor commands using that verb. Name because it implies an action even though it is not a verb in the English language.Įach approved verb has a corresponding alias prefix defined. For example, the term New is a valid PowerShell verb PowerShell uses the term verb to describe a word that implies an action even if that word is notĪ standard verb in the English language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |