AutoPM Posted January 14, 2019 Share Posted January 14, 2019 I need to Run My Script at startup. Which Needs #RequireAdmin. to Work Properly. As i Give #RequireAdmin Script Does Not Start With Startup. If There's any To Solve This Please Tell. Thankyou. Link to comment Share on other sites More sharing options...
Nine Posted January 14, 2019 Share Posted January 14, 2019 Sorry to break the bad news to you, but there is no way to do it. Well, maybe by making a service, I never tried it, so I cannot be absolutely sure... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
TheXman Posted January 14, 2019 Share Posted January 14, 2019 (edited) Actually, there are ways to do it. The topic of self-elevation has been discussed, by me and others, in this forum in the past. The question is whether it can continue to be discussed. A recent post asking a similar question was squashed by a moderator saying that it goes against the forum policy that relates to going around Windows security. So unless a moderator specifically says that is okay again, I guess it will remain a topic not to be discussed. Edited January 14, 2019 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted January 14, 2019 Share Posted January 14, 2019 Scheduled Task I do not think this is self elevation related, if it is, my answer does not provide that, you must have elevated privileges to set the task. Subz and TheXman 2 Link to comment Share on other sites More sharing options...
caramen Posted January 14, 2019 Share Posted January 14, 2019 @TheXman Hello there Can you explain abit more for me please ? I can't figure out what is forbidden about elevating a script that is runned at startup ? Or i undertand bad the OP ? I agree that conturning security of anykind is forbidden but why give admin rights would be forbidden ? My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
TheXman Posted January 14, 2019 Share Posted January 14, 2019 (edited) 15 minutes ago, caramen said: Can you explain abit more for me please ? I'm sorry, I don't understand what it is that you would like for me to explain in more detail. If you are asking me to explain how to self-elevate a script, as I said, I will not discuss it any further until I see that Moderators say that it is okay to discuss. If you would like an example of a Moderator locking a topic related to self-elevation, then here's a relatively recent one: It's not my policy. If you have a question about why, then it would be best to ask a Moderator. As I said, it has been discussed in the past without an issue. Maybe the prior discussions just slipped through the cracks. But for whatever reason, it doesn't appear that those types of discussions are permitted now. Edited January 14, 2019 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
caramen Posted January 14, 2019 Share Posted January 14, 2019 Not I know how to self elevate. I would like to know why I shouldn't learn it to someone ? My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Nine Posted January 14, 2019 Share Posted January 14, 2019 Is it related to some form of CreateProcessAsUser ? or CreateProcessWithLogon ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
TheXman Posted January 14, 2019 Share Posted January 14, 2019 (edited) 35 minutes ago, Nine said: Is it related to some form of CreateProcessAsUser ? or CreateProcessWithLogon ? The methods that I use do not have anything to do with those API's. Here's a high-level response to a similar question that I gave a while back. It doesn't go into too much detail. Hopefully it does not get me into any trouble. Edited January 14, 2019 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
caramen Posted January 15, 2019 Share Posted January 15, 2019 (edited) @TheXman Well, just pointing an existing link should not, I guess This is remaining dark for me. Thanks for the cautioning. Xmate Edited January 15, 2019 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Subz Posted January 15, 2019 Share Posted January 15, 2019 As ViciousXUSMC pointed out scheduled task as local system account would be the way to go, unless you can use group policy where you could use a startup script. There are other products like SCCM, PDQDeploy that can also do the job, but they all use the system account and a separate account for accessing network resources. nb:UAC prompt isn't applied to the local system account. 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