How do I get PowerShell to run the original Start-Process cmdlet rather than the PSCX Start-Process cmdlet?

I have PowerShell v2.0 installed and, in addition, PSCX installed. PSCX is a PowerShell community extension ( http://pscx.codeplex.com/Wikipage ).

It seems that I have two cmdlets called Start-Process, and I assume that one of them is original and the other from PSCX. When I call Start-Process, the PSCX cmdlet starts. How to get PowerShell to run the original version instead?

Useful evidence:

When I run get-help start-process, I get:

Name                              Category  Synopsis
----                              --------  --------
Start-Process                     Cmdlet    PSCX Cmdlet: Starts a new process.
Start-Process                     Cmdlet    Starts one or more processes on the local computer.

When I run get-command start-process, I get:

CommandType     Name                                                          Definition
-----------     ----                                                          ----------
Cmdlet          Start-Process                                                 Start-Process [[-Path] <String>] [[-Arguments] <String>] [...
+3
source share
2 answers

(- PSCX 2.0), Pscx.Deprecated, PSCX, PowerShell: Start-Process, Select- Xml Get-Random. , PSCX 2.0 Beta - xcopy, :

  • Pscx-2.0-Beta2.zip
  • Windows. "", . .
  • ( ) ~\WindowsPowerShell\Modules
  • - Pscx

. " PowerShell Here" Windows, Enable-OpenPowerShellHere.

+4

:

new-alias start-pscxprocess pscx\start-process 
new-alias start-msprocess microsoft.powershell.management\start-process  
+3

Source: https://habr.com/ru/post/1739482/


All Articles