diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 69254487..f1f07666 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -99486,8 +99486,7 @@ credential-access: ' 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 ' diff --git a/atomics/Indexes/windows-index.yaml b/atomics/Indexes/windows-index.yaml index 211a425e..595540ff 100644 --- a/atomics/Indexes/windows-index.yaml +++ b/atomics/Indexes/windows-index.yaml @@ -80806,8 +80806,7 @@ credential-access: ' 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 ' diff --git a/atomics/T1003.006/T1003.006.md b/atomics/T1003.006/T1003.006.md index ee837699..2cd64744 100644 --- a/atomics/T1003.006/T1003.006.md +++ b/atomics/T1003.006/T1003.006.md @@ -96,8 +96,7 @@ Get-ADReplAccount -All -Server #{logonserver} ```powershell $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 Commands