468,290 Members | 1,983 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

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 2302
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Arun Goel | last post: by
reply views Thread by Allan Bredahl | last post: by
reply views Thread by jerry.xuddd | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.