Avatar of Aegil
Aegil
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Shutdown Script in Access

Hey,
Im building an access 2003 application and I want to have a button on a form run the shutdown command. Its going to need to use runas to escalate privledges to an admin account. I had a script to do it before but a loss of exchange lost it.

Basically its somethign like this

user presses button

Script calls the runas command
eg runas adminstrator Password shutdown -f

something like that.

Any questions please ask
Microsoft AccessVB Script

Avatar of undefined
Last Comment
Scott McDaniel (EE MVE )

8/22/2022 - Mon
Scott McDaniel (EE MVE )

Do you mean shutdown the machine, or quit Access?
Aegil

ASKER
shutdown the pc
ASKER CERTIFIED SOLUTION
Scott McDaniel (EE MVE )

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck