Call Alt F4 Menu with vbscript in XP

We are trying to use write a vbscript that call (Windows Security > Shutdown button > restart) or simply (Alt + F4). Both will bring up the menu that allow user to reboot the pc via RDP.

shutdown.exe does not work  in our environment because it requires administrator privilege.

Thanks!
LVL 21
MazdajaiAsked:
Who is Participating?
 
khairilConnect With a Mentor Commented:
Hi,

Can try this,

create a vbs file, then paste this code:

set WshShell = wscript.CreateObject("Shell.Application")
WshShell.ShutdownWindows 

Open in new window

0
 
MazdajaiAuthor Commented:
Exactly what I am looking for, thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.