Ask a Question related to ASP.NET General, Design and Development.
-
Bill Priess #1
Re: Restart service - Terminal Services
Interesting question... the answer is maybe... .NET, in general, has the
ability to interact with services, provided that Identity Impersonation is
turned on and using an account that has administrator rights to the server.
Using this knowledge, you could stop and restart the TS Service from
ASP.NET. The other thing you could do is to stop and start the process from
the System.Diagnostics namespace.
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskcreatingservicecontrollercomponentinstances.a sp[/url]
HTH,
Bill Priess
eCircle Software, LLC
"Justin Rich" <jrich@fhs.k12.nh.us.SPAM> wrote in message
news:%2301Zu%23yODHA.3236@TK2MSFTNGP10.phx.gbl...and> Since i have my server in a remote location i cant ever be at the keys.
> Every now and then i will get disconnected twice from terminal servicesseem> will be locked out. This is a pain to deal with because they dont ever> to time out.
> Is there a way i can write an ASP page that will allow me to kick the
> disconnected sessions off or a way to just restart the terminal service so
> that it removes those sessions?
>
> Thanks
> Justin
>
>
Bill Priess Guest
-
Restart CF Services
What would cause CF services to need to be restarted? Today ColdFusion services were taking up 99% and 49% of each of our two servers CPU cycles. ... -
terminal services
i have installed terminal services on my network and i don't seem to be issuing any licenses other than the temporary ones is this the norm or... -
Cannot connect to Terminal Server via Terminal Services Manager after upgrade to Windows Server 2003
The following error is displayed in the Terminal Services Manager on our domain controller (DC-01) when trying to connect to Terminal Services on... -
more than 2 terminal services on SBS 2K3?
I have heard that you can setup more than 2 terminal services clients with SBS by downloading some software from MS? Is this true? This should... -
XP and Terminal Services
I have a Win2000 laptop that I use to access a remote server via Terminal Services Client. When I try to access the same server, also through TSC... -
David Browne #2
Re: Restart service - Terminal Services
"Justin Rich" <jrich@fhs.k12.nh.us.SPAM> wrote in message
news:%2301Zu%23yODHA.3236@TK2MSFTNGP10.phx.gbl...and> Since i have my server in a remote location i cant ever be at the keys.
> Every now and then i will get disconnected twice from terminal servicesseem> will be locked out. This is a pain to deal with because they dont evertsdiscon.exe will do this> to time out.
> Is there a way i can write an ASP page that will allow me to kick the
> disconnected sessions off or a way to just restart the terminal service so
> that it removes those sessions?
>
RUN
tsdiscon 1 /SERVER:MYSERVER
tsdiscon 2 /SERVER:MYSERVER
To kick disconnect sessions 1 and 2. Be careful on XP you can disconnect
your own session.
David
David Browne Guest
-
Justin Rich #3
Re: Restart service - Terminal Services
Other then i cant list them (guess i dont need to) that works great..
I will just enable telnet server.. and use that...
the other day i ran in to a bit of a deadlock..
i managed to screw up IIS which stopped all ASP scripts.. and i couldnt fix
it.. cuz i couldnt use terminal server...
so i think telnet will be my backup option..
Thanks
Justin
"David Browne" <davidbaxterbrowne no potted [email]meat@hotmail.com[/email]> wrote in
message news:ehnXcFzODHA.4024@tk2msftngp13.phx.gbl...so>
> "Justin Rich" <jrich@fhs.k12.nh.us.SPAM> wrote in message
> news:%2301Zu%23yODHA.3236@TK2MSFTNGP10.phx.gbl...> and> > Since i have my server in a remote location i cant ever be at the keys.
> > Every now and then i will get disconnected twice from terminal services> seem> > will be locked out. This is a pain to deal with because they dont ever> > to time out.
> > Is there a way i can write an ASP page that will allow me to kick the
> > disconnected sessions off or a way to just restart the terminal service>> > that it removes those sessions?
> >
> tsdiscon.exe will do this
>
> RUN
> tsdiscon 1 /SERVER:MYSERVER
> tsdiscon 2 /SERVER:MYSERVER
>
> To kick disconnect sessions 1 and 2. Be careful on XP you can disconnect
> your own session.
>
> David
>
>
Justin Rich Guest
-
David Browne #4
Re: Restart service - Terminal Services
"Justin Rich" <jrich@fhs.k12.nh.us.SPAM> wrote in message
news:ukHXaG1ODHA.560@TK2MSFTNGP10.phx.gbl...fix> Other then i cant list them (guess i dont need to) that works great..
> I will just enable telnet server.. and use that...
> the other day i ran in to a bit of a deadlock..
> i managed to screw up IIS which stopped all ASP scripts.. and i couldntYou can just run it from ASPX like this> it.. cuz i couldnt use terminal server...
> so i think telnet will be my backup option..
>
Dim p As New System.Diagnostics.Process()
p.StartInfo = New System.Diagnostics.ProcessStartInfo()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.Arguments = "/c c:\discon.cmd"
p.Start()
p.WaitForExit()
David
David Browne Guest



Reply With Quote

