RUVIDEO
Поделитесь видео 🙏

Powershell Lab : How to exclude folder from Windows Defender command line

Okay this is a topic that came up while on the job . Our proprietary software was all of a sudden having issues starting and we couldn't figure out why until recently. It seems that a critical component was being quarantined by Windows Defender; it was not an issue before but it is now.
Found out that if you went into Windows Security and then went under Virus and Threat Protection that there is an option. Once you're in virus and threat protection it scroll down to where it says manage settings and select it. In the virus and threat protection settings if you scroll down to exclusions you will find a section that says add or remove exclusions select that and it will take you to the exclusion page. Click on the button that says add exclusion then add the path that you want to exclude it could be either a folder or it could be an individual file once you do that you're done.
And this is where our Odyssey begins in Powershell. The process I just explained is easy if you're doing this for just one PC but when you have a whole bunch of PCs to do they can be tedious. This is where I went through my scripting library to see if I had anything useful unfortunately I didn't . So I spent about another hour researching this and I did find a script that tends to work and I'll explain it below. The Powershell command is an”Add” that gives a preference in this case an exclusion path. Iit has an Mp which I'm not exactly sure what the Mp stands for but I believe it does tend to work with Windows Defender specifically. This will require a little bit more research in order to be certain. The script is as follows:

Add-MpPreference -ExclusionPath ‘C:\Directory of your choice\ SecondDirectoryNested\fileName.exe

I tried running the script on its own initially and it didn't work. I found out you had to run Powershell as administrator for this script to work. For you IT professionals out there working in a production environment I hope you find this helpful.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Powershell Lab : How to exclude folder from Windows Defender command line», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.