Is it possible to run wcript.exe in elevated mode when doubleclicked in Windows explorer? The 2019 Stack Overflow Developer Survey Results Are InRequest UAC elevation from within a Python script?Showing the UAC prompt in PowerShell if the action requires elevationHow to set current working directory to the directory of the script?Log file possibly created with elevated privilegesBatch scripting, Powershell, and not triggering the UAC in WindowsWrite to a file from Windows Explorer extension with UAC dialogCan you force Visual Studio to always run as an Administrator in Windows 8?Restart computer in Safe Mode - Optimize codeWindows7: Elevating permissions for one callrun another power shell script in elevated mode as administrator

Inflated grade on resume at previous job, might former employer tell new employer?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

What is this 4-propeller plane?

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

How can I fix this gap between bookcases I made?

Output the Arecibo Message

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Idiomatic way to prevent slicing?

Monty Hall variation

What does "rabbited" mean/imply in this sentence?

How to reverse every other sublist of a list?

How long do I have to send payment?

"To split hairs" vs "To be pedantic"

Why is Grand Jury testimony secret?

Is "plugging out" electronic devices an American expression?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

How are circuits which use complex ICs normally simulated?

Dual Citizen. Exited the US on Italian passport recently

Geography at the pixel level

JSON.serialize: is it possible to suppress null values of a map?

Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints

How to make payment on the internet without leaving a money trail?

How come people say “Would of”?

Time travel alters history but people keep saying nothing's changed



Is it possible to run wcript.exe in elevated mode when doubleclicked in Windows explorer?



The 2019 Stack Overflow Developer Survey Results Are InRequest UAC elevation from within a Python script?Showing the UAC prompt in PowerShell if the action requires elevationHow to set current working directory to the directory of the script?Log file possibly created with elevated privilegesBatch scripting, Powershell, and not triggering the UAC in WindowsWrite to a file from Windows Explorer extension with UAC dialogCan you force Visual Studio to always run as an Administrator in Windows 8?Restart computer in Safe Mode - Optimize codeWindows7: Elevating permissions for one callrun another power shell script in elevated mode as administrator



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I currently have a huge number of VBS Scripts which are, when doubleclicked in Windows Explorer, run by wscript.exe. These scripts need to be run in UAC elevated mode, i.e. doubleclicking by default will not work.



One solution for this would be to alter all the scripts, and make the scripts run themselves elevated, this solution can be found on many places, but Altering all the scripts is a tedious work.



So I am currently thinking of another solution to alter the default Shell Extension behaviour in Windows 10, so that wscript.exe will always be started elevated wenn a vbs script is doubleclicked in Windows Explorer. The problem is that I currently cannot find any commandline option that I can pass to wscript.exe to run it elevated.



Is there any solution available to call wscript.exe always in elevated mode? The scenario that should work is that a user can doubleclick the .vbs-file in Windows Explorer, and then automatically be prompted with the UAC-elevation dialog (if configured in Windows)










share|improve this question
























  • Make a shortcut to it and set the shortcut to run elevated.

    – Noodles
    Mar 10 at 6:21

















0















I currently have a huge number of VBS Scripts which are, when doubleclicked in Windows Explorer, run by wscript.exe. These scripts need to be run in UAC elevated mode, i.e. doubleclicking by default will not work.



One solution for this would be to alter all the scripts, and make the scripts run themselves elevated, this solution can be found on many places, but Altering all the scripts is a tedious work.



So I am currently thinking of another solution to alter the default Shell Extension behaviour in Windows 10, so that wscript.exe will always be started elevated wenn a vbs script is doubleclicked in Windows Explorer. The problem is that I currently cannot find any commandline option that I can pass to wscript.exe to run it elevated.



Is there any solution available to call wscript.exe always in elevated mode? The scenario that should work is that a user can doubleclick the .vbs-file in Windows Explorer, and then automatically be prompted with the UAC-elevation dialog (if configured in Windows)










share|improve this question
























  • Make a shortcut to it and set the shortcut to run elevated.

    – Noodles
    Mar 10 at 6:21













0












0








0








I currently have a huge number of VBS Scripts which are, when doubleclicked in Windows Explorer, run by wscript.exe. These scripts need to be run in UAC elevated mode, i.e. doubleclicking by default will not work.



One solution for this would be to alter all the scripts, and make the scripts run themselves elevated, this solution can be found on many places, but Altering all the scripts is a tedious work.



So I am currently thinking of another solution to alter the default Shell Extension behaviour in Windows 10, so that wscript.exe will always be started elevated wenn a vbs script is doubleclicked in Windows Explorer. The problem is that I currently cannot find any commandline option that I can pass to wscript.exe to run it elevated.



Is there any solution available to call wscript.exe always in elevated mode? The scenario that should work is that a user can doubleclick the .vbs-file in Windows Explorer, and then automatically be prompted with the UAC-elevation dialog (if configured in Windows)










share|improve this question
















I currently have a huge number of VBS Scripts which are, when doubleclicked in Windows Explorer, run by wscript.exe. These scripts need to be run in UAC elevated mode, i.e. doubleclicking by default will not work.



One solution for this would be to alter all the scripts, and make the scripts run themselves elevated, this solution can be found on many places, but Altering all the scripts is a tedious work.



So I am currently thinking of another solution to alter the default Shell Extension behaviour in Windows 10, so that wscript.exe will always be started elevated wenn a vbs script is doubleclicked in Windows Explorer. The problem is that I currently cannot find any commandline option that I can pass to wscript.exe to run it elevated.



Is there any solution available to call wscript.exe always in elevated mode? The scenario that should work is that a user can doubleclick the .vbs-file in Windows Explorer, and then automatically be prompted with the UAC-elevation dialog (if configured in Windows)







vbscript scripting windows-10 uac elevation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 8:43







Erik

















asked Mar 8 at 8:36









ErikErik

88682246




88682246












  • Make a shortcut to it and set the shortcut to run elevated.

    – Noodles
    Mar 10 at 6:21

















  • Make a shortcut to it and set the shortcut to run elevated.

    – Noodles
    Mar 10 at 6:21
















Make a shortcut to it and set the shortcut to run elevated.

– Noodles
Mar 10 at 6:21





Make a shortcut to it and set the shortcut to run elevated.

– Noodles
Mar 10 at 6:21












1 Answer
1






active

oldest

votes


















1














You can use Task Scheduler to run your script as an administrator without having to go through User Account Control (UAC) every time.



You can run scripts as administrator with the runas verb, but the user must have admin rights on the machine to do so.



You could store admin credentials in the script, but it would be plain text and not secure.



Run elevated commands only work on machines where you have local admin privileges. Other non admins can't use the script.






share|improve this answer

























  • This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

    – Erik
    Mar 8 at 8:42











  • Updated my answer. Maybe you can use runas command syntax.

    – ferminx360
    Mar 8 at 8:48











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059432%2fis-it-possible-to-run-wcript-exe-in-elevated-mode-when-doubleclicked-in-windows%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You can use Task Scheduler to run your script as an administrator without having to go through User Account Control (UAC) every time.



You can run scripts as administrator with the runas verb, but the user must have admin rights on the machine to do so.



You could store admin credentials in the script, but it would be plain text and not secure.



Run elevated commands only work on machines where you have local admin privileges. Other non admins can't use the script.






share|improve this answer

























  • This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

    – Erik
    Mar 8 at 8:42











  • Updated my answer. Maybe you can use runas command syntax.

    – ferminx360
    Mar 8 at 8:48















1














You can use Task Scheduler to run your script as an administrator without having to go through User Account Control (UAC) every time.



You can run scripts as administrator with the runas verb, but the user must have admin rights on the machine to do so.



You could store admin credentials in the script, but it would be plain text and not secure.



Run elevated commands only work on machines where you have local admin privileges. Other non admins can't use the script.






share|improve this answer

























  • This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

    – Erik
    Mar 8 at 8:42











  • Updated my answer. Maybe you can use runas command syntax.

    – ferminx360
    Mar 8 at 8:48













1












1








1







You can use Task Scheduler to run your script as an administrator without having to go through User Account Control (UAC) every time.



You can run scripts as administrator with the runas verb, but the user must have admin rights on the machine to do so.



You could store admin credentials in the script, but it would be plain text and not secure.



Run elevated commands only work on machines where you have local admin privileges. Other non admins can't use the script.






share|improve this answer















You can use Task Scheduler to run your script as an administrator without having to go through User Account Control (UAC) every time.



You can run scripts as administrator with the runas verb, but the user must have admin rights on the machine to do so.



You could store admin credentials in the script, but it would be plain text and not secure.



Run elevated commands only work on machines where you have local admin privileges. Other non admins can't use the script.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 8:44

























answered Mar 8 at 8:41









ferminx360ferminx360

537




537












  • This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

    – Erik
    Mar 8 at 8:42











  • Updated my answer. Maybe you can use runas command syntax.

    – ferminx360
    Mar 8 at 8:48

















  • This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

    – Erik
    Mar 8 at 8:42











  • Updated my answer. Maybe you can use runas command syntax.

    – ferminx360
    Mar 8 at 8:48
















This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

– Erik
Mar 8 at 8:42





This is not the solution I am looking for, because a user of my system should be able to run the script in explorer by simply doubleclicking it.

– Erik
Mar 8 at 8:42













Updated my answer. Maybe you can use runas command syntax.

– ferminx360
Mar 8 at 8:48





Updated my answer. Maybe you can use runas command syntax.

– ferminx360
Mar 8 at 8:48



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059432%2fis-it-possible-to-run-wcript-exe-in-elevated-mode-when-doubleclicked-in-windows%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved