From 08db7201760367f1ae809eabad1c2b2d0656d0eb Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Mon, 1 Sep 2025 10:51:45 -0400 Subject: [PATCH] Linting --- nxc/modules/schtask_as.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nxc/modules/schtask_as.py b/nxc/modules/schtask_as.py index 85fc9ec7..2379f837 100644 --- a/nxc/modules/schtask_as.py +++ b/nxc/modules/schtask_as.py @@ -53,9 +53,8 @@ class NXCModule: # Ensure trailing backslashes self.output_file_location = module_options["LOCATION"].rstrip("\\") + "\\" - if "SILENTCOMMAND" in module_options: - if module_options["SILENTCOMMAND"] == "True": - self.show_output = False + if "SILENTCOMMAND" in module_options and module_options["SILENTCOMMAND"] in ["True", "yes", "1"]: + self.show_output = False name = "schtask_as" description = "Remotely execute a scheduled task as a logged on user"