我已经安装了PSCX v2.0,除此之外,还安装了PowerShell。PSCX是PowerShell社区扩展(http://pscx.codeplex.com/Wikipage)。
我似乎已经安装了两个称为开始进程的cmdlet,我猜其中一个是原始的,另一个是来自PSCX的。当我调用启动进程时,PSCX将被设置为运行.如何使PowerShell运行原始版本?
有用的证据:
当我运行get-help start-process时,我得到:
Name Category Synopsis
---- -------- --------
Start-Process Cmdlet PSCX Cmdlet: Starts a new process.
Start-Process Cmdlet Starts one or more processes on the local computer.当我运行get-command start-process时,我得到:
CommandType Name Definition
----------- ---- ----------
Cmdlet Start-Process Start-Process [[-Path] <String>] [[-Arguments] <String>] [...发布于 2010-04-01 16:21:22
如果获取基于模块的版本(pscx2.0beta),则可以选择不导入Pscx.Deprecated模块,该模块包含与内置PowerShell cmdlet冲突的三个PSCX : Start-Process、Select和Get-PowerShell。注意,PSCX2.0Beta是一个xcopy部署,要求您只执行以下操作:
Pscx中。
就这样。如果您需要在Windows中重新启用“打开PowerShell这里”上下文菜单项,那么运行命令Enable-OpenPowerShellHere。
发布于 2010-04-01 15:48:29
我设置了这些别名:
new-alias start-pscxprocess pscx\start-process
new-alias start-msprocess microsoft.powershell.management\start-process https://stackoverflow.com/questions/2561447
复制相似问题