retsak / 2022_MMSMOA

Scripts for MMS MOA 2022
MIT License
7 stars 1 forks source link

File Rename flags AntiMalware Engine #1

Open byteben opened 2 years ago

byteben commented 2 years ago

Awesome script, thank you!

When the script attempts to rename a file with illegal characters, Defender blocks it.

At Line: [System.IO.Path]::GetInvalidFileNameChars()

ForEach-Object : At C:\users\Bond\Downloads\mms.ps1:88 char:78

retsak commented 2 years ago

Uploaded a new file that replaces the method [System.IO.Path]::GetInvalidFileNameChars() with a static array of characters. Could you give it a try?

byteben commented 2 years ago

Thanks man, Defender isn't liking the File Rename at all still :) image