FuryCell Posted July 2, 2007 Share Posted July 2, 2007 (edited) Edit:New Version here.I have recently started using a nonadmin account for day to day tasks. To install things I often used to use the runas context menu item. However runas can be a major pain in the butt being it only shows up on exes. That makes trying to launch msis,bats and the like with admin rights a major hassle. Not any more. Just run the script and it will add itself to the current users sendto menu. Now any file can be launched with the administrator account. All you do is click the option in sendto and type your admin password. Easy as pie. Step1Step2Old Version Removed. See New Version here.Previous Downloads:157 Edited July 31, 2007 by P5ych0Gigabyte HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Dale2507 Posted July 11, 2007 Share Posted July 11, 2007 (edited) I'm confused about this. Does it need to be compiled? it hasen't appeared in my send to menu Also the run command can only be used with EXE, BAT, COM, or PIF files Edited July 11, 2007 by Gmail Deal or No Deal? Link to comment Share on other sites More sharing options...
James Posted July 11, 2007 Share Posted July 11, 2007 Yes, it needs to be compiled for it to work correctly Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
MisterBates Posted July 11, 2007 Share Posted July 11, 2007 (edited) I have recently started using a nonadmin account for day to day tasks. To install things I often used to use the runas context menu item. However runas can be a major pain in the butt being it only shows up on exes. That makes trying to launch msis,bats and the like with admin rights a major hassle. Not any more. Just run the script and it will add itself to the current users sendto menu. Now any file can be launched with the administrator account. All you do is click the option in sendto and type your admin password. Easy as pie. Nice! so far - it compiled and installed on my work PC. Can't wait to try it on my Windows XP Home PC, which has multiple user accounts and where I'm constantly having to upgrade then downgrade user accounts ...Couple of thoughts:How about a parameter to specify the admin account name that on install, writes this to the HKLM registry - assuming many folks will have changed the default MS-provided name. If the admin accounts could be determined at run-rime, even better!Is there any way to install this on all user accounts (or better, on all non-admin accounts) without having to login as each user and install it? ... I'm willing to help with these mods ...EDIT: May have sorted the first one, without needing a command-line parm or registry write. Took out the prompt and RunAsSet stuff, and added #RequireAdmin at the top. According to other posts in the forum, this should pop-up a "RunAs" box for non-admin accounts, which should allow me to choose an admin account and enter its password making sure the compiled script is being run as an admin user. Edited July 11, 2007 by MisterBates [u]MisterBates[/u]_____________________________________________________Suspend/Resume Windows ScreensaverWatchWindows - Window watcher/loggerUDF: Click systray menu/submenu itemsUDF: Outlook Express Folder/Message handling (+ example code)HowTo: Multiple icons in one compiled script Link to comment Share on other sites More sharing options...
TheSaint Posted July 12, 2007 Share Posted July 12, 2007 (edited) Hi P5ych0Gigabyte & othersHere are some alternate methods, etc, etcAdmin Rights & Shortcuts For AllAdmin File Management Can one of the powers that be here, fix up the tiresome issue of double http//I've had this issue many times in the past (as I'm sure have many others).I already attempted to fix the links once, but the edit still returned a double http.One should be able to copy a link and paste it - the forum program should detect the existence of a http, and not add its own unless it was missing.NOT AGAIN!!! This is a right pain ... third time lucky ... hopefully?FINALLY IT'S FIXED!It seems, you cannot successfully copy and paste a link from another post, without using Notepad or somesuch as an intermediary (to remove any existing formatting). In other words you need to perform the following steps -1) Copy the link name to Notepad.2) Copy link URL to Notepad.3) Copy link name from Notepad and paste in new post.4) Copy link URL from Notepad and paste in new post - using the add link button option.It's all rather tiresome, and when I haven't posted for awhile, I inevitably forget all these steps - would be nice if you could just copy and paste ... not even have to use the add link button. Edited July 12, 2007 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
MisterBates Posted July 13, 2007 Share Posted July 13, 2007 Hi P5ych0Gigabyte & others Here are some alternate methods, etc, etc Admin Rights & Shortcuts For All Admin File Management@TheSaint: On first quick look will work for me, except that the script still assumes that an 'Administrator' account with admin rights exists on the PC - this is not the case for my home PC (I changed the account name) or my work PC (my company changed the name). Would you consider adding code to get login names from the Administrators group and allowing selection of admin login from the result? Something based on code in this post might be the way to go - and let me know if I can help (or even do) the mods. BTW, I have no problems using the [AddLink] button. It opens a popup with http:// highlighted, I paste the URL in (overwriting what's there) and it creates the tags. :"> [u]MisterBates[/u]_____________________________________________________Suspend/Resume Windows ScreensaverWatchWindows - Window watcher/loggerUDF: Click systray menu/submenu itemsUDF: Outlook Express Folder/Message handling (+ example code)HowTo: Multiple icons in one compiled script Link to comment Share on other sites More sharing options...
FuryCell Posted July 30, 2007 Author Share Posted July 30, 2007 (edited) I have created a new version based on #RequireAdmin. (Thanks MisterBates). I will release it after a little bit of testing. What's cool about it now is that on Vista it automatically pops up the UAC dialog instead of the boring old inputbox I had before. Edited July 30, 2007 by P5ych0Gigabyte HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
FuryCell Posted July 31, 2007 Author Share Posted July 31, 2007 (edited) I have created a new version based on #RequireAdmin. (Thanks MisterBates). I will release it after a little bit of testing. What's cool about it now is that on Vista it automatically pops up the UAC dialog instead of the boring old inputbox I had before. Done. Please note the scripts need to be compiled to execute properly , and LaunchAsAdmin.au3 has to be compiled first as installer.au3 uses fileinstall. Installer.au3LaunchAsAdmin.au3PointingUser.ICO For those to lazy to compile or who are without AutoIt on their machine exe available here. Edited July 31, 2007 by P5ych0Gigabyte HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. 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