LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I restart an NI Web Service from Windows CMD line?

I need to restart a LabVIEW web service from the cmd line.

 

I know I can just stop and start the NI Web Server entirely through Windows Services but there's more than a few (NI Web) services and that takes a lot more time than I'd like.

 

I see that there's a NI Web Services API Key page... does this mean there is a web API I can hit to restart a web service by name?

 

Thanks

0 Kudos
Message 1 of 2
(1,229 Views)

If it's a service under windows service and you're okay with using cmd line, would "net stop [service name]" "net start [service name]" do the trick?

 

See this super user thread for details: https://superuser.com/questions/301765/restart-a-windows-service-from-the-command-line

 

You may run into issues if there are dependencies.

Using Labview 2022, Windows 10
0 Kudos
Message 2 of 2
(1,139 Views)