因为PowerShell 的session 和你登陆的桌面不再同一个session 。
所以你的需求基本不可能,除非使用计划任务。
http://blogs.technet.com/b/heyscriptingguy/archive/2005/09/06/how-can-i-remotely-start-an-interactive-process.aspx
因为PowerShell 的session 和你登陆的桌面不再同一个session 。
所以你的需求基本不可能,除非使用计划任务。
http://blogs.technet.com/b/heyscriptingguy/archive/2005/09/06/how-can-i-remotely-start-an-interactive-process.aspx