473,465 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Putting a logoff/shutdown/restart button

Is it possible to put the logoff/shutdown/restart buttons on an ASP page or something similar? If so can anyone point me in the direction of some code please or where I can read how to do it

Cheer
JonBoy
Jul 19 '05 #1
7 2513
What do you mean? Sure, you can put images, buttons, whatever on a page,
but what's the question? Can you allow someone to reboot your server from
your web page? Is that what you want to do? Or do you just want a
screenshot of a shutdown dialog?

Ray at work

"JonBoy" <an*******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
Is it possible to put the logoff/shutdown/restart buttons on an ASP page or something similar? If so can anyone point me in the direction of some
code please or where I can read how to do it.
Cheers
JonBoy

Jul 19 '05 #2
I mean put buttons on a webpage using whatever language is appropiate ( I
suspect it can only be done in activex). The buttons will be shutdown,
logoff and restart and will replace the usual way of shutting
down/rebooting/logging off. I will disable the usual buttons.

This script will then be ran to logoff/shutdown/reboot the PC. It will be
doing other things as well...I'm not just doing it for the sake of it :-)

JonBoy
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:OD**************@TK2MSFTNGP09.phx.gbl...
What do you mean? Sure, you can put images, buttons, whatever on a page,
but what's the question? Can you allow someone to reboot your server from
your web page? Is that what you want to do? Or do you just want a
screenshot of a shutdown dialog?

Ray at work

"JonBoy" <an*******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
Is it possible to put the logoff/shutdown/restart buttons on an ASP page

or something similar? If so can anyone point me in the direction of some
code please or where I can read how to do it.

Cheers
JonBoy


Jul 19 '05 #3
You want your webpage to have the ability to reboot the client's computer?
Is that what you're saying? Yes, in theory this can be done with the
correct security settings, but before we get into that, is that REALLY what
you want to do? I would never visit your site if it's going to try to
restart my computer.

Ray at work

"JonBoy" <Jo****@nospam.com> wrote in message
news:dkG6c.758$ux.39@newsfe1-win...
I mean put buttons on a webpage using whatever language is appropiate ( I
suspect it can only be done in activex). The buttons will be shutdown,
logoff and restart and will replace the usual way of shutting
down/rebooting/logging off. I will disable the usual buttons.

This script will then be ran to logoff/shutdown/reboot the PC. It will be
doing other things as well...I'm not just doing it for the sake of it :-)

JonBoy
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:OD**************@TK2MSFTNGP09.phx.gbl...
What do you mean? Sure, you can put images, buttons, whatever on a page, but what's the question? Can you allow someone to reboot your server from your web page? Is that what you want to do? Or do you just want a
screenshot of a shutdown dialog?

Ray at work

"JonBoy" <an*******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
Is it possible to put the logoff/shutdown/restart buttons on an ASP
page or something similar? If so can anyone point me in the direction of some code please or where I can read how to do it.

Cheers
JonBoy



Jul 19 '05 #4
Yes thats correct. It's not for a website as such. It's just a web based
application that will run within our own intranet at our company. The
security issue isn't a problem, as these machines won't be hitting the
internet so can be set with low security settings.

So what do I have to do? :-)

Thanks

JonBoy
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uG**************@tk2msftngp13.phx.gbl...
You want your webpage to have the ability to reboot the client's computer?
Is that what you're saying? Yes, in theory this can be done with the
correct security settings, but before we get into that, is that REALLY what you want to do? I would never visit your site if it's going to try to
restart my computer.

Ray at work

"JonBoy" <Jo****@nospam.com> wrote in message
news:dkG6c.758$ux.39@newsfe1-win...
I mean put buttons on a webpage using whatever language is appropiate ( I
suspect it can only be done in activex). The buttons will be shutdown,
logoff and restart and will replace the usual way of shutting
down/rebooting/logging off. I will disable the usual buttons.

This script will then be ran to logoff/shutdown/reboot the PC. It will be doing other things as well...I'm not just doing it for the sake of it :-)
JonBoy
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:OD**************@TK2MSFTNGP09.phx.gbl...
What do you mean? Sure, you can put images, buttons, whatever on a

page, but what's the question? Can you allow someone to reboot your server from your web page? Is that what you want to do? Or do you just want a
screenshot of a shutdown dialog?

Ray at work

"JonBoy" <an*******@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
> Is it possible to put the logoff/shutdown/restart buttons on an ASP page or something similar? If so can anyone point me in the direction of some code please or where I can read how to do it.
>
> Cheers
> JonBoy



Jul 19 '05 #5
Well, nothing with ASP. :] But I see you also posted this to an IE group.
Here is code:

http://groups.google.com/groups?th=4...acdd663&rnum=2

You can use this function in a Web page in INTERNET EXPLORER, and for your
zone, you'll have to allow "intitialize and script ActiveX controls not
marked as safe" for this to run. (I ~think~ that should be all.)

Just make sure you don't enable this in the INTERNET zone. If your intranet
is not in the intranet zone, i.e. there are dots in the domain name, add the
domain to the TRUSTED SITES zone and customize those permissions. If you
open up that security hole in the INTERNET zone, your machines will be at
too great a risk.

Ray at work


"JonBoy" <Jo****@nospam.com> wrote in message
news:Zz*************@newsfe1-gui.server.ntli.net...
Yes thats correct. It's not for a website as such. It's just a web based
application that will run within our own intranet at our company. The
security issue isn't a problem, as these machines won't be hitting the
internet so can be set with low security settings.

So what do I have to do? :-)

Thanks

JonBoy
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uG**************@tk2msftngp13.phx.gbl...
You want your webpage to have the ability to reboot the client's computer? Is that what you're saying? Yes, in theory this can be done with the
correct security settings, but before we get into that, is that REALLY

what
you want to do? I would never visit your site if it's going to try to
restart my computer.

Ray at work

"JonBoy" <Jo****@nospam.com> wrote in message
news:dkG6c.758$ux.39@newsfe1-win...
I mean put buttons on a webpage using whatever lan

Jul 19 '05 #6
I posted to an ASP group 'cause I do have knowledge of that and was hoping
it could be done that way.

I have no idea how to call functions like those in the link. If you could
advise on how to do this and integrate that code with an ASP page I'd very
much appreciate it.

Many thanks

JonBoy

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:O%*****************@TK2MSFTNGP10.phx.gbl...
Well, nothing with ASP. :] But I see you also posted this to an IE group. Here is code:

http://groups.google.com/groups?th=4...acdd663&rnum=2

You can use this function in a Web page in INTERNET EXPLORER, and for your
zone, you'll have to allow "intitialize and script ActiveX controls not
marked as safe" for this to run. (I ~think~ that should be all.)

Just make sure you don't enable this in the INTERNET zone. If your intranet is not in the intranet zone, i.e. there are dots in the domain name, add the domain to the TRUSTED SITES zone and customize those permissions. If you
open up that security hole in the INTERNET zone, your machines will be at
too great a risk.

Ray at work


"JonBoy" <Jo****@nospam.com> wrote in message
news:Zz*************@newsfe1-gui.server.ntli.net...
Yes thats correct. It's not for a website as such. It's just a web based
application that will run within our own intranet at our company. The
security issue isn't a problem, as these machines won't be hitting the
internet so can be set with low security settings.

So what do I have to do? :-)

Thanks

JonBoy
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uG**************@tk2msftngp13.phx.gbl...
You want your webpage to have the ability to reboot the client's

computer? Is that what you're saying? Yes, in theory this can be done with the
correct security settings, but before we get into that, is that REALLY

what
you want to do? I would never visit your site if it's going to try to
restart my computer.

Ray at work

"JonBoy" <Jo****@nospam.com> wrote in message
news:dkG6c.758$ux.39@newsfe1-win...
> I mean put buttons on a webpage using whatever lan


Jul 19 '05 #7
<button name="logoff">Log off</button>

<script type="text/vbscript">
Sub logoff_OnClick()
Call Shutdown(".","logoff")
End Sub

'''that code here

</script>

Ray at home

"JonBoy" <No@spam.com> wrote in message
news:y3***************@newsfe3-win.server.ntli.net...
I posted to an ASP group 'cause I do have knowledge of that and was hoping
it could be done that way.

I have no idea how to call functions like those in the link. If you could
advise on how to do this and integrate that code with an ASP page I'd very
much appreciate it.

Many thanks

Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Arun Goel | last post by:
Hi all, I have set up rmiregistry.exe to run as service on Windows 2000 Server .. I set it up using "srvany.exe". It is running fine, but when I logoff, it stops.I did a lot of research but I...
8
by: Jonathan Heath | last post by:
Hi all, I have created an ASP script that enters data into an Access Database. My problem is that I'd like this script to run when the computer is shutdown or the user logs off. I think...
0
by: Allan Bredahl | last post by:
Hi All I am trying to construct an application that is able to cancel a machine shutdown, reboot or logoff. And after performing some stuff to perform the original shutdown order :...
0
by: jerry.xuddd | last post by:
I believe that someone asked the same question before, but I can't find the old post. I have written a windows service that needs to perform different functions between a user is logged in and...
2
by: Brian Worth | last post by:
I have just upgraded from VB 4.0 to VB .NET 2002. One program under VB 4.0 was able to shut down or restart the (windows XP) machine using a series of API calls. (Getlasterror, GetCurrentProcess,...
8
by: Jm | last post by:
Hi All I have an app that when running if a user selects logoff or shutdown from the start menu, it will close itself but not logoff windows or shutdown. From what i have found so far its most...
2
by: mikemiller.innova | last post by:
I developed a C# Windows App that requires a user to input their real name and what they did to the server while they were online. I am going to launch the app att shutdown via a logoff script. ...
1
by: CyberSoftHari | last post by:
I want to get applications running (Showing) in Task bar (and show those applications running) and Cancel windows LogOff, Shutdown, Restart when user try to Click windows LogOff, Shutdown, Restart
1
by: Clemente | last post by:
Hi, We have a VB.Net application that is sleeping until it receives a logoff/shutdown event. We want the application running on Vista and XP. When the application receives those events it has...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.