至少在一些PowerShell v2 ctp中,有一个名为“push runspace”的cmdlet(我听说)允许您获得运行远程PowerShell的本地窗口。但是,此cmdlet和所有的*-运行空间cmdlet都不在PowerShell v2中。我唯一能看到的关于这种功能的介绍是:
PS> $host
Name : ConsoleHost
Version : 2.0
InstanceId : 054f6547-8729-417f-a560-bf046fbadc65
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
IsRunspacePushed
财产。从这一点出发,我认为这类事情仍然是可能的,但我该如何着手去做呢?