From bf72d2ce96166efa31f8d4d5623c32b3d650e68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Mon, 15 Jun 2020 19:31:40 +0200 Subject: [PATCH] T1569.002: fix psexec prereq install Create folder for psexec_exe --- atomics/T1569.002/T1569.002.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomics/T1569.002/T1569.002.yaml b/atomics/T1569.002/T1569.002.yaml index acfbca1a9a..8ebf11497c 100644 --- a/atomics/T1569.002/T1569.002.yaml +++ b/atomics/T1569.002/T1569.002.yaml @@ -53,7 +53,7 @@ atomic_tests: get_prereq_command: | Invoke-WebRequest "https://download.sysinternals.com/files/PSTools.zip" -OutFile "$env:TEMP\PsTools.zip" Expand-Archive $env:TEMP\PsTools.zip $env:TEMP\PsTools -Force - New-Item -ItemType Directory ("#{psexec_exe}") -Force | Out-Null + New-Item -ItemType Directory (Split-Path "#{psexec_exe}") -Force | Out-Null Copy-Item $env:TEMP\PsTools\PsExec.exe "#{psexec_exe}" -Force executor: command: |