MDATP
MDATP copied to clipboard
Move `Get-ChildItem` Below `Test-Path`
If the x64 folder does not exist in the destination path, the script will fail with Access Denied error because there's no x64 folder to remove items from
I propose you move Test-Path above the Get-ChildItem to avoid this issue.
Thanks for this amazing script by the way!