Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Thu, 18 Sep 2008 10:13:51 -0500,    group: microsoft.public.vsnet.general        back       


Can Service access networked computer while logged off?   
Thanks in Advance!

My programmer is developing an application that imports a text file to a 
database. This application runs as a service. This application/service 
usually runs on Windows Servers where the I.T. Department requires the 
server to be logged off (for security reasons). My programmer does not think 
it is possible for our app to import the file while the computer is logged 
off because Windows is a profile based OS and security is based on the 
samAccountName and a Windows Principle object.

Does anyone know of a way to make this work?
date: Thu, 18 Sep 2008 10:13:51 -0500   author:   Randy

Re: Can Service access networked computer while logged off?   
It is not clear what do you mean by "This application runs as a service". If 
the application is a Windows Service application, you can only run it, well, 
as service, nothing else. With that assumption, yes, windows services are 
meant to run without the requirement of a user loggin on.

If your programmer does not know this, I double his application is a Windows 
service app.

"Randy"  wrote in message 
news:OWLWtEaGJHA.2252@TK2MSFTNGP02.phx.gbl...
> Thanks in Advance!
>
> My programmer is developing an application that imports a text file to a 
> database. This application runs as a service. This application/service 
> usually runs on Windows Servers where the I.T. Department requires the 
> server to be logged off (for security reasons). My programmer does not 
> think it is possible for our app to import the file while the computer is 
> logged off because Windows is a profile based OS and security is based on 
> the samAccountName and a Windows Principle object.
>
> Does anyone know of a way to make this work?
date: Thu, 18 Sep 2008 11:42:11 -0700   author:   Norman Yuan

Re: Can Service access networked computer while logged off?   
Type error:
"I double his application" should have been "I doubt his..."

"Norman Yuan"  wrote in message 
news:OKV5F5bGJHA.612@TK2MSFTNGP06.phx.gbl...
> It is not clear what do you mean by "This application runs as a service". 
> If the application is a Windows Service application, you can only run it, 
> well, as service, nothing else. With that assumption, yes, windows 
> services are meant to run without the requirement of a user loggin on.
>
> If your programmer does not know this, I double his application is a 
> Windows service app.
>
> "Randy"  wrote in message 
> news:OWLWtEaGJHA.2252@TK2MSFTNGP02.phx.gbl...
>> Thanks in Advance!
>>
>> My programmer is developing an application that imports a text file to a 
>> database. This application runs as a service. This application/service 
>> usually runs on Windows Servers where the I.T. Department requires the 
>> server to be logged off (for security reasons). My programmer does not 
>> think it is possible for our app to import the file while the computer is 
>> logged off because Windows is a profile based OS and security is based on 
>> the samAccountName and a Windows Principle object.
>>
>> Does anyone know of a way to make this work?
>
date: Thu, 18 Sep 2008 12:53:27 -0700   author:   Norman Yuan

Re: Can Service access networked computer while logged off?   
Norman,

Yes it is actually a Windows service, and yes it stays running when you log 
off the machine. The problem is that it cannot access a network computer and 
import the text file into the database while logged off. This is the part he 
is stumped on. By the way, here is what I know about how the import process 
works; the service when started spawns an exe that watches a directory for 
the particular text file to be created. Once created, it get's imported into 
the database.


"Norman Yuan"  wrote in message 
news:%23NtG7gcGJHA.1160@TK2MSFTNGP05.phx.gbl...
> Type error:
> "I double his application" should have been "I doubt his..."
>
> "Norman Yuan"  wrote in message 
> news:OKV5F5bGJHA.612@TK2MSFTNGP06.phx.gbl...
>> It is not clear what do you mean by "This application runs as a service". 
>> If the application is a Windows Service application, you can only run it, 
>> well, as service, nothing else. With that assumption, yes, windows 
>> services are meant to run without the requirement of a user loggin on.
>>
>> If your programmer does not know this, I double his application is a 
>> Windows service app.
>>
>> "Randy"  wrote in message 
>> news:OWLWtEaGJHA.2252@TK2MSFTNGP02.phx.gbl...
>>> Thanks in Advance!
>>>
>>> My programmer is developing an application that imports a text file to a 
>>> database. This application runs as a service. This application/service 
>>> usually runs on Windows Servers where the I.T. Department requires the 
>>> server to be logged off (for security reasons). My programmer does not 
>>> think it is possible for our app to import the file while the computer 
>>> is logged off because Windows is a profile based OS and security is 
>>> based on the samAccountName and a Windows Principle object.
>>>
>>> Does anyone know of a way to make this work?
>>
>
date: Thu, 18 Sep 2008 15:30:59 -0500   author:   Randy

Re: Can Service access networked computer while logged off?   
Windows service could be configured to run with different user account, be 
it local account or domain account. Obviously, local accounts do not have 
access to resources outside the box. To access files on a networkshare, you 
need to run the windows service with a domain account that has the 
permission to that networkshare. Also the network share need to be refereed 
as UNC name (\\servername\sharename\folder...), not as mapped network drive, 
which only exists with lonnged on user.

"Randy"  wrote in message 
news:OC$I91cGJHA.468@TK2MSFTNGP06.phx.gbl...
> Norman,
>
> Yes it is actually a Windows service, and yes it stays running when you 
> log off the machine. The problem is that it cannot access a network 
> computer and import the text file into the database while logged off. This 
> is the part he is stumped on. By the way, here is what I know about how 
> the import process works; the service when started spawns an exe that 
> watches a directory for the particular text file to be created. Once 
> created, it get's imported into the database.
>
>
> "Norman Yuan"  wrote in message 
> news:%23NtG7gcGJHA.1160@TK2MSFTNGP05.phx.gbl...
>> Type error:
>> "I double his application" should have been "I doubt his..."
>>
>> "Norman Yuan"  wrote in message 
>> news:OKV5F5bGJHA.612@TK2MSFTNGP06.phx.gbl...
>>> It is not clear what do you mean by "This application runs as a 
>>> service". If the application is a Windows Service application, you can 
>>> only run it, well, as service, nothing else. With that assumption, yes, 
>>> windows services are meant to run without the requirement of a user 
>>> loggin on.
>>>
>>> If your programmer does not know this, I double his application is a 
>>> Windows service app.
>>>
>>> "Randy"  wrote in message 
>>> news:OWLWtEaGJHA.2252@TK2MSFTNGP02.phx.gbl...
>>>> Thanks in Advance!
>>>>
>>>> My programmer is developing an application that imports a text file to 
>>>> a database. This application runs as a service. This 
>>>> application/service usually runs on Windows Servers where the I.T. 
>>>> Department requires the server to be logged off (for security reasons). 
>>>> My programmer does not think it is possible for our app to import the 
>>>> file while the computer is logged off because Windows is a profile 
>>>> based OS and security is based on the samAccountName and a Windows 
>>>> Principle object.
>>>>
>>>> Does anyone know of a way to make this work?
>>>
>>
>
date: Fri, 19 Sep 2008 08:10:24 -0700   author:   Norman Yuan

Re: Can Service access networked computer while logged off?   
Correct me if I'm wrong, but shouldn't the local account work if that 
account was setup on both computers (like in a simple workgroup)?


"Norman Yuan"  wrote in message 
news:%23HJ0bnmGJHA.2252@TK2MSFTNGP04.phx.gbl...
> Windows service could be configured to run with different user account, be 
> it local account or domain account. Obviously, local accounts do not have 
> access to resources outside the box. To access files on a networkshare, 
> you need to run the windows service with a domain account that has the 
> permission to that networkshare. Also the network share need to be 
> refereed as UNC name (\\servername\sharename\folder...), not as mapped 
> network drive, which only exists with lonnged on user.
>
> "Randy"  wrote in message 
> news:OC$I91cGJHA.468@TK2MSFTNGP06.phx.gbl...
>> Norman,
>>
>> Yes it is actually a Windows service, and yes it stays running when you 
>> log off the machine. The problem is that it cannot access a network 
>> computer and import the text file into the database while logged off. 
>> This is the part he is stumped on. By the way, here is what I know about 
>> how the import process works; the service when started spawns an exe that 
>> watches a directory for the particular text file to be created. Once 
>> created, it get's imported into the database.
>>
>>
>> "Norman Yuan"  wrote in message 
>> news:%23NtG7gcGJHA.1160@TK2MSFTNGP05.phx.gbl...
>>> Type error:
>>> "I double his application" should have been "I doubt his..."
>>>
>>> "Norman Yuan"  wrote in message 
>>> news:OKV5F5bGJHA.612@TK2MSFTNGP06.phx.gbl...
>>>> It is not clear what do you mean by "This application runs as a 
>>>> service". If the application is a Windows Service application, you can 
>>>> only run it, well, as service, nothing else. With that assumption, yes, 
>>>> windows services are meant to run without the requirement of a user 
>>>> loggin on.
>>>>
>>>> If your programmer does not know this, I double his application is a 
>>>> Windows service app.
>>>>
>>>> "Randy"  wrote in message 
>>>> news:OWLWtEaGJHA.2252@TK2MSFTNGP02.phx.gbl...
>>>>> Thanks in Advance!
>>>>>
>>>>> My programmer is developing an application that imports a text file to 
>>>>> a database. This application runs as a service. This 
>>>>> application/service usually runs on Windows Servers where the I.T. 
>>>>> Department requires the server to be logged off (for security 
>>>>> reasons). My programmer does not think it is possible for our app to 
>>>>> import the file while the computer is logged off because Windows is a 
>>>>> profile based OS and security is based on the samAccountName and a 
>>>>> Windows Principle object.
>>>>>
>>>>> Does anyone know of a way to make this work?
>>>>
>>>
>>
>
date: Fri, 19 Sep 2008 12:50:34 -0500   author:   Randy

Re: Can Service access networked computer while logged off?   
I think it is Yes only if the network is a workgroup (peer-to-peer).

"Randy"  wrote in message 
news:OP4n%23AoGJHA.2580@TK2MSFTNGP05.phx.gbl...
> Correct me if I'm wrong, but shouldn't the local account work if that 
> account was setup on both computers (like in a simple workgroup)?
>
>
> "Norman Yuan"  wrote in message 
> news:%23HJ0bnmGJHA.2252@TK2MSFTNGP04.phx.gbl...
>> Windows service could be configured to run with different user account, 
>> be it local account or domain account. Obviously, local accounts do not 
>> have access to resources outside the box. To access files on a 
>> networkshare, you need to run the windows service with a domain account 
>> that has the permission to that networkshare. Also the network share need 
>> to be refereed as UNC name (\\servername\sharename\folder...), not as 
>> mapped network drive, which only exists with lonnged on user.
>>
>> "Randy"  wrote in message 
>> news:OC$I91cGJHA.468@TK2MSFTNGP06.phx.gbl...
>>> Norman,
>>>
>>> Yes it is actually a Windows service, and yes it stays running when you 
>>> log off the machine. The problem is that it cannot access a network 
>>> computer and import the text file into the database while logged off. 
>>> This is the part he is stumped on. By the way, here is what I know about 
>>> how the import process works; the service when started spawns an exe 
>>> that watches a directory for the particular text file to be created. 
>>> Once created, it get's imported into the database.
>>>
>>>
>>> "Norman Yuan"  wrote in message 
>>> news:%23NtG7gcGJHA.1160@TK2MSFTNGP05.phx.gbl...
>>>> Type error:
>>>> "I double his application" should have been "I doubt his..."
>>>>
>>>> "Norman Yuan"  wrote in message 
>>>> news:OKV5F5bGJHA.612@TK2MSFTNGP06.phx.gbl...
>>>>> It is not clear what do you mean by "This application runs as a 
>>>>> service". If the application is a Windows Service application, you can 
>>>>> only run it, well, as service, nothing else. With that assumption, 
>>>>> yes, windows services are meant to run without the requirement of a 
>>>>> user loggin on.
>>>>>
>>>>> If your programmer does not know this, I double his application is a 
>>>>> Windows service app.
>>>>>
>>>>> "Randy"  wrote in message 
>>>>> news:OWLWtEaGJHA.2252@TK2MSFTNGP02.phx.gbl...
>>>>>> Thanks in Advance!
>>>>>>
>>>>>> My programmer is developing an application that imports a text file 
>>>>>> to a database. This application runs as a service. This 
>>>>>> application/service usually runs on Windows Servers where the I.T. 
>>>>>> Department requires the server to be logged off (for security 
>>>>>> reasons). My programmer does not think it is possible for our app to 
>>>>>> import the file while the computer is logged off because Windows is a 
>>>>>> profile based OS and security is based on the samAccountName and a 
>>>>>> Windows Principle object.
>>>>>>
>>>>>> Does anyone know of a way to make this work?
>>>>>
>>>>
>>>
>>
>
date: Sat, 20 Sep 2008 08:09:00 -0700   author:   Norman Yuan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us