MDATP icon indicating copy to clipboard operation
MDATP copied to clipboard

Move `Get-ChildItem` Below `Test-Path`

Open aotongarcia opened this issue 4 years ago • 0 comments

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!

aotongarcia avatar Mar 15 '22 17:03 aotongarcia