Are you saying the .reg does not correctly add files as files, and folders as folders? Because it does for me. Quotes were a bitch to pass right
Not saying that at all. I was using this PS script. Code: param([switch]$Elevated) function Test-Admin { $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) $currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator) } if ((Test-Admin) -eq $false) { if ($elevated) { # tried to elevate, did not work, aborting } else { Start-Process powershell.exe -Verb RunAs -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ($myinvocation.MyCommand.Definition)) } exit } 'running with full privileges' add-mppreference -exclusionprocess "%USERPROFILE%\desktop", "%USERPROFILE%\downloads", "E:\Portable_Files", "D:\Portable_Files", "F:\", "M:\OInstall.exe"
Yeah, to make it work it needs -ExclusionPath instead of -exclusionprocess, that one should only be used with filename.exe without path (not a great idea to wildcard exclude as such). -ExclusionPath implies blocking process too, only more specific. I very much hate everything about .ps1 scripts - not click to run, useless "security" feature that you can bypass with a parameter, so I always prefer to bundle anything powershell in batch files.
We can do the same with Powershell or vbs or something else but It's always good to offer choices , which one is simplest users will decide
There was a time when people even used cracks for AVs (in Kaspersky's and ESET's glory days) and most of those were malicious. It actually led to most AV vendors dropping lame time-limited shareware and providing a functional free version of their products, rather than have their reputation damaged by cracked versions. I'm not saying your tool is malicious - I'm just saying the subject is rather taboo to be manipulated by a third-party binary. Microsoft has provided powershell cmdlets to control Defender, and that's what should be used all the way. Don't let my post discourage you one bit - I actually appreciate the effort and quality you've put in your tool, looking forward to your next endeavor!
injector is so cool thank you i use it with commande line, or batch, samples dlinjector.Exe and bat in same file : dInjector.exe /A path or file to exclude