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"