[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 830
  • Last Modified:

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!
0
Mazdajai
Asked:
Mazdajai
1 Solution
 
khairilCommented:
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now