

Rights - CCLCSWRPWPDTLOCRRC, please refer to the Access Rights and Access Masks and Directory Services Access RightsĬC: ADS_RIGHT_DS_CREATE_CHILD - Create a child DS object. It has the default owner, default group, and it has the Security descriptor control flags (A CCLCSWRPWPDTLOCRRC SY): A description of one part of above command is as follows: It lists all the permissions each User / Group on this computer has with regards to.

Output of this will be something like this: D:(A CCLCSWRPWPDTLOCRRC SY)(A CCDCLCSWRPWPDTLOCRSDRCWDWO BA)(A CCLCSWLOCRRC IU)(A CCLCSWLOCRRC SU)S:(AU FA CCDCLCSWRPWPDTLOCRSDRCWDWO WD) Open up the command prompt and give the following command: C:/>sc sdshow

Login to an Administrator account on the computer which has the non-Admin account from which you want to Start/Stop the service.
#USING NEOLOAD WITHOUT LOCAL ADMIN PRIVILEGES 2016 CODE#
If the Windows User Account from which either you give the command or run the code is a non-Admin account, then you need to set the privileges to that particular user account so it has the ability to start and stop Windows Services. Deploy the WebService to IIS Root Folder (C:\inetpub\ When accessing the service through IIS, create a Visual Studio C# ASP.NET Web Application and put the code in there. Service.WaitForStatus(ServiceControllerStatus.Stopped, TimeSpan.FromSeconds(10.0)) If (service.Status = ServiceControllerStatus.Running) Service.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(10.0)) If (service.Status = ServiceControllerStatus.Stopped) Accessing the service through IIS using Network Service account.Ĭommand line command to start / stop services: C:/> net start Ĭ# Code to start / stop services: ServiceController service = new ServiceController(SERVICE_NAME) Directly accessing the service through logon Windows user account.Ģ. Primarily, there are two ways in which to Start / Stop a Windows Service.ġ. Below I have put together everything I learned about Starting/Stopping a Windows Service from a non-Admin user account, if anyone needs to know.
