September 4th, 2014

PowerTip: Use Complete Name for PowerShell Cmdlet

Doctor Scripto
Scripter

Summary: Use the complete name for a Windows PowerShell cmdlet.

Hey, Scripting Guy! Question How can I ensure that I use the correct cmdlet in my Windows PowerShell session if I think
            there might be more than one with the same name?

Hey, Scripting Guy! Answer Use the complete name of the cmdlet—this includes the module name and the cmdlet name.
           Here is an example of using the standard Get-Process cmdlet:

Microsoft.PowerShell.Management\get-process

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.