INTERACT FORUM

Windows => JRiver Media Center 32 for Windows => Topic started by: Awesome Donkey on January 21, 2018, 08:51:29 am

Title: Taming Windows Defender
Post by: Awesome Donkey on January 21, 2018, 08:51:29 am
So, Windows Defender. It's the anti-virus bundled with Windows now. While yes, you can use a third-party anti-virus application, a lot of users tend to stick with running just Windows Defender, myself included. With the release of Windows 10 (and subsequent updates to Windows 10) Windows Defender has been more deeply integrated into Windows 10 now, so issues associated with Defender can become more apparent. Windows Defender can and does interfere with JRiver Media Center's ability to playback all your media files.

You might remember the tutorial for taming Windows Defender on the Wiki here (https://wiki.jriver.com/index.php/Taming_Windows_Defender) but due to changes to Windows Defender and Windows 10, parts of that tutorial can't be applied anymore. So you want to know how to prevent Windows Defender on Windows 10 from interfering with JRiver Media Center? This is the tutorial for you!

Ready to go? Let's do this thing!

NOTE: If you're using an older Windows 10 build, your Windows Defender may look different. I'll try to keep this tutorial updated for future Windows 10 updates (and its visual changes to Windows Defender). Also, yes, I know that MC23's executables are shown in the screenshots. I haven't had time to update them, however the procedure is the same regardless of MC version!


Step 1 - Opening the Windows Defender Security Center window:

First, we need to open Windows Defender. You can do this by either right clicking on the Windows Defender shield icon in the system tray by the clock and selecting Open or you can open the Start Menu and search for Windows Defender Security Center. Once you find it and open it, you should be greeted with this window;

(https://i.imgur.com/6JzgSly.png)

See this? Alright, let's proceed to Step 2...


Step 2 - Navigating to the Exclusions list:

This can be a bit tricky and hard to find, but we can get you there. First, look for the Settings cog icon/button on the bottom left side (where the red arrow points below) and click on it...

(https://i.imgur.com/sSbdAhB.png)

Once we click on Settings, we're met with the following;

(https://i.imgur.com/hOX8ZZZ.png)

Now, see the red arrow next to Virus & threat protection settings? Click on Virus & threat protection settings to open that section. Once it's open, scroll down and look for Exclusions like in this screenshot...

(https://i.imgur.com/QQidqdq.png)

Click on Add or Remove exclusions like the red arrow in the screenshot above shows.


Step 3 - Adding Exclusions for JRiver Media Center to the Exceptions list:

Now, we're in the exceptions list. You should see a list like this screenshot below (sans any of the exclusions in this list)...

(https://i.imgur.com/V4WP9qC.png)

Now, we're going to add some exclusions. See the red arrow in the screenshot above next to Add an exclusion? Click the + button and you'll see a list of items...

(https://i.imgur.com/apqo36t.png)

We can add a File, a Folder, a File type and a Process to the exclusions. For the purpose of this tutorial, we're going to add exceptions for files, folders and file types. Keep in mind, we can only add one exception at a time, so I'll list files/folders/file types that should be added to the exceptions list. I'm using the 64-bit JRiver Media Center 25 build on Windows 10 as the example here, but if you're using the 32-bit build or an older JRiver Media Center (pre-25) build, you'll find the Media Center installation directory in the Program Files (x86) instead of the Program Files folder used for the 64-bit build of Media Center. I'll include a list of file locations for both 32-bit and 64-bit Media Center 25 below.

NOTE #1: This assumes Windows is installed on the C:\ drive. If you're using a drive letter other than C, adjust accordingly!
NOTE #2: Every time you add an exception, User Account Control will pop up a dialog asking for permission for the app to make changes to your device. Please press Yes!


Folders to add to the Windows Defender exception list:

For 64-bit JRiver Media Center 25:

C:\Program Files\J River\
C:\Program Files\J River\Media Center 25\

For 32-bit JRiver Media Center 25:

C:\Program Files (x86)\J River\
C:\Program Files (x86)\J River\Media Center 25\

Now, we need to add the J River folder that contains all the library files, thumbnails, etc. that's located in the hidden %APPDATA% (Roaming) folder. The easiest way to do it is add an exception for a folder, then with the Select Folder dialog open, at the top type in %APPDATA% and press Enter to open to that folder. From there click on the J River folder to select it and finally press the Select Folder button to add it to the exception lists. Here's what the Select Folder dialog looks like - the first upper red arrow is where you type %APPDATA% into the address bar, and the second lower red arrow is the J River directory we're looking for...

(https://i.imgur.com/fOLTrPF.png)

Also, I recommend adding folder exceptions to where your media files are stored, whether it be a on a NAS, on another hard drive, etc. For example, I keep my main music library in M:\Music with the backup music library in Z:\Music so I add both of these folders to the exception list.


Files to add to the Windows Defender exception list:

Honestly, adding folder exceptions *should* be enough to stop Windows Defender from interfering with Media Center. But I don't trust Windows Defender enough to not scan files inside a folder added to the exceptions. So this part is considered optional but I do recommend doing it. It's overkill and time consuming, I know, but it's better safe than sorry.

So here's some of the files you might want to try adding (one at a time) to the exception list.

For 64-bit JRiver Media Center 25:

C:\Program Files\J River\Media Center 25\CDLabeler.exe
C:\Program Files\J River\Media Center 25\dbghelp.dll
C:\Program Files\J River\Media Center 25\gnutls.dll
C:\Program Files\J River\Media Center 25\JRCrashHandler.exe
C:\Program Files\J River\Media Center 25\JRDisc.dll
C:\Program Files\J River\Media Center 25\JRImage.dll
C:\Program Files\J River\Media Center 25\JRMediaUninstall.exe
C:\Program Files\J River\Media Center 25\JRPlayer.dll
C:\Program Files\J River\Media Center 25\JRReader.dll
C:\Program Files\J River\Media Center 25\JRService.exe
C:\Program Files\J River\Media Center 25\JRShellExt.dll
C:\Program Files\J River\Media Center 25\JRTelevision.dll
C:\Program Files\J River\Media Center 25\JRTools.dll
C:\Program Files\J River\Media Center 25\JRWeb.exe
C:\Program Files\J River\Media Center 25\JRWMFactory.dll
C:\Program Files\J River\Media Center 25\JRWorker.exe
C:\Program Files\J River\Media Center 25\MC25.exe
C:\Program Files\J River\Media Center 25\Media Center 25.exe
C:\Program Files\J River\Media Center 25\Media Center 25.tlb
C:\Program Files\J River\Media Center 25\Media Editor.exe
C:\Program Files\J River\Media Center 25\PackageInstaller.exe
C:\Program Files\J River\Media Center 25\TWAINDSM.dll

For 32-bit JRiver Media Center 25:

C:\Program Files (x86)\J River\Media Center 25\CDLabeler.exe
C:\Program Files (x86)\J River\Media Center 25\dbghelp.dll
C:\Program Files (x86)\J River\Media Center 25\gnutls.dll
C:\Program Files (x86)\J River\Media Center 25\JRCrashHandler.exe
C:\Program Files (x86)\J River\Media Center 25\JRDisc.dll
C:\Program Files (x86)\J River\Media Center 25\JRImage.dll
C:\Program Files (x86)\J River\Media Center 25\JRMediaUninstall.exe
C:\Program Files (x86)\J River\Media Center 25\JRPlayer.dll
C:\Program Files (x86)\J River\Media Center 25\JRReader.dll
C:\Program Files (x86)\J River\Media Center 25\JRService.exe
C:\Program Files (x86)\J River\Media Center 25\JRShellExt.dll
C:\Program Files (x86)\J River\Media Center 25\JRTelevision.dll
C:\Program Files (x86)\J River\Media Center 25\JRTools.dll
C:\Program Files (x86)\J River\Media Center 25\JRWeb.exe
C:\Program Files (x86)\J River\Media Center 25\JRWMFactory.dll
C:\Program Files (x86)\J River\Media Center 25\JRWorker.exe
C:\Program Files (x86)\J River\Media Center 25\MC25.exe
C:\Program Files (x86)\J River\Media Center 25\Media Center 25.exe
C:\Program Files (x86)\J River\Media Center 25\Media Center 25.tlb
C:\Program Files (x86)\J River\Media Center 25\Media Editor.exe
C:\Program Files (x86)\J River\Media Center 25\PackageInstaller.exe
C:\Program Files (x86)\J River\Media Center 25\TWAINDSM.dll

If you use the Media Network and/or the Media Server features, Media Center will add a MC25.exe file to both the C:\Windows\System32 folder and the C:\Windows\SysWOW64 folder. So, add these files too if you're using Media Network, Media Server, etc. You might want to check the two directories regardless for the presence of the MC25.exe file and add exceptions. You'll probably want to add these to the exceptions list regardless if you chose not to add the file exceptions above since they're located outside of the Media Center installation directory.

C:\Windows\System32\MC25.exe
C:\Windows\SysWOW64\MC25.exe

I know there's more files inside the Media Center 25 install directory like in the Drivers and Plugins folders. It's up to you whether or not you want to manually add all those to the exception list.


File types to add to the Windows Defender exception list:

This is also considered optional, but I do it so Windows Defender isn't running real-time or on-demand scanning of my FLAC and other media files.

.ape
.avi
.cue
.dff
.dsf
.flac
.iso
.log
.m4a
.m4v
.mkv
.mov
.mp3
.mp4
.mpeg
.mpg
.shn
.wav
.wma
.wmv
.wv

And whatever else file types you're using. Adjust this to your own needs!

So, we've added a bunch of exceptions for JRiver Media Center. If yours looks kinda like this...

(https://i.imgur.com/fPBrKWU.png)
(https://i.imgur.com/1ZyhoN0.png)

If you're satisfied, call it done. Congrats, you've added Media Center exceptions to Windows Defender. I'd recommend rebooting after doing this. If you have any questions or notice any issues with the tutorial or any feedback, please post below! :)

Enjoy!
Title: Re: Taming Windows Defender on Windows 10
Post by: 1maynard on January 21, 2018, 09:02:43 am
Thanks for the tutorial. That is fantastic. I will be working on that this afternoon. I had set my win 10 firewall to allow all JRiver apps etc through but was not sure how to do this in Defender. This should be a sticky or added to the Wiki.

Great job.
Title: Re: Taming Windows Defender on Windows 10
Post by: mattkhan on January 21, 2018, 09:26:18 am
AFAIK excluding a folder excludes all files and folders within that folder so why do you need to add all the files individually?
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 21, 2018, 09:31:20 am
Thank you. Hopefully it helps with any issues users experience with running Media Center with Windows Defender.

One of the most common symptoms of an issue I've seen running MC with Defender without taming is, MC will open more "slowly", even when running MC on a system with a SSD. Meaning you start Media Center 23 but the main window doesn't immediately appear but you can see Media Center 23.exe running in the Task Manager. Eventually MC's window will load after 10+ seconds. This is something I've noticed on clean installs, but once I've added all the exceptions in place, MC will open much more quickly. I'm assuming Defender is scanning MC via its real-time scanner, hence the slowdowns. Once added to the exceptions, Defender shouldn't be scanning MC anymore and thus no more "slowdowns" when starting MC.

AFAIK excluding a folder excludes all files and folders within that folder so why do you need to add all the files individually?

This is true, adding folder exceptions is likely enough. But I'll go the overkill route and add the individual files too, just in case. This is because I really don't trust Defender to exclude all files inside a folder, even though it likely does.

EDIT: I changed around the order of the tutorial, adding folder exceptions first and adding a note to file exceptions about it likely not being needed and is overkill.
Title: Re: Taming Windows Defender on Windows 10
Post by: tzr916 on January 21, 2018, 05:12:40 pm
Nice write up. Thankfully I've been using MC on five PC's for 2+ years on Windows 10 and never had any need to (permanently) "tame" Windows Defender. It just works.
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 22, 2018, 05:17:15 am
Yeah, it's something I've noticed within the last 6 months to a year (the Defender causing MC to open slowly thing).

It may or may not still do it, not sure. I'll find out in a few weeks once I do my quarterly clean install.
Title: Re: Taming Windows Defender on Windows 10
Post by: 1maynard on January 22, 2018, 07:02:34 am
I'll find out in a few weeks once I do my quarterly clean install.

On your quarterly clean install? Is that a Windows install, MC, or both? Care to elaborate?
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 22, 2018, 07:48:53 am
On your quarterly clean install? Is that a Windows install, MC, or both? Care to elaborate?

Both (minus library backing being restored for MC).
Title: Re: Taming Windows Defender on Windows 10
Post by: rudyrednose on January 22, 2018, 03:36:22 pm
I'll find out in a few weeks once I do my quarterly clean install.

And I thought I was radical doing a clean install each year    ;D

Thank you for taking the time to write this.
Title: Re: Taming Windows Defender on Windows 10
Post by: tzr916 on January 22, 2018, 09:09:13 pm
I'm thinking you should also exclude not just files and folders but any MC Processes. To do that you MUST enter the entire PATH and process name into Defender. Examples:

C:\Program Files\J River\Media Center 23\MC23.exe
C:\Program Files\J River\Media Center 23\Media Center 23.exe
C:\Program Files\J River\Media Center 23\JRService.exe
C:\Program Files\J River\Media Center 23\JRWorker.exe
C:\Program Files\J River\Media Center 23\JRWeb.exe
Title: Re: Taming Windows Defender on Windows 10
Post by: Antognini on January 22, 2018, 11:38:29 pm
Any idea why Windows Defender is causing JRiver problems? Can you at least characterize the issues?
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 23, 2018, 03:32:24 am
I'm thinking you should also exclude not just files and folders but any MC Processes. To do that you MUST enter the entire PATH and process name into Defender. Examples:

C:\Program Files\J River\Media Center 23\MC23.exe
C:\Program Files\J River\Media Center 23\Media Center 23.exe
C:\Program Files\J River\Media Center 23\JRService.exe
C:\Program Files\J River\Media Center 23\JRWorker.exe
C:\Program Files\J River\Media Center 23\JRWeb.exe

It's probably not a bad idea to do, in addition to those I'd also add...

C:\Program Files\J River\Media Center 23\PackageInstaller.exe
C:\Windows\System32\MC23.exe
C:\Windows\SysWOW64\MC23.exe

Any idea why Windows Defender is causing JRiver problems? Can you at least characterize the issues?

Nope. Could be quirks in its real-time scanning engine to false positives. Probably not the latter, that seems to be an issue with some third-party anti-virus applications (even though a good bit of MC's files have a digital signature).

My guess (in regards to the delay when starting MC I've seen before taming Defender) is it doesn't recognize a specific file (e.g. Media Center 23.exe) and is either actively scanning the executable(s) and/or uploading the file to the cloud for analysis.
Title: Re: Taming Windows Defender on Windows 10
Post by: mattkhan on January 23, 2018, 03:50:02 am
fwiw I found https://www.reddit.com/r/Windows10/comments/5gf38v/when_excluding_a_process_in_windows_defender_do_i/ provides a link to the official, updated, docs on this subject

https://docs.microsoft.com/en-us/windows/threat-protection/windows-defender-antivirus/configure-exclusions-windows-defender-antivirus

which includes the line

Quote
When you add a process to the process exclusion list, Windows Defender AV will not scan files opened by that process, no matter where the files are located. The process itself, however, will be scanned unless it has also been added to the file exclusion list.

This also says you can use wildcards so c:\Program Files\J River\Media Center 23\* should be sufficient (if you're happy using wildcards)

I suppose you could just use that entry alone if you just want to give a pass to MC as the process exclusion also excludes any files opened by that process (whereas a file/folder exclusion excludes those files when touched by any process).
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 23, 2018, 04:35:01 am
Huh, interesting. Using wildcards would certainly make life easier when doing exclusions. But looking at the wildcard examples the MS article lists here (https://docs.microsoft.com/en-us/windows/threat-protection/windows-defender-antivirus/configure-extension-file-exclusions-windows-defender-antivirus), this rule *should* cover all files and subfolders (unless I got it wrong);

C:\Program Files\J River\*\*

It can probably be used with an environment variable too. I'll go through these articles and test some stuff.
Title: Re: Taming Windows Defender on Windows 10
Post by: 1maynard on January 23, 2018, 06:56:55 am
Good stuff Guys. Very helpful for computer dummies like me.
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 23, 2018, 07:30:23 am
If you are going to do this, is it really necessary to exclude anything more than the "C:\Program Files\J River\Media Center 23\Media Center 23.exe" process?
As far as I can see, everything to do with playing back media, importing, tagging files etc. is all done via that.
 
JRWeb.exe is the web browser, and that probably should be scanned by Defender.
JRWorker.exe seems related to podcast downloading - so I can't imagine there is any performance impact for it being scanned. Though it's probably safe, I always err on the side of caution with anything network-related.
That said, since those are launched as child processes of "Media Center 23.exe" wouldn't they also be excluded?
 
If you're creating a process exclusion, Defender also asks whether you want that process to be added to the Controlled Folder Access exclusion list, if you have it enabled.
These two entries are linked, so if you remove one it will prompt and ask if you wish to remove the other as well.
 
It is a real nuisance to set up in the beginning, but CFA offers some serious protections against ransomware or other malware.
Though I think there are some areas where CFA could be improved, I feel a lot better knowing that only whitelisted applications can make changes to my document and media folders.
 
Huh, interesting. Using wildcards would certainly make life easier when doing exclusions. But looking at the wildcard examples the MS article lists here (https://docs.microsoft.com/en-us/windows/threat-protection/windows-defender-antivirus/configure-extension-file-exclusions-windows-defender-antivirus), this rule *should* cover all files and subfolders (unless I got it wrong); C:\Program Files\J River\*\*
It can probably be used with an environment variable too. I'll go through these articles and test some stuff.
If you're using the Fall Creators Update (1709), I believe that this would have to be set via the Group Policy Editor, which means that you need the Pro version of the OS.
I don't see any way to enter a custom path for file/folder exclusions any more, only process exclusions - and those only support wildcards at the end of a path. (https://docs.microsoft.com/en-us/windows/threat-protection/windows-defender-antivirus/configure-process-opened-file-exclusions-windows-defender-antivirus#use-wildcards-in-the-process-exclusion-list)
Title: Re: Taming Windows Defender on Windows 10
Post by: RoderickGI on January 23, 2018, 03:00:49 pm
"C:\Program Files\J River\*\*"     and      "C:\Program Files\J River\*"  are equivalent anyway.
Title: Re: Taming Windows Defender on Windows 10
Post by: Manfred on January 23, 2018, 03:09:22 pm
Great work.

Shouldn't that be part of the Wiki?
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 23, 2018, 11:37:40 pm
"C:\Program Files\J River\*\*"     and      "C:\Program Files\J River\*"  are equivalent anyway.
I believe they are functionally different, but practically the same in this case.
If I’m reading things correctly:
\J River\* includes all contents of the J River folder and its subfolders.
\J River\*\* excludes the contents of the J River folder but permits everything contained within its subfolders.
 
I’d still feel a lot more comfortable excluding a single process than a directory and everything contained within.
There doesn’t seem to be any reason to exclude more than "C:\Program Files\J River\Media Center 23\Media Center 23.exe" and that is what works best if you have Controlled Folder Access enabled.
Title: Re: Taming Windows Defender on Windows 10
Post by: RoderickGI on January 24, 2018, 02:49:50 pm
Hmmm, your interpretation could be right there RD.

Just for reference, my Norton 360 automatically created rules for the following;
C:\Program Files\J River\Media Center 23\Media Center 23.exe
C:\Program Files\J River\Media Center 23\JRWorker.exe
C:\Program Files\J River\Media Center 23\JRWeb.exe

So I would think those should be the minimum, with the others mentioned optional.
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 24, 2018, 03:10:21 pm
Just for reference, my Norton 360 automatically created rules for the following;
C:\Program Files\J River\Media Center 23\Media Center 23.exe
C:\Program Files\J River\Media Center 23\JRWorker.exe
C:\Program Files\J River\Media Center 23\JRWeb.exe

So I would think those should be the minimum, with the others mentioned optional.
I see no reason to exclude JRWorker / JRWeb, unless someone on the JRiver team tells us otherwise.
And since they're executed via the Media Center 23 process, I'm not sure it would make a difference whether you exclude them or not.
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on January 24, 2018, 03:37:50 pm
I see no reason to exclude JRWorker / JRWeb, unless someone on the JRiver team tells us otherwise.
And since they're executed via the Media Center 23 process, I'm not sure it would make a difference whether you exclude them or not.
I think you would need to exclude those, too.
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 25, 2018, 02:28:53 am
I think you would need to exclude those, too.
Do they do anything more than run the web browser / download podcasts?
If that's all they do, it seems unnecessary - or potentially harmful - to exclude them. A web browser should never be excluded from anti-virus.
 
I always err on the side of caution, so my recommendation is to only set up process exclusions for "C:\Program Files\J River\Media Center 23\Media Center 23.exe" EDIT: and "C:\Program Files\J River\Media Center 23\JRWorker.exe" if you are experiencing problems caused by Defender.


But if you want to exclude everything that Media Center does, it would make more sense to set up folder exclusions than 15+ different processes (if you want to get them all).
"C:\Program Files\J River\" and "%APPDATA%\J River\" - or "%APPDATA%\J River\Media Center 23\Plugins\" if you want to be safer - should do that.
I really don't think it's necessary though.
Title: Re: Taming Windows Defender on Windows 10
Post by: Hendrik on January 25, 2018, 03:01:30 am
JRWorkers primary purpose is to perform file analysis on newly imported media files, as well as extract thumbnails. And enumerate handheld devices.
Title: Re: Taming Windows Defender on Windows 10
Post by: flac.rules on January 25, 2018, 03:03:23 am
This is how i tamed it:

Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 25, 2018, 04:56:55 am
JRWorkers primary purpose is to perform file analysis on newly imported media files, as well as extract thumbnails. And enumerate handheld devices.
Ah, I did try running the analyzer but I suppose JRWorker is only used for auto-import, which would explain why I only ever noticed it running when a new podcast episode is downloaded.

This is how i tamed it:
That seems smart.
Title: Re: Taming Windows Defender on Windows 10
Post by: imeric on January 25, 2018, 11:38:00 am
I just did a clean install of the Fall Creators Update on one of my PCs and MC seems to be working fast and flawlessly as-is...
But I will probably end-up creating exclusions in Windows Defender just in case it does slow MC down eventually...

I had Mcafee on that same machine and never will install that crap again on any of my PCs...I gave it a try as it was provided for free by my Internet Service Provider... Bloated bloated bloated...

This is a great post and the How-to should definitely be on the Wiki.  Good Job Awesome Donkey thanks for taking the time!
Title: Re: Taming Windows Defender on Windows 10
Post by: DocLotus on January 27, 2018, 02:07:01 pm
This is great stuff Awesome Donkey. I asked for this several months ago after the Fall Creators Update came out but got no response; guess it was too early for anyone to figure it all out as it is very complicated.

One thing though, this is VERY complicated stuff for the average user who will never attempt it.

I think what is needed is a script, bat file or better yet, auto detection upon installing MC that automatically adds all the correct locations, folders & files to Defender exclusions.

The real problem I have always had with manually adding Defender exclusions is that next time when we go to MC 24 all those MC23 exclusions become useless (I ALWAYS forget to update them). The only way I see to keep them current is to have MC itself automatically add the exclusions.

What do you guys think ::)
Title: Re: Taming Windows Defender on Windows 10
Post by: mattkhan on January 27, 2018, 02:16:09 pm
You can write a script in powershell for this

https://github.com/MicrosoftDocs/windows-itpro-docs/blob/master/windows/threat-protection/windows-defender-antivirus/configure-extension-file-exclusions-windows-defender-antivirus.

https://msdn.microsoft.com/en-us/library/dn455323(v=vs.85).aspx
e.g.

Code: [Select]
Add-MpPreference -ExclusionProcess "C:\Program Files\J River\Media Center 23\Media Center 23.exe"
Add-MpPreference -ExclusionPath "C:\My\Music\Folder"

Title: Re: Taming Windows Defender on Windows 10
Post by: RoderickGI on January 27, 2018, 04:52:43 pm
I think what is needed is a script, bat file or better yet, auto detection upon installing MC that automatically adds all the correct locations, folders & files to Defender exclusions.

I suspect that any application that tried to create Defender exclusions for its own executables would trigger a security response. Imagine if any application, or its installation script, could do that! What do you think?

But an Admin user running a script as per Mattkhan's suggestion would be allowed.
Title: Re: Taming Windows Defender on Windows 10
Post by: DocLotus on January 27, 2018, 05:25:34 pm
Quote
Code: [Select]
Add-MpPreference -ExclusionProcess "C:\Program Files\J River\Media Center 23\Media Center 23.exe"
Add-MpPreference -ExclusionPath "C:\My\Music\Folder"
Same problem... it's the number 23 in the script that makes the script obsolete as soon as MC 24 come out. If I don't manually update the script to MC 24 (and re-run it) it is no longer viable after MC 24 is installed.

Seems the only way to assure constant updates is for MC itself to somehow make the exclusions. Don't know the best way to do that but JRiver has some really sharp developers on staff that could hopefully figure it out.
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 27, 2018, 05:57:10 pm
The only way I see to keep them current is to have MC itself automatically add the exclusions.

This is probably a bad idea. I don't think Microsoft would like an application adding itself (and its other files) automatically to the Defender exclusions list - in fact, it might cause MC to get flagged in some sort of MS list doing that. Seems like a terrible thing to do/allow, security-wise.
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on January 27, 2018, 06:00:16 pm
This is probably a bad idea. I don't think Microsoft would like an application adding itself (and its other files) automatically to the Defender exclusions list - in fact, it might cause MC to get flagged in some sort of MS list doing that. Seems like a terrible thing to do/allow, security-wise.
Agreed.

Thanks, Awesome Donkey, for taking on this awful monster.
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 27, 2018, 06:07:15 pm
One thing though, this is VERY complicated stuff for the average user who will never attempt it.
That's why I have said that the only thing you should do is either exclude the two processes:
"C:\Program Files\J River\Media Center 23\Media Center 23.exe" and "C:\Program Files\J River\Media Center 23\JRWorker.exe"

Or exclude the two directories:
"C:\Program Files\J River\" and "%APPDATA%\J River\"
 
It is unnecessary, and massively over-complicated, to do anything else.

I think what is needed is a script, bat file or better yet, auto detection upon installing MC that automatically adds all the correct locations, folders & files to Defender exclusions.
It should absolutely not do this under any circumstances.
I've never had Defender cause any problems for Media Center at all, and I'm surprised that it's been such an issue for some people.
And I would hope that Microsoft has protections in place to prevent applications from doing this - though I suppose if you're granting them elevated permissions, what's to stop them?
 
The real problem I have always had with manually adding Defender exclusions is that next time when we go to MC 24 all those MC23 exclusions become useless (I ALWAYS forget to update them). The only way I see to keep them current is to have MC itself automatically add the exclusions.
The two directories I listed are all you need if you want to set up version-agnostic rules.
 
You can write a script in powershell for this
https://github.com/MicrosoftDocs/windows-itpro-docs/blob/master/windows/threat-protection/windows-defender-antivirus/configure-extension-file-exclusions-windows-defender-antivirus.
https://msdn.microsoft.com/en-us/library/dn455323(v=vs.85).aspx
e.g.

Code: [Select]
Add-MpPreference -ExclusionProcess "C:\Program Files\J River\Media Center 23\Media Center 23.exe"
Add-MpPreference -ExclusionPath "C:\My\Music\Folder"
There's no need to exclude your media folders, unless you are wanting to exclude them system-wide rather than only from Media Center's processes.
Title: Re: Taming Windows Defender on Windows 10
Post by: DocLotus on January 27, 2018, 06:39:58 pm
Quote
That's why I have said that the only thing you should do is either exclude the two processes:
"C:\Program Files\J River\Media Center 23\Media Center 23.exe" and "C:\Program Files\J River\Media Center 23\JRWorker.exe"

Or exclude the two directories:
"C:\Program Files\J River\" and "%APPDATA%\J River\"
 
It is unnecessary, and massively over-complicated, to do anything else.

I agree. That is how I'm doing it.

However, I'm getting a little tired of having to revisit this topic every year after a new version of MC comes out just because of a number change. It just seems like something needs to be done to resolve the problem.

All I want to do is simply enjoy the wonders of MC & not have to constantly mess with little details like anti-virus exclusions on a yearly basis.

Is that asking too much??
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 27, 2018, 07:52:32 pm
I agree. That is how I'm doing it.
However, I'm getting a little tired of having to revisit this topic every year after a new version of MC comes out just because of a number change. It just seems like something needs to be done to resolve the problem.
All I want to do is simply enjoy the wonders of MC & not have to constantly mess with little details like anti-virus exclusions on a yearly basis.
Is that asking too much??
I think you missed the part of my post where I said that setting up those folder exclusions are version-agnostic.
If you just exclude the "JRiver" folders, you'll never have to do it again.
 
I still don't know why people are having to do this at all though, as I've been using Media Center for years now without Defender causing any problems.
Title: Re: Taming Windows Defender on Windows 10
Post by: RoderickGI on January 27, 2018, 08:57:33 pm
I still don't know why people are having to do this at all though, as I've been using Media Center for years now without Defender causing any problems.

Do you allow Defender to pop up messages when it needs to create a rule for a new application, or version? (I don't know if Defender does this, but Norton 360 does, if you don't turn it to silent.)
Do you read any popup message and understand what is being asked?
Do you always select the correct response to a security popup question?

You are analytical like me, so I suspect that you do. Most people either turn security software to silent and it takes the conservative approach by blocking stuff, or they see the popup and just dismiss it without reading it, or they don't understand what the popup question is or it's saying and by default answer "Block" "Close" "Cancel" or whatever but not "Allow", because that is how internet users have been trained to respond. Especially the average user who browses all over the place and doesn't understand security but is a bit aware of it, and a bit scared of the risks.

So many people have blocked MC from working, without ever knowing when, how, or why.
Title: Re: Taming Windows Defender on Windows 10
Post by: tzr916 on January 27, 2018, 09:45:51 pm
Do you allow Defender to pop up messages when it needs to create a rule for a new application, or version? (I don't know if Defender does this, but Norton 360 does, if you don't turn it to silent.)
Do you read any popup message and understand what is being asked?
Do you always select the correct response to a security popup question?

You are analytical like me, so I suspect that you do. Most people either turn security software to silent and it takes the conservative approach by blocking stuff, or they see the popup and just dismiss it without reading it, or they don't understand what the popup question is or it's saying and by default answer "Block" "Close" "Cancel" or whatever but not "Allow", because that is how internet users have been trained to respond. Especially the average user who browses all over the place and doesn't understand security but is a bit aware of it, and a bit scared of the risks.

So many people have blocked MC from working, without ever knowing when, how, or why.

Windows Firewall pops up to create new rules, Defender doesn't. Don't think Defender can even do that. If you want to exclude something it's manually done AFAIK.

I'd be interested if someone can point out a proven example here on the forum where Defender actually caused an issue with MC. Windows Firewall yes, Defender um still waiting...



Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 27, 2018, 09:59:24 pm
Do you allow Defender to pop up messages when it needs to create a rule for a new application, or version? (I don't know if Defender does this, but Norton 360 does, if you don't turn it to silent.)
Do you read any popup message and understand what is being asked?
Do you always select the correct response to a security popup question?

You are analytical like me, so I suspect that you do. Most people either turn security software to silent and it takes the conservative approach by blocking stuff, or they see the popup and just dismiss it without reading it, or they don't understand what the popup question is or it's saying and by default answer "Block" "Close" "Cancel" or whatever but not "Allow", because that is how internet users have been trained to respond. Especially the average user who browses all over the place and doesn't understand security but is a bit aware of it, and a bit scared of the risks.

So many people have blocked MC from working, without ever knowing when, how, or why.
Defender operates silently by default. You don't have to do anything unless it detects malicious software.
The only pop-ups you get are a notification once a week displaying a summary of any actions it's performed; e.g. scanned 3 times since last summary and found no threats.
 
Block / Close / Cancel options don't sound like antivirus functions, but some other thing that Norton 360 is doing. It looks like Norton 360 is a "security suite" rather than just an antivirus.
Title: Re: Taming Windows Defender on Windows 10
Post by: RoderickGI on January 28, 2018, 12:20:40 am
It looks like Norton 360 is a "security suite" rather than just an antivirus.

Yes it is, but so is Defender these days. They are all intertwined and Microsft even calls them "Windows Defender Firewall" and "Windows Defender Antivirus" now, as shown in the above images. All part of the "Windows Defender Security Center".

Norton 360 is both a Firewall and Antivirus, and also some functionality that falls between the two, like the File Insight, SONAR, Download Protect, etc. Protected Ports is part of the Antivirus, but sounds like a Firewall function. It seems Defender is moving in the same direction, as implied by its "Virus and threat protection" switch. I get Norton Popups for both Firewall and Antivirus alerts, some of which are driven by heuristics, like File Insight, which is more like an Antivirus function, but will block a file from being run like a Firewall would block a website. I guess a bit like Malicious Software functionality, and related, but separate. I commonly get "Bad reputation" alerts for programs I download that are either very new, or not used by many people.

I don't see everything the firewall does though. Only alerts. I now see above that non-critical notifications from Defender Antivirus can be turned on, and notifications from Defender Firewalls can be turned on or off. My preference would be to have the later turned on, as per the image above.

While this thread is about Defender Antivirus, Defender Firewall is just as often the problem when MC doesn't work. They both have to be configured together really.

Anyway, I was responding to the comment:
I still don't know why people are having to do this at all though, as I've been using Media Center for years now without Defender causing any problems.

With my conclusion that people turn off, respond incorrectly, or just ignore Alerts/Notifications, and so the software implements the failsafe solution, which is to lock down the PC. Hence thing don't work. But yes, except for performance issues on low powered or otherwise compromised PC, mostly it isn't Defender Antivirus but Defender Firewall that blocks MC and generates alerts.


I'd be interested if someone can point out a proven example here on the forum where Defender actually caused an issue with MC. Windows Firewall yes, Defender um still waiting...

There have been a two or three cases where MC seemed to get onto a Black List for some Antivirus products, for a short time. Usually at a major version upgrade, and where file certificates have changed. Also some false positives with some antivirus. If you search diligently in the forum you could probably find them. I can't remember if Defender has been involved.
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on January 28, 2018, 07:03:25 am
If you search diligently in the forum you could probably find them. I can't remember if Defender has been involved.
There is a list of antivirus problems here:
https://yabb.jriver.com/interact/index.php?topic=86096.msg588759#msg588759
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 28, 2018, 07:25:30 am
There is a list of antivirus problems here:
https://yabb.jriver.com/interact/index.php?topic=86096.msg588759#msg588759
Third-party antivirus solutions are always a source of headaches, actively interfere with Windows' own security features opening you up to more risk, and are often a source of stability problems.
Windows Defender has never caused me any problems, with Media Center or anything else.
Title: Re: Taming Windows Defender on Windows 10
Post by: flac.rules on January 28, 2018, 08:44:34 am
Windows defender is a resource hog that refuses to let you decide what is should and shouldn't do. Better than many perhaps, but it has steadily grown worse.
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on January 28, 2018, 09:52:40 am
Windows defender is a resource hog that refuses to let you decide what is should and shouldn't do. Better than many perhaps, but it has steadily grown worse.
Well I can't say that I've ever noticed a performance impact, but I did just check and Defender was using a non-negligible amount of CPU usage during video playback, so I could see that being an issue on slower CPUs - though I could also see it scaling down when you don't have 16 cores available.
I'm not sure what you mean about not having any control over it though.
I set up an exception for the "Media Center 23.exe" and "JRWorker.exe" processes, and a folder exclusion for "%APPDATA%\J River\Media Center 23\Plugins\" directory, and that CPU usage dropped to 0 after restarting Media Center.
Title: Re: Taming Windows Defender on Windows 10
Post by: flac.rules on January 28, 2018, 11:24:57 am
Well I can't say that I've ever noticed a performance impact, but I did just check and Defender was using a non-negligible amount of CPU usage during video playback, so I could see that being an issue on slower CPUs - though I could also see it scaling down when you don't have 16 cores available.
I'm not sure what you mean about not having any control over it though.
I set up an exception for the "Media Center 23.exe" and "JRWorker.exe" processes, and a folder exclusion for "%APPDATA%\J River\Media Center 23\Plugins\" directory, and that CPU usage dropped to 0 after restarting Media Center.
Check the memory usage, especially over time. It somehow makes programs use more memory (don't ask me how).

I want to turn of real time scanning (as long as I want to have it off) I want to turn of scheduled scans. You can't do it in the program, and the latter isn't even properly mentioned in the software. It sometimes has problems with actually not deleting files you don't want it to delete. I grew pretty tired of the whole thing after a while. Windows defender was pretty ok, but its user-friendliness has steadily declined.
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on February 15, 2018, 01:55:03 pm
More on Windows Defender (https://yabb.jriver.com/interact/index.php/topic,114260.0.html) by RoderickGI
Title: Re: Taming Windows Defender on Windows 10
Post by: mojave on February 15, 2018, 03:29:21 pm
I was getting a lot of frame drops in madVR when watching the Superbowl and the Winter Olympics. My present queues wouldn't fill and the present time was very high. I couldn't figure it out for a while and reverted to Red October Standard. I was using less than 50% GPU of my GTX 1080Ti. I finally realized I hadn't updated my Defender exceptions for MC23. I turned off/on Defender several times and found that it was causing the dropped frames. I turned it back on, added the exemptions for MC23 and now have smooth playback again.

Title: Re: Taming Windows Defender on Windows 10
Post by: kolia on February 15, 2018, 11:24:02 pm
As far as I'm concerned, since it is a dedicated PC for audio video with almost no internet browsing, windows defender is deactivated.
Title: Re: Taming Windows Defender on Windows 10
Post by: Solderman on February 16, 2018, 08:05:16 am
I found this thread because my security (IObit Malware Fighter) flagged the latest (02-16-18) update to MC part "CDLabeler" as a malware. I deleted it. Since I use MC only for audio and don't label CDs, I will give it a try.

With the recent revelation of the hack (named, uh....?) that virtually all chips made in the past twenty years are wide open to security issues, I am not so worried about malware....  ;D
Title: Re: Taming Windows Defender on Windows 10
Post by: millst on February 16, 2018, 10:11:19 am
So your neighbor gets robbed and your response is to leave your front door open?

-tm
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on March 10, 2018, 06:51:05 am
Split discussion on Exclusions
Title: Re: Taming Windows Defender on Windows 10
Post by: logan9778 on April 02, 2018, 04:35:51 pm
Oh God.  Don't even get me started on how much I HATE Windows Defender.
Title: Re: Taming Windows Defender on Windows 10
Post by: torgny on April 14, 2018, 12:21:42 pm
When adding a Process to the list of exclusions, Defender asks you for the name of the process, not a file path .... the Task Manager will inform that the name of the process is "J River Media Center" - why not add that to the list of exlusions?  Also, according to another link to a post by a MSFT employee, adding a process will exclude all files that this process "touches".  Sooooo ,,,, after you added the process, is there any need to add files, folder, etc?

I'm thinking you should also exclude not just files and folders but any MC Processes. To do that you MUST enter the entire PATH and process name into Defender. Examples:

C:\Program Files\J River\Media Center 23\MC23.exe
C:\Program Files\J River\Media Center 23\Media Center 23.exe
C:\Program Files\J River\Media Center 23\JRService.exe
C:\Program Files\J River\Media Center 23\JRWorker.exe
C:\Program Files\J River\Media Center 23\JRWeb.exe
Title: Re: Taming Windows Defender on Windows 10
Post by: torgny on April 22, 2018, 09:11:35 am
Thank you, tzr916.  Question, you call the list "examples" - would you say it is exhaustive or could/should other MC processes be added? Or conversely, can you make do with fewer?  Also, if you have the process added, is there any purpose to adding files and/or folders?  Thanks again // TG

I'm thinking you should also exclude not just files and folders but any MC Processes. To do that you MUST enter the entire PATH and process name into Defender. Examples:

C:\Program Files\J River\Media Center 23\MC23.exe
C:\Program Files\J River\Media Center 23\Media Center 23.exe
C:\Program Files\J River\Media Center 23\JRService.exe
C:\Program Files\J River\Media Center 23\JRWorker.exe
C:\Program Files\J River\Media Center 23\JRWeb.exe
Title: Re: Taming Windows Defender on Windows 10
Post by: torgny on April 24, 2018, 09:24:13 am
I followed this script for the most and added exclusions for files and folders as detailed, though not individual files.
 Later I added the five Processes as described in another post.  Later I was shocked to find that a Full Scan with Defender which used to scrub 3.5 million files now only scrubs 1.3 million.  A Quick Scan used to pick up around 1.5 million files but now reports only 50,000!  What happened to those millions of files that are now outside of Defender's reach?

I certainly don't have millions of media files, around 20,000 would be a more correct tally.  So I got very concerned and removed all Exceptions for folders, but that didn't change the file count when running Defender.  Running Advanced Scan and targeting a specific folder or device seems still to run as expected.  Is there reason to be concerned/alarmed about this precipitous drop in the number of files scanned?

By the way, MC23 is not faster or more responsive now, rather the opposite.

Thank you. Hopefully it helps with any issues users experience with running Media Center with Windows Defender.

One of the most common symptoms of an issue I've seen running MC with Defender without taming is, MC will open more "slowly", even when running MC on a system with a SSD. Meaning you start Media Center 23 but the main window doesn't immediately appear but you can see Media Center 23.exe running in the Task Manager. Eventually MC's window will load after 10+ seconds. This is something I've noticed on clean installs, but once I've added all the exceptions in place, MC will open much more quickly. I'm assuming Defender is scanning MC via its real-time scanner, hence the slowdowns. Once added to the exceptions, Defender shouldn't be scanning MC anymore and thus no more "slowdowns" when starting MC.

This is true, adding folder exceptions is likely enough. But I'll go the overkill route and add the individual files too, just in case. This is because I really don't trust Defender to exclude all files inside a folder, even though it likely does.

EDIT: I changed around the order of the tutorial, adding folder exceptions first and adding a note to file exceptions about it likely not being needed and is overkill.
Title: Re: Taming Windows Defender on Windows 10
Post by: murray on September 02, 2018, 01:29:37 am

The only pop-ups you get are a notification once a week displaying a summary of any actions it's performed; e.g. scanned 3 times since last summary and found no threats.
 

I have always had defender turned off as i dont ever want any popups jumping up in the middle of a movie, summery reports or anything!
Since i use my HT for groups visiting, I dont want to interupt a movie. Is there anyway to avoid these reports/popups ever appearing?

I dont use this PC for anything, websites, internet etc etc, its entirly dedicated to JR and the HT. However I do have windows firwall turned on but have never seen any pop up appear.

Can someone please help here?
Title: Re: Taming Windows Defender on Windows 10
Post by: RD James on September 02, 2018, 05:04:11 pm
I have always had defender turned off as i dont ever want any popups jumping up in the middle of a movie, summery reports or anything!
Since i use my HT for groups visiting, I dont want to interupt a movie. Is there anyway to avoid these reports/popups ever appearing?

I dont use this PC for anything, websites, internet etc etc, its entirly dedicated to JR and the HT. However I do have windows firwall turned on but have never seen any pop up appear.

Can someone please help here?
There are notification options in Defender.
You can also turn on Focus Assist so that all system notifications are suppressed.
Title: Re: Taming Windows Defender on Windows 10
Post by: murray on September 26, 2018, 03:26:28 pm
There are notification options in Defender.
You can also turn on Focus Assist so that all system notifications are suppressed.
Where do you find Focus Assist please?
Title: Re: Taming Windows Defender on Windows 10 for Media Center 23
Post by: Awesome Donkey on September 26, 2018, 03:37:42 pm
Open the Settings app in Windows 10 and search for focus assist in the search bar above.
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: michael123 on September 27, 2018, 06:53:39 am
I am using Defender on my audio PC built in 2014 without any issues.
I mean I stream ultra-high-rez DSD255 and blu-ray rips from my NAS, never experienced any delay (after I upgraded my NAS last year)

Moreover, implementing the suggestion in this post is quite irresponsible.
IMHO
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: gregtheis on March 30, 2019, 02:38:55 pm
This is my first post on the forum. I wasn't sure who to ask but hopefully you can point me in the right direction. I'm a huge fan of JRiver since version 19. I recently downloaded version 25 with no problems. A couple of days ago I had to restart my dedicated music PC with OS windows10 due to a windows update on March23rd which I never trust. Now JRiver 24 and 25 open but I can't get to the files or play music or videos. I tried removing version 25 but the same problem happens with version 24. I also have windows Defender for anti-virus and protection. What do I try next? Is this something others have had problems with recently or in the past? Help please I'm already getting music withdrawals with no JRiver this weekend.
Greg Theis
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: JimH on March 30, 2019, 04:27:40 pm
Did you set up audio and select your output device?

https://wiki.jriver.com/index.php/Audio_Setup

You could try restoring a backup from a version that worked, or just checking its settings.

I'll move this to a new thread since it's not related to Windows Defender.
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: gregtheis on March 30, 2019, 08:02:25 pm
Thank you soooo much for the detailed instructions and confirmation of the problems. I started the process and have access to the music now but still have glitches . I will do the individual folders as you suggest tomorrow. Should I also delete the old vesrion 24 or is it OK to keep both until I confirm the system is stable?
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: JimH on March 30, 2019, 08:05:24 pm
Keep both until you're happy with MC25.
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: gregtheis on March 30, 2019, 08:57:57 pm
Thanks Jim,
After following the thread on the Windows Defender and making the changes the system was able to open and I could see and play the music files but then it glitched and then hung up. You say this is not a Windows Defender issue but the Windows update coincided with the problem. I'm confused as to what is going on and I'm not a computer wizard so I'm trying to understand the cause and solution to the problem. I've been a loyal happy JRiver music lover for many years without incident. I just want a simple fix and listen to my music again.
Greg
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: stanzani on May 08, 2019, 09:10:20 am
In the 'security at a glance' page of Windows secuiry I am not enable to click The 'settings' icon in the bottom left ... what could the problem be? thanks much
Title: Re: Taming Windows Defender on Windows 10
Post by: eljr on May 12, 2019, 08:17:20 am
And I thought I was radical doing a clean install each year    ;D

Thank you for taking the time to write this.

what is a clean install?
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: Awesome Donkey on May 12, 2019, 09:07:18 am
Reformatting and reinstalling Windows refers to a clean install. I do this every 6 months with each major Windows 10 update.
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: stanzani on May 13, 2019, 09:03:20 am
I cannot find the 'add exclusion' button in the menu. OK, this is more a windows 10 problem: did anybody else experienced this?

thanks
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: Awesome Donkey on May 13, 2019, 09:16:22 am
Well, the tutorial is for Windows 10, yes. If you're using Windows 7 or 8.1 the instructions would be different but I currently don't have any Windows 7 or 8.1 installs/VMs handy to check the steps.

You might give this tool a try, it should make adding exclusions much, MUCH easier as you can add multiple files/folders at the same time: https://www.sordum.org/10636/defender-injector-v1-1/
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: JimH on June 27, 2019, 09:07:33 am
Split Experiencing lags and slowness (https://yabb.jriver.com/interact/index.php/topic,121225.0.html)
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: d8lock on April 29, 2020, 12:47:56 pm
Did Windows 10 add something new to mess with MC?  I noticed an insane amount of skipping today during playback.  It had been working flawlessly. 
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: MagerClab on April 30, 2020, 07:28:43 am
Did Windows 10 add something new to mess with MC?  I noticed an insane amount of skipping today during playback.  It had been working flawlessly.

Do you have the Win10 2004 slow ring insider preview and KB 4534170 installed?

I noticed also extreme lags and skipping WITH  KB 4534170. Uninstalling KB 4534170 brought back the previous (working without glitches) status for me...
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: doofone on April 30, 2020, 09:11:56 am
This doesn't have to do with Windows Defender per se ... I also use Malware Bytes ... this morning I got a warning that gogo.exe is determined to be malware ... gogo.exe is apparently used by JRiver in the MP-3 encoding process (the only reference I could find in the JRiver WIKI) ... I did not quarantine it as I suspect it is something I would want to keep ... it's not clear to me just how important it is to JRiver functionality though ... does anybody have any info on this?  I will repeat that this came from Malware Bytes not Windows Defender ...
Title: Re: Taming Windows Defender on Windows 10 for JRiver Media Center
Post by: JimH on April 30, 2020, 10:08:58 am
Report it as a false positive to Malwarebytes.
Title: Re: Taming Windows Defender on Windows 10
Post by: xen-uno on October 09, 2020, 09:53:39 am
Tolerate-Hate relationship with Defender .. disable the autoscan part via Task Scheduler and it keeps re-enabling itself. Need non-cloud version of something .. not even sure Kaspersky has that available now. Hio Jim long time ..
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on October 09, 2020, 12:37:22 pm
Hi Steve.
Title: Re: Taming Windows Defender on Windows 10
Post by: Blu99Zoomer on November 23, 2020, 08:00:48 pm
I am using a windows 10 computer to play a local public radio station's archived shows.  I am using JRiver MC26 26.0.107.  I have been using JRiver since 17 came out, moving to the newest version each year.  I have had this problem many times over the years.  Never a problem playing music on the computer itself.  This recurring problem seems to go away for a while and then returns.  I am not a computer literate person.  It's a struggle to problem solve this.  Otherwise JRiver has worked without problem playing the music library that I have recorded. 
For several weeks I have been unable to play a show completely through without the music stopping after around 30 minutes.  I tried doing the suggested changes in the Windows Security area adding folder exclusions.  I rebooted JRiver and also rebooted the computer.  All of this changed nothing and music still stops after around 20-30 minutes.  I closed JRiver and went to the radio's website, clicked the show I wanted to listen to and it just played.  I will add that the website has a different player than the one I see going through JRiver as well.(Do I need to change something in the Tree?) Today I tried changing from Chromium to Internet Explorer as the default web browser.  I turned off Windows Defender.  Nothing works.  Ideas suggestions needed.  Thanks.

Best Regards.
Blu
Title: Re: Taming Windows Defender on Windows 10
Post by: Blu99Zoomer on November 27, 2020, 03:27:58 pm
So just an update.  I have been able to play a full three hour rewind show by checking all the boxes on the streaming pop up of MC and in the record section adding 180 minutes to the record time.  I am at around an hour and a half today, which is day two using the recording a stream option to play a stream, and the music is still playing.  Is this a work around?  I think so.  But I am thankful for the music any way I get it.

Best Regards,

Blu
Title: Re: Taming Windows Defender on Windows 10
Post by: vbphil on January 08, 2021, 08:30:40 am
It never fails when trying to follow Windows 10 configuration ideas that it doesn't work. When I try to add an exclusion everything appears to go well but I don't end up with a list of exclusions on the settings page like every example I've seen demonstrates. So, it looks like nothing is getting excluded. There's no error messages, or system alerts. I do get the elevated permissions dialog and I have Administrator privileges.

Any ideas why Add an Exclusion might not be working for me?

Here's my Windows  version:

Edition   Windows 10 Pro
Version   20H2
Installed on   ‎8/‎2/‎20
OS build   19042.685
Experience   Windows Feature Experience Pack 120.2212.551.0
Title: Re: Taming Windows Defender on Windows 10
Post by: Hiroshi on January 10, 2021, 02:08:19 am
It never fails when trying to follow Windows 10 configuration ideas that it doesn't work. When I try to add an exclusion everything appears to go well but I don't end up with a list of exclusions on the settings page like every example I've seen demonstrates. So, it looks like nothing is getting excluded. There's no error messages, or system alerts. I do get the elevated permissions dialog and I have Administrator privileges.

Any ideas why Add an Exclusion might not be working for me?

Here's my Windows  version:

Edition   Windows 10 Pro
Version   20H2
Installed on   ‎8/‎2/‎20
OS build   19042.685
Experience   Windows Feature Experience Pack 120.2212.551.0

I am also facing same problem and MC27 stops it's playback after a while(1~10 sec).
Edition   Windows 10 Home
Version   20H2
Installed on   ‎2020/‎12/‎29
OS build   19042.685
Experience   Windows Feature Experience Pack 120.2212.551.0

I tried add and exclusion but does not work. Please help.
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 10, 2021, 07:24:45 am
If it doesn't work that way, you might try an app like Defender Injector to make the needed exceptions.

https://www.majorgeeks.com/files/details/defender_injector.html
Title: Re: Taming Windows Defender on Windows 10
Post by: Hiroshi on January 18, 2021, 07:20:21 pm
Thank you for this information!
MC did not work for a few week, but today it's working after updating the windows.
I will test it for a while, and yet if still problem I will try defender injector.

BR
Title: Re: Taming Windows Defender on Windows 10
Post by: Hiroshi on January 26, 2021, 08:10:37 am
Thank you for this information!
MC did not work for a few week, but today it's working after updating the windows.
I will test it for a while, and yet if still problem I will try defender injector.

BR
After a while the problem happended again, but looks it is solved when upgrading to latest 27.0.57 from 27.0.43 stable version.
Title: Re: Taming Windows Defender on Windows 10
Post by: ducatirider on February 03, 2021, 05:05:17 pm
2 things that really helped me after i wiped and reinstalled windows was to defrag your hard drive and split your files into subfolders.  I made 1 for each letter of the alphabet and 1 for numbers such as 2pac, 10cc etc.  it worked much better after i did that.
Title: Re: Taming Windows Defender on Windows 10
Post by: newsposter on March 06, 2021, 12:57:56 pm
I whipped up this .reg file to add MC-specific items as exclusions for Windows Defender.  The C: and L: drive paths shown are specific to my machine and layout.  They would need to be changed or normalized for other users. In spite of the dword = 0, the entries seem to be working just fine, the dword doesn't seem to indicate anything, but researching it anyway.

PowerShell has a load of in-built functions to manipulate Windows Defender.  If someone wants to add an advanced MC configuration menu item to push changes to Defender, these will do it.  The three most applicable functions are Add-MpPreference, Set-MpPreference, and Remove-MpPreference.

But using a pre-set registry file is probably good-enough for most people.

/begin example
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths]
"L:\\Libraries\\Music\\"=dword:00000000
"C:\\Program Files\\J River"=dword:00000000
"C:\\Users\\ckkli\\AppData\\Roaming\\J River"=dword:00000000
"L:\\Libraries\\Pictures\\IncomingCoverArt"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Processes]
"C:\\Program Files\\J River\\*"=dword:00000000
//fin



File and folder exclusions are stored in this registry key:

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths

File type exclusions are stored in this registry key:

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Extensions

Process exclusions are stored in this registry key:

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Processes
Title: Re: Taming Windows Defender on Windows 10
Post by: Hiroshi on May 22, 2021, 05:59:49 am
I tried a clean Windows re-install, but could not fix it.  However by coincidence, I found that my Bluetooth Keyboard was causing the problem. When I switch off my keyboard, playback does not stop, so initially I doubted that my keyboard was causing the problem.
Recently strange enough, I discovered that with latest MC27 27.0.85, this problem is gone.
So maybe MC27 had a bug from some point.
Title: Re: Taming Windows Defender on Windows 10
Post by: macdonjh on October 06, 2021, 09:26:57 am
I am new to MC for Windows, so I'm catching up...  Thanks to JimH, doof, terrym, Awesome Donkey, RodrickGI and others who are so helpful.

I've read several times is different threads media files shouldn't be scanned.  I understand not scanning them in real time, or even automatically.  However, with all the downloading (rather than ripping from CDs) people are doing, should media files be scanned once on Import or after adding to your media folder but before Import)?
Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on October 06, 2021, 11:33:46 am
Not during import.

I would not even advise scanning media files.  I've never known of a virus that was embedded in a media file.
Title: Re: Taming Windows Defender on Windows 10
Post by: syndromeofadown on October 06, 2021, 05:13:03 pm
Quote
I've never known of a virus that was embedded in a media file.
I have had wma files flagged by AV software. Long ago when I briefly looked into it, I read something along the lines of wma/wmv instructing certain software (windows media player) to install a required codec. This codec could be replaced by a virus. Maybe this was a thing in 2002. I can't imagine anything other than windows media player being affected by it. Even in this situation the file itself isn't a virus, just a link to the possibility of one. I had a very small amount wma files, I deleted most and replaced the rest with an alternate format to stop the annoyance.
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on November 25, 2021, 10:21:52 am
AV-TEST, one of the top third-party companies that does extensive testing of antivirus apps, has confirmed that Windows Defender is one of the best antiviruses out there. It's still so strange to be reading and saying that, considering that a few years ago Windows Defender was practically a joke and here we are with it taking top scores. This is why I don't personally suggest to people to purchase and/or install antivirus apps anymore and just use Windows Defender, there's no reason to unless you like spending money and you're visiting some pretty shady sites, and even then I'd recommend setting up and using a virtual machine for that.

https://www.neowin.net/news/av-test-confirms-windows-defender-is-amongst-the-very-finest-antiviruses-you-get-in-2021/
Title: Re: Taming Windows Defender on Windows 10
Post by: macdonjh on January 08, 2022, 02:08:42 pm
I started having troubles with MC28 on one of the three computers I have.  As suggested by JimH, I started working on applying the recommendations in this thread, but I can't find where, with my version of Windows 10, to add exclusions to my installation of Windows Defender.

Would somebody post an updated "tree" to point me where I can add exclusions?  When I open the Start Menu and find Windows Security, I get a pop up similar to the screen shot provided by Awesome Donkey in his first post.  But when I click on the Settings "sprocket" in the lower left corner of that pop-up, I get this:


I have not yet, no matter how many places I click, found the place where I can manage exclusions.

Title: Re: Taming Windows Defender on Windows 10
Post by: JimH on January 08, 2022, 02:21:00 pm
Did you try Google?  Or Microsoft?

Search apps for Defender.
Title: Re: Taming Windows Defender on Windows 10
Post by: Awesome Donkey on January 08, 2022, 02:47:59 pm
On the left side of that window under the back arrow icon is that vertical row of icons (usually there's labels but if the window is small you won't see the labels). Click the shield icon and you should be able to from that section > Virus & threat protection settings > Manage settings > then when that page loads Exclusions on the bottom.
Title: Re: Taming Windows Defender on Windows 10
Post by: macdonjh on January 08, 2022, 09:13:22 pm
On the left side of that window under the back arrow icon is that vertical row of icons (usually there's labels but if the window is small you won't see the labels). Click the shield icon and you should be able to from that section > Virus & threat protection settings > Manage settings > then when that page loads Exclusions on the bottom.

I did find it.  Start Menu -> Windows Security (pop up window opens) -> Virus & threat Protection (from the menu bar on the left side) -> Virus & threat protection settings, click Manage settings -> Exclusions, click Add or remove exclusions

Sorry for wasting everyone's time with this, I completely missed it when I was looking earlier.

For my first attempt to get things working again, I took RD James' recommendations in Reply #22 and added these exclusions: "C:\Program Files\J River\" and "%APPDATA%\J River\"

More in a bit...

EDIT: adding the exclusions above (configured as File/ Folder exclusions, not Process exclusions) did not solve my troubles.  I've continued posting in the thread I started, rather than continuing to hijack this thread.
Title: Re: Taming Windows Defender on Windows 10
Post by: tkolsto on February 19, 2022, 10:57:31 am
delete
Title: Re: Taming Windows Defender on Windows 10
Post by: rec head on March 20, 2022, 07:58:37 am
I did find it.  Start Menu -> Windows Security (pop up window opens) -> Virus & threat Protection (from the menu bar on the left side) -> Virus & threat protection settings, click Manage settings -> Exclusions, click Add or remove exclusions

This should be added to the first post.


After going through the exclusions on both the server and client which I haven't done since MC24 and not having any luck I turned off sharing and turned it back on. Windows opened a security popup about MC29. I allowed it and everything is back to working.
Title: Re: Taming Windows Defender
Post by: Steviewunda on December 24, 2023, 01:58:50 pm
Hi - I've been able to add some mapped drives on my NAS as folder exceptions (M:\ (Movies) and T:\ (TV Shows) ) but when I try to add an exception for my Music mapped drive (Y:\) I get a spinning timer icon for a while, then nothing is added to the exceptions list.
Any suggestions?
Title: Re: Taming Windows Defender
Post by: Steviewunda on December 24, 2023, 03:20:42 pm
Disregard please - it seems to be working ok now
Title: Re: Taming Windows Defender - with latest patches.
Post by: alfredmjNZ on February 28, 2024, 02:54:27 pm
I am using Windows 11 with all the current patches applied.  I decided to upgrade to MC32 to try and resolve an issue with MC31 and Sony Wireless headphones.  The MC32 download was immediately flagged as "bad code" by Windows Defender and installing resulted in a big blue banner stating MC32 installer was not allowed.  After multiple attempts to customise the firewall and update Windows defender (should have read all the posts first) I was still stuck.  It transpires you need to click "More Details" read to the bottom and select "Run anyway". The "Run anyway" option only appears in the details tab. Ignoring AV software dire warnings is not for the faint hearted. 
Title: Re: Taming Windows Defender
Post by: Awesome Donkey on February 29, 2024, 07:29:20 am
The Windows Defender false positive was addressed a few days ago, you should check for Defender definition updates in Windows Update. The "Run anyway" dialog is actually Windows SmartScreen, and that happens with a lot of apps, especially ones with recent updates. It can take a little bit until MS begins to trust it and the prompt goes away.
Title: Re: Taming Windows Defender
Post by: walkman666 on March 01, 2024, 09:00:53 am
The Windows Defender false positive was addressed a few days ago, you should check for Defender definition updates in Windows Update. The "Run anyway" dialog is actually Windows SmartScreen, and that happens with a lot of apps, especially ones with recent updates. It can take a little bit until MS begins to trust it and the prompt goes away.

Thank you Mr. Donkey!
Title: Re: Taming Windows Defender
Post by: jacobacci on May 01, 2024, 05:53:21 am
Defender doesn't seem to like JRWorker at all.



Title: Re: Taming Windows Defender
Post by: JimH on May 01, 2024, 07:00:54 am
Update Defender's definitions.  Make sure it's configured correctly.