Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Re: VMware remote console causing powershell scripts to terminate?

Reply
 
Old 03-11-2008   #1 (permalink)
Maximilian Hänel


 
 

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

My System SpecsSystem Spec
Old 03-11-2008   #2 (permalink)
blah


 
 

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
My System SpecsSystem Spec
Old 03-11-2008   #3 (permalink)
blah


 
 

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
My System SpecsSystem Spec
Old 03-11-2008   #4 (permalink)
Maximilian Hänel


 
 

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
My System SpecsSystem Spec
Old 03-11-2008   #5 (permalink)
Hal Rottenberg


 
 

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)
My System SpecsSystem Spec
Old 03-11-2008   #6 (permalink)
Maximilian Hänel


 
 

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
My System SpecsSystem Spec
Old 03-11-2008   #7 (permalink)
blah


 
 

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
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
run .cmd scripts on remote machine (automating the MOSS install via scripts) PowerShell
In Powershell execute scripts on many remote machines ,Monitor and report back General Discussion
Re: VMWare scripts VB Script
Powershell scripts not working with Vista powershell PowerShell
Powershell does not terminate when started VBSCRIPT PowerShell


Vista Forums 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 Ltd

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