Replies: 2 comments
-
|
And what is the question? If you wanna run it against all drives (I don't know why) you'd have to write a powershell script or similar. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
One option is to make an Another is PowerShell 7, as Eric mentioned. Gemini came up with this, and you can tweak it as you see fit: # Define the base KAPE command with placeholders
$kapeCommandBase = '.\kape.exe --tsource {0} --tdest C:\temp --target KapeTriage --vss --zip %m_%d --debug'
# Get all valid drive letters on the system
$driveLetters = (Get-PSDrive -PSProvider FileSystem).Name
# Loop through each drive letter and execute the KAPE command
foreach ($drive in $driveLetters) {
# Format the KAPE command with the current drive letter
$kapeCommand = $kapeCommandBase -f $drive
# Display the command being executed for clarity (optional)
Write-Host "Executing command: $kapeCommand"
# Execute the KAPE command
Invoke-Expression $kapeCommand
}String interpolation, ftw. Yes, I tested it and it works, but tweak as needed, and strongly consider why you'd need to grab triage from every possible drive letter on a host. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm training to run Kape on all the drivers with one time execution, for example running Kon drive C,D and E.
Beta Was this translation helpful? Give feedback.
All reactions