Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



how to restart windows services in windows 7

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-02-2010
Member
 
Join Date: Dec 2009
Posts: 66
how to restart windows services in windows 7
  

My dell desktop is installed with windows 7 operating system. I am having a service application which is built in C#.NET. Which i want to restart my winservice with another application any one familiar how to go about it. I would like to know the procedure to achieve this as soon as possible. Any help would be appreciated.

Reply With Quote
  #2  
Old 27-02-2010
Member
 
Join Date: May 2008
Posts: 4,081
Re: how to restart windows services in windows 7

The procedure to restart the windows services in windows 7 is very musch simple you simply need to run the "net stop <name _of _the _service>" if you want to stop a service and the "net start <name _of _the _service>" which you want to start the classes to natively start/stop services is already included in the .Net Framework.
Reply With Quote
  #3  
Old 27-02-2010
Member
 
Join Date: Jan 2008
Posts: 3,380
Re: how to restart windows services in windows 7

If you want to restart the windows services in windows 7 then try the steps which i have mentioned below this must help you for sure:

1. First of all you have to stop the service using Run "net stop <service-name>"
2. and then simply restart the service again using the Run "net start <service-name>"

Hope this would have solved your problem.
Reply With Quote
  #4  
Old 27-02-2010
Member
 
Join Date: Dec 2009
Posts: 66
Re: how to restart windows services in windows 7

Thanks a lot for taking the initiative to reply me but i am still not able to start the desired windows service with the methods you both suggested above although the user controls are on in my windows 7. But anyway it works just fine with windows XP . If you have any other idea then please help me soon.
Reply With Quote
  #5  
Old 27-02-2010
Dr. V
 
Posts: n/a
Re: how to restart windows services in windows 7

Are you sure enough about the User Access control turned on. and also be sure that you have standard user rights and under the windows XP. i think you are using the administrator account so it is advisable to change the requestedExecutionLevel entry inside the manifest of your application to requireAdministrator. accept the UAC prompt as soon as you start the application in order to start and stop the application.
Reply With Quote
  #6  
Old 27-02-2010
Member
 
Join Date: Nov 2005
Posts: 3,023
Re: how to restart windows services in windows 7

The easiest way to achieve this is using the taskscheduler for starting the application with the administrtators right

1 Start the computer management MMC
2 Then simply open the Task scheduler Library and right click it and select new folder rename it as mytasks.
3 Now Right click mytasks and the select create task. and name the task as task1 (or whatever you wish).Remember to and mark the checkbox ''Run with highest priviligies''
4 Now select the actions tab and then select the program you want to run and click OK to create the task
5 You can create a new task shortcut on the desktop and then type the following command
"C:\Windows\System32\schtasks.exe /RUN /TN "mytasks\task1"
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "how to restart windows services in windows 7"
Thread Thread Starter Forum Replies Last Post
How to create Shutdown / Restart / Lock Icons in Windows Vista or windows 7 MindIT! Tips & Tweaks 2 27-02-2012 11:52 PM
How to turn off the automatic restart for Windows Update on Windows 7 The-Tiago Operating Systems 6 07-03-2011 10:10 AM
Windows 7: Unable to start Windows event log services - Error 4201 Doriquto Operating Systems 5 15-12-2010 09:07 PM
Permissions required to restart services susan Windows Server Help 2 09-10-2008 01:20 PM
Terminal Services (RDP) Clients - Restart Prompts after AU disabled Kuval Server Update Service 4 26-09-2007 07:56 PM


All times are GMT +5.5. The time now is 09:42 PM.