From 4deebd8a85fcfbeeee70bd1210543e23368aaeb8 Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Fri, 15 Aug 2025 13:33:17 -0400 Subject: [PATCH] fix(get_gpos): remove recreating dest dir since it was creating redundant folder structures --- nxc/modules/get_gpos.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nxc/modules/get_gpos.py b/nxc/modules/get_gpos.py index 2de5d35d..42816740 100644 --- a/nxc/modules/get_gpos.py +++ b/nxc/modules/get_gpos.py @@ -86,9 +86,8 @@ class NXCModule: context.log.highlight(f"GPO Path: \\\\SYSVOL\\{gpo_path}") if self.download: - dest_folder = os.path.join(self.download_dest, gpo_path, gpo_guid.strip("{}")) context.log.display(f"Downloading GPO {gpo_guid} from SYSVOL share") - self.download_gpo(context, connection, gpo_path, dest_folder, gpo_guid) + self.download_gpo(context, connection, gpo_path, self.download_dest, gpo_guid) context.log.success(f"GPOs Found: {len(gpos_found)}") except Exception as e: