From f505cfb1bb0170b97a097fc92d42f3273dc5c802 Mon Sep 17 00:00:00 2001 From: DReneau <53024966+DReneau@users.noreply.github.com> Date: Fri, 18 Oct 2024 21:48:42 -0700 Subject: [PATCH] Update PowerShell_Docker_Containers.mkape CommandLine combined/condensed to one-liner. --- Modules/Windows/PowerShell_Docker_Containers.mkape | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Modules/Windows/PowerShell_Docker_Containers.mkape b/Modules/Windows/PowerShell_Docker_Containers.mkape index 865ff577d..fc66dfbc6 100644 --- a/Modules/Windows/PowerShell_Docker_Containers.mkape +++ b/Modules/Windows/PowerShell_Docker_Containers.mkape @@ -1,18 +1,12 @@ Description: Docker Container Details Category: LiveResponse Author: DReneau -Version: 1.0 +Version: 1.1 Id: 87bf8201-6256-45ad-8b2b-a6034235db53 ExportFormat: txt Processors: - - Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe - CommandLine: | - $filePath = '%destinationDirectory%\docker_container_info.txt'; - - $dockerOutput = (docker version | Out-String).TrimEnd() + [System.Environment]::NewLine + [System.Environment]::NewLine + - (docker ps --all --format 'ID: {{.ID}} | Name: {{.Names}} | Image: {{.Image}} | Size: {{.Size}} | Status: {{.Status}} | Command: {{.Command}}' | Out-String).TrimEnd(); - - Set-Content -Path $filePath -Value $dockerOutput -Encoding UTF8; + - Executable: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe + CommandLine: "$filePath = '%destinationDirectory%\\docker_container_info.txt'; $dockerOutput = (docker version | Out-String).TrimEnd() + [System.Environment]::NewLine + [System.Environment]::NewLine + (docker ps --all --format 'ID: {{.ID}} | Name: {{.Names}} | Image: {{.Image}} | Size: {{.Size}} | Status: {{.Status}} | Command: {{.Command}}' | Out-String).TrimEnd(); Set-Content -Path $filePath -Value $dockerOutput -Encoding UTF8;" ExportFormat: txt # Documentation