I would like to get a powershell console via winrs but it just hangs. I can
execute PS scripts via: "winrs /r:testserver powershell.exe -nologo
-noprofile -command d:\test\test.ps1" but when I just want a console via:
"winrs /r:testserver powershell.exe", it just hangs.
Doing "winrs /r:testserver cmd.exe" works. Does anyone know how to get a
console?
Thanks in advance,
Never thought of this. This is *very* interesting. XP SP1 with PoSH v2
CTP2 and WinRM 1.1 "hang" also.
I tried doing this also: "winrs cmd.exe /c powershell.exe", but it hangs.
I'm going to try on 2008, WinRM 2.0 CTP2 with PoSH v2 CTP2 and see what
happens. It if still hangs, I'll try to ping Microsoft.
Marco
--
*Microsoft MVP - Windows Server - Admin Frameworks
https://mvp.support.microsoft.com/profile/Marco.Shaw
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com
Same thing: hangs.
WinRM issue logged:
https://connect.microsoft.com/WSMAN/feedback/ViewFeedback.aspx?FeedbackID=354703
Typo. Please use this one instead:
https://connect.microsoft.com/WSMAN/feedback/ViewFeedback.aspx?FeedbackID=354704
-Karl
I haven't tried winrs, but I once tried this with telnet. I got exactly
the same hangup. I later read somewhere that PowerShell v1.0 cannot be
run as a remote console.
I don't think you can do this.
--
David
Stardate 8503.1
Yes, I do remember this point in a slide or whatever that mentioned that
remote consoles wasn't possible with v1.
You'll need to use something like push-runspace provided with the v2 CTP2.