diff --git a/scripts/launch_sdio.py b/scripts/launch_sdio.py index fbeaa4c0..e5b0d46f 100644 --- a/scripts/launch_sdio.py +++ b/scripts/launch_sdio.py @@ -74,6 +74,14 @@ if __name__ == '__main__': log_dir = wk.log.format_log_path(tool=True).parent USE_NETWORK = False + # Windows 11 workaround + if wk.os.win.OS_VERSION == 11: + appid_services = ['appid', 'appidsvc', 'applockerfltr'] + for svc in appid_services: + wk.os.win.stop_service(svc) + if any([wk.os.win.get_service_status(s) != 'stopped' for s in appid_services]): + raise wk.std.GenericWarning('Failed to stop AppID services') + # Try to mount server try: USE_NETWORK = use_network_sdio() diff --git a/scripts/wk/setup/win.py b/scripts/wk/setup/win.py index e36fa733..b6863a05 100644 --- a/scripts/wk/setup/win.py +++ b/scripts/wk/setup/win.py @@ -41,11 +41,13 @@ from wk.os.win import ( get_os_activation, get_os_name, get_raw_disks, + get_service_status, get_volume_usage, is_activated, is_secure_boot_enabled, reg_set_value, reg_write_settings, + stop_service, winget_check, winget_import, winget_upgrade, @@ -945,6 +947,12 @@ def open_microsoft_store_updates() -> None: def open_snappy_driver_installer_origin() -> None: """Open Snappy Driver Installer Origin.""" + if OS_VERSION == 11: + appid_services = ['appid', 'appidsvc', 'applockerfltr'] + for svc in appid_services: + stop_service(svc) + if any([get_service_status(s) != 'stopped' for s in appid_services]): + raise GenericWarning('Failed to stop AppID services') run_tool('SDIO', 'SDIO', cwd=True, pipe=True, popen=True)