Twixxct Posted April 3, 2010 Share Posted April 3, 2010 Hello all, I am a newb so please be kind Running widows7 logged in with admin rights but with blank password I have spent many hours seaching the web for a way to stop and start a service. I found various ways (thanks everyone) and tried them all. none have worked with autoit. I tried some suggestion to do it in the cmd and that to failed. then i read about elevated cmd and tried it there and was successfull. Now i need help with autoit side and scripting one of these ways to run with either admin rights or in an elevated cmd? Can anyone help me stop a service (spooler) I believe my issue has to do with admin privileges thank you Rob Link to comment Share on other sites More sharing options...
BrettF Posted April 3, 2010 Share Posted April 3, 2010 What happens when you add #requireadmin into your script? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Twixxct Posted April 3, 2010 Author Share Posted April 3, 2010 That works but a window comes up asking for permission -but This needs to run when i am not around -so a backup can occur. this is to shut off my solid works PDM server to do a backup of my Vault -else file corruption occurs. service must be off Link to comment Share on other sites More sharing options...
trancexx Posted April 3, 2010 Share Posted April 3, 2010 So, is there any more questions? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Twixxct Posted April 3, 2010 Author Share Posted April 3, 2010 How do i do this without having to click on any buttons (needs to be quiet) Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 3, 2010 Share Posted April 3, 2010 (edited) How do i do this without having to click on any buttons (needs to be quiet)Then it will need to be run in a context that already has the required access, like a scheduled task or service of your own, running as SYSTEM or an account with required group membership (I was thinking it might only require BACKUP OPERATOR, and not necessarily ADMINISTRATORS). Edited April 3, 2010 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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