Fix T1003.006 Test #2 prereq_command: incorrect ExportedCommands key (#3297)

Co-authored-by: kali <kali@kali-hp.kali>
Co-authored-by: Bhavin Patel <bhavin.j.patel91@gmail.com>
Co-authored-by: Hare Sudhan <27735081+cyberbuff@users.noreply.github.com>
This commit is contained in:
alexw07777
2026-03-24 02:57:11 +01:00
committed by GitHub
parent 9afe9e4bbf
commit 2356c60c26
+1 -2
View File
@@ -64,8 +64,7 @@ atomic_tests:
DSInternals must be installed
prereq_command: |
$RequiredModule = Get-Module -Name DSInternals -ListAvailable
if (-not $RequiredModule) {exit 1}
if (-not $RequiredModule.ExportedCommands['DSInternals']) {exit 1} else {exit 0}
if (-not $RequiredModule) {exit 1} else {exit 0}
get_prereq_command: |
Install-Module -Name DSInternals -Scope CurrentUser -Force
executor: