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.

LVL 21
Who is Participating?
khairilConnect With a Mentor Commented:

Can try this,

create a vbs file, then paste this code:

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

Open in new window

MazdajaiAuthor Commented:
Exactly what I am looking for, thanks.
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.