Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to run powershell via winrs

257 views
Skip to first unread message

Frank

unread,
Jul 1, 2008, 3:25:01 PM7/1/08
to
Hi,

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,


Marco Shaw [MVP]

unread,
Jul 2, 2008, 9:01:08 AM7/2/08
to

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

Marco Shaw [MVP]

unread,
Jul 2, 2008, 10:56:31 AM7/2/08
to

> 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.

Same thing: hangs.

WinRM issue logged:
https://connect.microsoft.com/WSMAN/feedback/ViewFeedback.aspx?FeedbackID=354703

Marco Shaw [MVP]

unread,
Jul 2, 2008, 11:01:01 AM7/2/08
to

Karl Prosser[MVP]

unread,
Jul 2, 2008, 11:33:21 AM7/2/08
to
so with cmd.exe you get interactive ability right? what if you run
powershell from cmd.. i know its another step.. but then you can invoke
powershell from cmd with the initial call too. I think the /K option on
cmd.exe?

-Karl

David Trimboli

unread,
Jul 2, 2008, 2:14:25 PM7/2/08
to
Frank wrote:
> 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.

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

Marco Shaw [MVP]

unread,
Jul 14, 2008, 10:48:58 PM7/14/08
to

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.

0 new messages