Configure Netop Host service to restart on a schedule using Task Scheduler

Modified on Mon, 17 Nov at 11:19 AM

Restarting the NetOp service may be necessary during troubleshooting, updates, or configuration changes, and using a simple batch script provides a fast and reliable way to automate this task. By creating a small .bat file that stops and restarts the service, administrators can streamline maintenance and ensure consistent behavior across systems without requiring hands-on interaction. 


1. Open Notepad (Start > in search type notepad and select when found).


Note: You may need to run notepad with elevated privileges if you want to save the file to the root of C:\  (right-click and select Run as administrator when found from the search results).

 

Add the following lines in the open text file:

net stop "NetOp Host for NT Service"

net start "NetOp Host for NT Service"


Notes:

To locate the correct service name, right-click the service in Services and select Properties, use the "Service Name:".

If the service is slow to stop it could cause a failure when trying to start the service, add the following command to create a pause between the stop and start of the service(s).  timeout /t 10   (10 = 10 seconds, can change to suite needs).




Example:


In Notepad click on the File menu and select Save As.

 

In the Save As window select your save destination (example C:\), then at the bottom under Save as Type: click the drop down menu and select "All Files (*.*)". 

Type a name for the file and save with the .BAT extension.



2. Run the .bat file to verify the service restarts.

Navigate to the saved file and right-click > select Run as administrator.

Verify the command prompt comes up and you see the service stopping and then starting.



3. Open Task Scheduler (Start > in search type Task Scheduler and select when found).

 

Once Task Scheduler opens, in the right column window click on Create Task:


In the General tab, type a name for the service. Enable the "Run whether user is logged on or not" and "Run with highest privileges".



Click OK


On theTriggers tab select New

Begin the task: On a schedule

Settings: Select the option needed, e.g. Daily

Select the Start: day and time the task will start triggering.  If set for Daily, Weekly or Monthly the time configured will be used for the recurring triggers.


Click OK

 

On the Actions tab, click New

Action: Start a program

Program/script: click the Browse button and navigate to your saved .bat file.



Click OK

 

Leave the rest of the settings default and slect OK again to create the task.  You will be prompted to enter user credentials with administrative rights if "Run with highest privileges" was selected.

If running on a DSSRV use the DSServiceUser user credentials. 

 

4. Now click on Task Scheduler Library folder in the left column, verify the schedule has been created and is listed.


You can easily deploy this service-restart script across multiple machines using standard management tools such as Group Policy, Intune, SCCM, or PowerShell Remoting. By creating a scheduled task or remote execution job, the script can run automatically and consistently on all targeted devices at the same time, ensuring a reliable and centralized way to restart the NetOp service without requiring manual intervention on each machine.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article