Questions tagged [network-service]

61 questions
98
votes
5 answers

How do I 'run as' 'Network Service'?

I am trying to run a process as another account. I have the command: runas "/user:WIN-CLR8YU96CL5\network service" "abwsx1.exe" but then this asks for the password. However there is no password set for the network service. Is what I am trying to do…
Exitos
  • 29,230
  • 38
  • 123
  • 178
18
votes
2 answers

Interactive command prompt as NETWORK SERVICE

How do I open an interactive application, such as cmd.exe or Windows Explorer, running as NETWORK SERVICE? There are ways to do it for the SYSTEM account, but NETWORK SERVICE is proving to be a challenge. I need this to work on Windows 7, but would…
EMP
  • 59,148
  • 53
  • 164
  • 220
11
votes
2 answers

Is it possible to get "NT AUTHORITY\NETWORK SERVICE" user independent of language?

I have encountered today a problem that I have never faced before. I have developed an application that uses SQL Server database. That application has a Windows Service that accesses the database. Since the Windows Service uses Network Service as…
8
votes
3 answers

Cannot Start Windows Service in NetworkService account

I have a windows service project implementation that I am trying to install as network service. process = new ServiceProcessInstaller(); process.Account = ServiceAccount.NetworkService; however whenever I try to start the service I get : System…
Saher Ahwal
  • 9,015
  • 32
  • 84
  • 152
7
votes
1 answer

Programmatically assigned network service access to folder using c#

I have an installer that runs some c# code. I want the c# code to give 'full control' to a folder for the 'network service' account. Is this possible? I see some examples online with connecting to a domain. But the network service is not on a domain…
Exitos
  • 29,230
  • 38
  • 123
  • 178
7
votes
3 answers

Android Network service discovery example Nsdchat not working

I'm trying out the official android NSDchat example to communicate between two android phones connecting to the same wifi network. After importing the project into eclipse, I changed only the target sdk to api level 22 instead of 16. I tried the app…
Varad Pingale
  • 131
  • 1
  • 4
7
votes
2 answers

Issue with starting as network service

I have an app that I am trying to start as a network service.. This is how I do it: sc create "App" binpath= "app path" obj= .\NetworkService password= "" But I keep getting an error - "The account name is invalid or does not exist, or the password…
Omi
  • 976
  • 2
  • 20
  • 35
6
votes
1 answer

IIS PowerShell Application Pool set as 'NetworkService' Account

I'm trying to create an Application Pool in IIS7 using PowerShell. I want this to run under the NetworkService account but currently this appears to try and set itself as an 'Other' user on the Application Pool rather than being recognised as a…
adamwri
  • 63
  • 1
  • 3
6
votes
4 answers

Slow opening SQLite connection in C# app using System.Data.SQLite

Edit 3: I guess my issue is resolved for the moment... I changed both my service and test app to run as the SYSTEM account instead of the NetworkService account. It remains to be seen if the benefits of changing the user account will persist, or if…
talz13
  • 248
  • 3
  • 12
4
votes
3 answers

How should I structure my ruby gem command line service?

I'm writing a ruby gem that users can install and use the command line ruby tool to interact with the service. You can start and stop the service (it will spawn off a child process). I've done a lot of research into the best things to use to write a…
tarnfeld
  • 25,992
  • 41
  • 111
  • 146
4
votes
1 answer

What is the location of "NT Authority\Network Service" home directory?

I have an java application for which its cache gets created in under C:\Users\. But when application runs as NT Authority\Network Service where does its cache get created ?
Jaimin Ajmeri
  • 572
  • 3
  • 18
3
votes
1 answer

Spawning a process from a windows service running as Network Service

I've found quite a few posts that seem to deal with scenarios along these lines, but I can't find a firm answer. I have a windows service that runs as Network Service. It runs under this account because it must access the SharePoint API on a…
3
votes
1 answer

Modify selected directory access permission in Inno Setup

In my project, I have an TInputDirWizardPage where user can select a directory for a database backup. So it can be any drive. I need to add NETWORK SERVICE account to the user list of this directory and modify it. Is it possible to set this in…
sina
  • 331
  • 4
  • 12
3
votes
1 answer

Android NsdManager not able to discover services

I'm running into a problem with Androids NsdManager when following their tutorial Using Network Service Discovery. I have a few zeroconf/bonjour hardware devices on my network. From my mac I can discover all of them as expected from my terminal…
zafrani
  • 4,030
  • 5
  • 31
  • 39
3
votes
1 answer

How to give SQL access to NETWORK SERVICE account?

I am trying to create a schema and a table that is accessible by a Windows Service that I wrote, but my service is unable to gain access to it... USE [tempdb] GO CREATE SCHEMA [blah] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE…
codenamezero
  • 2,724
  • 29
  • 64
1
2 3 4 5