From 827981d178b3ec6f7e5049d440cb25f4eacd79f5 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 8 Jan 2019 21:58:08 -0700 Subject: [PATCH] Wait for service to stop --- .bin/Scripts/functions/windows_updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/windows_updates.py b/.bin/Scripts/functions/windows_updates.py index 07da565b..2504fdfc 100644 --- a/.bin/Scripts/functions/windows_updates.py +++ b/.bin/Scripts/functions/windows_updates.py @@ -49,7 +49,7 @@ def enable_windows_updates(): def stop_service(service_name): """Stop service.""" - run_program(['sc', 'stop', service_name]) + run_program(['net', 'stop', service_name]) if __name__ == '__main__':