diff --git a/server/service_windows.go b/server/service_windows.go
index <HASH>..<HASH> 100644
--- a/server/service_windows.go
+++ b/server/service_windows.go
@@ -109,11 +109,11 @@ func Run(server *Server) error {
 		server.Start()
 		return nil
 	}
-	isInteractive, err := svc.IsAnInteractiveSession()
+	isWindowsService, err := svc.IsWindowsService()
 	if err != nil {
 		return err
 	}
-	if isInteractive {
+	if !isWindowsService {
 		server.Start()
 		return nil
 	}
@@ -125,6 +125,6 @@ func isWindowsService() bool {
 	if dockerized {
 		return false
 	}
-	isInteractive, _ := svc.IsAnInteractiveSession()
-	return !isInteractive
+	isWindowsService, _ := svc.IsWindowsService()
+	return isWindowsService
 }
Allow nats-server to run as system user on Windows

Trying to run nats-server as nt authority/system user, the process would immediately exit with error: "The service process could not connect to the service controller."
This is now fixed