Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
terminal services/ console session
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
seanact  
View profile  
 More options Jan 6 2003, 11:27 am
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: sean.do...@acterna.com (seanact)
Date: 6 Jan 2003 08:27:20 -0800
Local: Mon, Jan 6 2003 11:27 am
Subject: terminal services/ console session
Is there any way that Microsoft Terminal Services can be used like PC
anywhere- that is, to remotely administer a computer at another
location?

I know I can get close to this with normal Terminal Services
operation, but the problem I'm having is this:

I am running a Windows NT service that automatically restarts a
program when the service recognizes that the program has terminated.
Unfortunately, the service always starts the program up in the console
session, which can't be remotely controlled or monitored through
terminal services. Is there any way to remotely control the console
session, or to make the service start up a terminal services session
first and then launch the program in that context?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxim S. Shatskih  
View profile  
 More options Jan 6 2003, 10:11 pm
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: "Maxim S. Shatskih" <ma...@storagecraft.com>
Date: Tue, 7 Jan 2003 03:44:00 +0300
Subject: Re: terminal services/ console session

> Is there any way that Microsoft Terminal Services can be used like
PC
> anywhere- that is, to remotely administer a computer at another
> location?

Yes.

> Unfortunately, the service always starts the program up in the
console
> session

Kill the service and start the program manually on the terminal you
use.
You have a very strange design. If you want some running code to be
controllable from many user desktops - then write a service.

    Max


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seanact  
View profile  
 More options Jan 9 2003, 8:59 am
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: sean.do...@acterna.com (seanact)
Date: 9 Jan 2003 05:59:44 -0800
Local: Thurs, Jan 9 2003 8:59 am
Subject: Re: terminal services/ console session
"Maxim S. Shatskih" <ma...@storagecraft.com> wrote in message <news:avdghb$14n5$6@gavrilo.mtu.ru>...

This would defeat the purpose. I want the program to be started up
automatically whenever it isn't running, even if no one is logged into
the server. This program itself is not a service (and cannot be made
into one), but I want it to behave like one. To accomplish this, we
wrote a "wrapper" service, which does nothing but start the program
when the wrapper finds that the program is not running.

> You have a very strange design. If you want some running code to be
> controllable from many user desktops - then write a service.

Perhaps the design is strange, but I can't think of an alternative. As
I said, I can't make the program itself into a service. All I want to
do is have this program start automatically upon reboot, and then be
able to administer the running of the program remotely with Terminal
Services if the program runs into problems. This is easy with PC
Anywhere. Can I do it with Terminal Services?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maxim S. Shatskih  
View profile  
 More options Jan 12 2003, 6:39 pm
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: "Maxim S. Shatskih" <ma...@storagecraft.com>
Date: Mon, 13 Jan 2003 01:55:33 +0300
Local: Sun, Jan 12 2003 5:55 pm
Subject: Re: terminal services/ console session

> able to administer the running of the program remotely with Terminal
> Services if the program runs into problems. This is easy with PC

Sorry, you have added a fake service like SVCANY which will run your
app in the service context. OK. Then forget about any chances of
seeing its UI - it runs on invisible "service desktop" - TS or no TS.

Write a proper service and control it, say, via COM. Often, things
must be done properly - or cannot be done at all.

In NT, service (or SVCANY-like fake) is the only way of running the
user-mode process in the absense of the logged on interactive user. In
this case, you will not have any access to its UI.

Well, OK, you can cheat NT, switch the desktop and show the visible UI
from a service - but it is a bad way, and bad in security terms
primarily. Microsoft-supplied services never do this.

    Max


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seanact  
View profile  
 More options Jan 17 2003, 10:10 am
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: sean.do...@acterna.com (seanact)
Date: 17 Jan 2003 07:10:26 -0800
Local: Fri, Jan 17 2003 10:10 am
Subject: Re: terminal services/ console session
"Maxim S. Shatskih" <ma...@storagecraft.com> wrote in message <news:avsuc0$1eat$10@gavrilo.mtu.ru>...

Well, I do get to see the application's UI in the console session, and
I do get to see the application's UI when I use PC Anywhere. I'm not
sure what you mean by "invisible service desktop"- the console session
is not invisible, and it displays the UI the way I want it to. I just
can't see it remotely in a Terminal Services session.

> Well, OK, you can cheat NT, switch the desktop and show the visible UI
> from a service - but it is a bad way, and bad in security terms
> primarily. Microsoft-supplied services never do this.

How can I do this? I know that it is "bad", and that Microsoft
services don't do this, but it might be my only option in the short
term. Writing a "proper service and controlling it through COM" isn't
something I can do given my current time constraints. Any help you can
provide would be appreciated.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ziv Caspi  
View profile  
 More options Jan 18 2003, 3:34 pm
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
From: zi...@netvision.net.il (Ziv Caspi)
Date: Sat, 18 Jan 2003 20:34:19 GMT
Local: Sat, Jan 18 2003 3:34 pm
Subject: Re: terminal services/ console session
On 6 Jan 2003 08:27:20 -0800, sean.do...@acterna.com (seanact) wrote:

>Is there any way to remotely control the console
>session, or to make the service start up a terminal services session
>first and then launch the program in that context?

Am I missing something? Does not "mstsc /console /v:my-server" do what
you want?

Ziv


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »