The transition from non elevated to elevated will always include a UAC prompt unless you have turned off UAC or turned the notification level way down on Windows 7.
Now if you have an elevated process, all the processes it launches will be elevated without another prompt. So for example if you start a command prompt by Right click, Run As Administrator, then everything you launch from that prompt (eg type Notepad and press Enter) will be elevated too.
Finally services are exempt from UAC, so if you have a service do what you want there will be no prompting, though of course you will need to elevate in order to install the service.
How to configure UAC
You need to look at Group Policy for this, you'll love it. You can enable/disable specific UAC functionality. You can disable Installer Detection. You can deny elevation requests for a standard user. It's all there:
http://technet.microsoft.com/en-us/library/dd835564%28v=ws.10%29.aspx
If you don't have Group Policy Editor
If you don't have Win7 Pro/Ultimate, you need to edit the Registry directly. All Group Policy settings map to Registry settings.
The Registry settings relevant to all UAC settings are listed on the same web-page referenced above (scroll right down). Also, MS provides Group Policy to Registry mapping info:
http://www.microsoft.com/en-us/download/details.aspx?id=25250
Grab the file named WindowsServer2008R2andWindows7GroupPolicySettings.xlsx
All UAC Registry settings are found here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Here's a screenshot:
If you don't mind hacking
If you don't like editing the Registry, some folks have come up with alternatives. Google "windows 7 Home Premium group policy". Personally, I'd just edit the Registry directly.
Best Answer
Services, just like about every Windows object, have an ACL associated with it, which can be modified to give you access.
As far as I know, there is no official UI for managing service ACLs, so you're left with two options:
Download Process Explorer. Start your service (ProcExp only shows running services). In ProcExp, double-click on the process for the Service (or right-click and click Properties). Click the "Services" tab. Typically your program is run by a particular user - Add that user. Hit Advanced. The permissions you can manage include stop/start of this Service and sending custom-defined commands to it.
Process Hacker is similar, but can manage stopped services as well.
sc sdshow
, learn the ACE syntax and access rights, edit the security descriptor, pass it back tosc sdset
.