Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:49:24+00:00 2026-06-10T04:49:24+00:00

This is the faulty code WshShell.RegDelete HKEY_LOCAL_MACHINE\SOFTWARE\cFos\test\tvalue This is my error Error: Unable to

  • 0

This is the faulty code

WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\cFos\test\tvalue"

This is my error
Error: Unable to remove registry key “HKLM\SOFTWARE\test”.
Code: 800070005
Source: WshShell.RegDelete

I gather that I need to disable UAC in Win Vista/7/8 but I was wondering if there is a way to directly run the .vbs file as administrator. Because I need to distribute it and people might not like disabling their UAC and some might even think this is malicious if I give an explicit instruction to pull down their defense

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:49:26+00:00Added an answer on June 10, 2026 at 4:49 am

    Create a new shortcut file using below command line.

    runas /profile /user:administrator cscript myscript.vbs
    

    or…

    runas /profile /user:administrator cscript "C:\Script Collection\My Script.vbs"
    

    You can then simply double click the shortcut file to execute the script using Administrator account.

    The shortcut will prompt for Administrator password each time. If you want it to fully automate it, use below command line instead.

    runas /profile /savecred /user:administrator cscript myscript.vbs
    

    It will prompt for the password, but only once. The next time you run it, it will not prompt it again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the faulty code #include<stdio.h> #define CAT_I(A, B) A ## B #define CAT(A,
I realise this code is faulty. However, I came across some curious behaviour which
I am getting segmentation fault in this code but i cant figure out why.
This code causes a Segmentation Fault: int main(){ char *p; char a[50] = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
this code gives an instant seg fault,I tried placing printf's all over, I even
This code when executed displays the expected output but prints segmentation fault (core dumped)
In this code, for vector size, n >=32767, it gives segmentation fault, but upto
I get a segmentation fault when running this code. Anyone know why? Thanks. #include
I'm getting a segmentation fault everytime i want to run this code : from
is it possible that my mingw 3.4.5 installation is faulty? or is this provided

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.