Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Re: VMware remote console causing powershell scripts to terminate?

Closed Thread
 
Thread Tools Display Modes
Old 03-11-2008   #1 (permalink)
Maximilian Hänel
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

Hi blah,
Quote:

> I know that this is happening when the user logs out, but
> it's happening intermittently. I'm wondering if anyone else
> has experienced the same issue?
Yes! And this is the reason why I actually dont't use powershell in
scheduled tasks. Here's my thread:

[Scheduled script prematurely exits with [PipelineStoppedException]]
http://groups.google.de/group/micros...2e193490594ea7

cu

Max
Old 03-11-2008   #2 (permalink)
blah
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

On Tue, 11 Mar 2008 Maximilian Hänel <ngSpam@xxxxxx> wrote:
Quote:

> Hi blah,
>
Quote:

>> I know that this is happening when the user logs out, but
>> it's happening intermittently. I'm wondering if anyone else
>> has experienced the same issue?
>
> Yes! And this is the reason why I actually dont't use powershell in
> scheduled tasks. Here's my thread:
>
> [Scheduled script prematurely exits with [PipelineStoppedException]]
> http://groups.google.de/group/micros...2e193490594ea7
>
Thanks Max

I now think that this is an issue with the VMware. Out
administrator is using the vmware console whereas everyone else
is using remote desktop without the same issue. I think
we will need to log a support call with VMware.

--
http://www.krustybrandinternet.com
Old 03-11-2008   #3 (permalink)
blah
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

On Tue, 11 Mar 2008 blah <nospam@xxxxxx> wrote:
Quote:

> On Tue, 11 Mar 2008 Maximilian Hänel <ngSpam@xxxxxx> wrote:
Quote:

>> Hi blah,
>>
Quote:

>>> I know that this is happening when the user logs out, but
>>> it's happening intermittently. I'm wondering if anyone else
>>> has experienced the same issue?
>>
>> Yes! And this is the reason why I actually dont't use powershell in
>> scheduled tasks. Here's my thread:
>>
>> [Scheduled script prematurely exits with [PipelineStoppedException]]
>> http://groups.google.de/group/micros...2e193490594ea7
>>
> Thanks Max
>
> I now think that this is an issue with the VMware <snip>
Actually forget that.
We've run a few further tests. It seems that the powershell scripts stop
when using remote desktop "console"
(eg Start > Run "mstsc /v:machinename /console")
(or VMware remote console)
It seems that after logging in using the console option, rather than the
default terminal is causing the powershell scripts to terminate on logout.



--
http://www.krustybrandinternet.com
Old 03-11-2008   #4 (permalink)
Maximilian Hänel
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

Hi blah,
Quote:

> I now think that this is an issue with the VMware. Out
> administrator is using the vmware console whereas everyone else
> is using remote desktop without the same issue. I think
> we will need to log a support call with VMware.
I don't think it is a problem with VMware because I have the same
problem on "real" machines by using either remote desktop or "direct"
login, too.

If someone else want to reproduce the bug, here are some instructions:

http://groups.google.de/group/micros...ded6182e329a9a

cu

Max
Old 03-11-2008   #5 (permalink)
Hal Rottenberg
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

blah wrote:
Quote:

> We've run a few further tests. It seems that the powershell scripts stop
> when using remote desktop "console"
> (eg Start > Run "mstsc /v:machinename /console")
> (or VMware remote console)
> It seems that after logging in using the console option, rather than the
> default terminal is causing the powershell scripts to terminate on logout.
Ahh...ok. Yes, that is "by design". Logging out of the local console ends the
session and all processes started during it. Ending an RDP session just
disconnects, and the session stays open unless your group policy settings cause
it to do otherwise.

If you intend for a task to stay running independent of a user's session then
you really need to run it as a scheduled task or a service. Alternately you can
use WMI to start a process remotely, that should also work.

None of this has anything to do with VMware, PowerShell, or Websphere, this is
strictly Windows stuff.

--

Hal Rottenberg
Blog: http://halr9000.com
Webmaster, Psi (http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)
Old 03-11-2008   #6 (permalink)
Maximilian Hänel
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

Hi Hal,
Quote:

> If you intend for a task to stay running independent of a user's session
> then you really need to run it as a scheduled task or a service.
Please read this thread:

[Scheduled script prematurely exits with [PipelineStoppedException]]
http://groups.google.de/group/micros...2e193490594ea7

The script stops even if it runs on a ***different*** user account!!

cu

Max
Old 03-11-2008   #7 (permalink)
blah
Guest


 

Re: VMware remote console causing powershell scripts to terminate?

On Tue, 11 Mar 2008 Maximilian Hänel <ngSpam@xxxxxx> wrote:
Quote:

> Hi Hal,
>
Quote:

>> If you intend for a task to stay running independent of a user's session
>> then you really need to run it as a scheduled task or a service.
>
> Please read this thread:
>
> [Scheduled script prematurely exits with [PipelineStoppedException]]
> http://groups.google.de/group/micros...2e193490594ea7
>
> The script stops even if it runs on a ***different*** user account!!
>
Yes, that's what's happening.
The script is running, called by Websphere MQ (which runs as a service,
under a local user). The scripts do not run as a service.
Administrator(not me) logs in using remote desktop console
Administrator logs out of remote desktop console
Scripts stop.

The problem is that there's a third party application running
and the administrator needs to log in using remote desktop
console.

I log in using the default remote desktop terminal.

But I haven't found any description of this problem on any other
forum (except max's link). I would assume that people's powershell
scripts would be failing everywhere because of this problem?


--
http://www.krustybrandinternet.com
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: VMWare scripts Allan VB Script 0 05-21-2008 08:07 PM
Powershell scripts not working with Vista powershell Ben PowerShell 20 10-10-2007 04:43 PM
Using Powershell to script VMWare Hal Rottenberg PowerShell 0 06-19-2007 05:56 PM
Powershell does not terminate when started VBSCRIPT ktmd PowerShell 1 05-14-2007 03:35 PM
Remote console Surfreg_FR PowerShell 3 10-30-2006 10:56 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50