Results 1 to 3 of 3

Thread: Running an HTA or WSH script as administrator

  1. #1
    Join Date
    Apr 2007
    Posts
    27

    Running an HTA or WSH script as administrator

    How to run a HTA files on Vista with admin privileges. UAC is enabled here. I facing a bit problem running the same. I tried to rightclick on the file and selected run as administrator but that did not worked well here. I had also managed to modify the compatibility settings but that also looks a bit risky. Later on the last thing I did is tried to run the same via cmd but that also failed. I am just stucked with the problem here. I need some help here to run hta or wsh script. I am having a single admin account in my pc.

  2. #2
    Join Date
    Sep 2004
    Posts
    112

    RE: Running an HTA or WSH script as administrator

    Those are simple script which can be interpreted only through mshta.exe and cscript.exe. I am going to give you a link that will give you ample of information on running hta. Just check the below link. It has ample of solution on your issue with complete description about the files. I am sure you will find proper information here.

    Introduction to HTML Applications (HTAs)

  3. #3
    Join Date
    Sep 2004
    Posts
    165
    Right click on cmd and click on run a administrator. If there is any password windows ask then provide the same. Now just drag the script file in the cmd and that's all. Your job will be done. The script will run well in cmd. There will be no error at all. I do not think as you drag the files UAC will block the launch. So just try the drag and drop thing. I hope that might work. You can also try right clicking on the script and selecting open with and choose cmd from the list.

Similar Threads

  1. Replies: 8
    Last Post: 09-11-2011, 07:40 PM
  2. Replies: 4
    Last Post: 24-12-2010, 06:36 PM
  3. Replies: 8
    Last Post: 20-11-2008, 03:18 AM
  4. Replies: 4
    Last Post: 10-01-2008, 09:35 PM
  5. Replies: 3
    Last Post: 22-04-2007, 02:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,159,647.95672 seconds with 17 queries