T
T
tfc2019-06-18 14:56:20
System administration
tfc, 2019-06-18 14:56:20

How to disable Real Time protection Windows Security via cmd?

The situation is such that the organization uses the default Windows Security, which, according to domain policies, is not disabled through the interface under the user. Constantly one or the other user needs to update very specific software, which the antivirus swears at. Is it possible to locally disable windows security via cmd?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2019-06-19
@wisgest

The program is unpacked at any pace, and throwing them into exceptions is not very smart.

Create a directory, for example D:\MyTemp , add it to exclusions.
(You can also create it inside %TEMP%, i.e. %TEMP%\MyTemp - this way the entire %TEMP% directory will not need to be excluded.)
Run with the following batch file:
set "TEMP=D:\MyTemp"
set "TMP=D:\MyTemp"
start "" MyApp.exe

or label
cmd /c set "TEMP=D:\MyTemp"&set "TMP=D:\MyTemp"&start "" MyApp.exe

(Most likely, one of the commands is enough set, but I can’t say which one in advance.)
You can not create an auxiliary directory in advance, but create and delete it in a batch file or shortcut, but in this case you should not use the command start(or use with the ) switch /waitto wait for completion before deleting the directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question