473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Service asking for Service Login

I am setting up a Windows Service at a clients site and a window comes up:

Set Service Login

that asks for UserName and Password.

Is this the credentials that the service will logon as or maybe to install
the service?

How do I get it to use the login I am logged in on?

I am the administrator on this machine.

Thanks,

Tom
Jun 27 '08 #1
3 5678
tshad wrote:
I am setting up a Windows Service at a clients site and a window comes up:

Set Service Login

that asks for UserName and Password.

Is this the credentials that the service will logon as or maybe to install
the service?

How do I get it to use the login I am logged in on?

I am the administrator on this machine.

Thanks,

Tom

A service runs all the time, and needs a specific username context to
run under, it can't run under "whoever is logged on at any given time".
If you want that kind of security, make the program auto-start when the
user logs on instead, and not a service.

If you're the administrator of the machine, and wants the service to
have your access rights, specify your own username and password for it.

Typically though you would create a new user specifically for the
service with the correct access rights according to what it needs to do.

--
Lasse Vågsæther Karlsen
mailto:la***@vkarlsen.no
http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3
Jun 27 '08 #2
Change the Account for the serviceProcessInstaller to LocalSystem. It can be done by opening ProjectInstaller design and selecting serviceProcessInstaller, properties and change the account property to LocalSystem or manually create the file as previously posted.
Jul 8 '08 #3
Change the Account for the serviceProcessInstaller to LocalSystem

I'd be cautious of doing this personally... network service / local service
are quite good choices for simple scenarios, since they have restricted
access... if a dedicated domain account is needed for some ACLs, then run as
that user... but local system should be used with caution. It is very rare
that a service needs that level of privelege. As a general rule, any app
should have only the priveleges it needs...

Marc
Jul 8 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: JohnFol | last post by:
I am using the Win23 API WNetCancelConnection2 and can sucessfully make a connection to a share within my class. The class is called from a Windows Form based test harness. When I instantiate...
0
by: MaxBici | last post by:
Hi, I have a windows service in C# (.NET framework 1.1) running on Windows XP PRO SP2. This service essentiallt starts a printjob watcher. Please see the code snippet below. queryInterval =...
3
by: serge calderara | last post by:
Dear all, I clearly underdand the advantage of both type of authentification but is it allowed or possible to set the Authentication mode to Windows and then handle a login form for defined...
3
by: Gary | last post by:
I am using VS.Net 2002 with windows 2000 advanced server and windows 2000 professional. I have a requirement to use windows service with a GUI. I want to show my own User Interface(Dialog) to get...
3
by: Evan Camilleri | last post by:
I have a problem for a Windows Service to login on an SQL server (different machine) - neither Windows Authentication nor SQL Authentication worked. LOGIN FAILED FOR USER sa (for example). If...
18
by: Rotsey | last post by:
Hi, I have a windows service that does some distributed transcation across 2 servers. One DB is SQL 2005 express and the other is SQL 2005. My question is I have created a domain user account...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
by: Hiran | last post by:
I have a simple 'hello world' web service here http://www.askhiran2008.com/asliwebservicevb2/service.asmx. It should return data from the Northwind sample database. It works fine when being...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.