Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Invoke-Item

Invoke-Item - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Performs the default action on the specified item.

Invoke-Item [-LiteralPath] <string[]> [-Credential <PSCredential>] [-Exclude <string[]>] [-Filter <string>] [-Inclu
de <string[]>] [-Confirm] [-WhatIf] [-UseTransaction] [<CommonParameters>]

Invoke-Item [-Path] <string[]> [-Credential <PSCredential>] [-Exclude <string[]>] [-Filter <string>] [-Include <str
ing[]>] [-Confirm] [-WhatIf] [-UseTransaction] [<CommonParameters>]

The Invoke-Item cmdlet performs the default action on the specified item. For example, it runs an executable file o
r opens a document file in the application associated with the document file type. The default action depends on th
e type of item and is determined by the Windows PowerShell provider that provides access to the data.