PowerTip: Customize PowerShell Cmdlet Names to Avoid Conflict

Doctor Scripto

Summary: Customize Windows PowerShell cmdlet names that you import from a module to avoid naming conflicts.

Hey, Scripting Guy! Question How can I easily distinguish a cmdlet that has the same name as cmdlets in other modules?

Hey, Scripting Guy! Answer When you import the module, use the –Prefix parameter, and supply custom prefix (ipmo is an alias for ImportModule):

ipmo -Prefix mred -Name pscx

0 comments

Discussion is closed.

Feedback usabilla icon