incepator Posted September 21, 2013 Share Posted September 21, 2013 I have a queries, if you can help me ... I have a command that I want to run it in cmd, the problem is that does not work, probably because an administrator must run at .. bcdedit /set {bootmgr} displaybootmenu no Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 22, 2013 Moderators Share Posted September 22, 2013 Are you not an administrator on the machine? If not, why are you trying to edit the boot configuration store? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
incepator Posted September 22, 2013 Author Share Posted September 22, 2013 I want to do a simple software, with 2 buttons... to activate and deactivate boot... Link to comment Share on other sites More sharing options...
incepator Posted September 22, 2013 Author Share Posted September 22, 2013 Not working this method... Run (@ComSpec & " /c bcdedit /set {bootmgr} displaybootmenu yes") Link to comment Share on other sites More sharing options...
JohnOne Posted September 22, 2013 Share Posted September 22, 2013 Are you not an administrator on the machine? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
incepator Posted September 23, 2013 Author Share Posted September 23, 2013 I am an administrator, if you go into cmd and write manually...it works, but...if you run this script not working . Link to comment Share on other sites More sharing options...
JoHanatCent Posted September 23, 2013 Share Posted September 23, 2013 Do you get anny errors? try replacing /c with /k and let us know. Link to comment Share on other sites More sharing options...
incepator Posted September 23, 2013 Author Share Posted September 23, 2013 this error... Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 23, 2013 Moderators Share Posted September 23, 2013 And it works fine from command line? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
water Posted September 23, 2013 Share Posted September 23, 2013 How about adding #RequireAdmin at the top of your script? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
incepator Posted September 23, 2013 Author Share Posted September 23, 2013 than me is not working? If you type the command manually in cmd ... it works, but the script does not work Manually it works... Script command not working... Link to comment Share on other sites More sharing options...
water Posted September 23, 2013 Share Posted September 23, 2013 Could you try: #Requireadmin ShellExecute("bcdedit", "/set {bootmgr} displaybootmenu yes") My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
michaelslamet Posted September 23, 2013 Share Posted September 23, 2013 What if you run it using RunAs (admin), search for RunAs in the help file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now