How to Restart Window Services via CMD

April 26, 2010

REM Start of Script

@echo off
REM – File: [File Name]
REM – Description: [Description]
REM – Author: [You]
REM – ADD REM comments if you don’t want to restart any
REM – of Services
echo Restarting Services…
echo ======================================================
net stop “[Service Name]”
net start “[Service Name]”
echo ======================================================
echo Services Restarted

PAUSE

REM End of Script

NOTE :You can add above script into a *.bat file and then run this adhoc or using Windows Scheduled Tasks

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: