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;
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
add a comment |
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
Make a shortcut to it and set the shortcut to run elevated.
– Noodles
Mar 10 at 6:21
add a comment |
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
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
vbscript scripting windows-10 uac elevation
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Make a shortcut to it and set the shortcut to run elevated.
– Noodles
Mar 10 at 6:21