/build/static/layout/Breadcrumb_cap_w.png

Script to disable Windows Defender

We run the Vipre Enterprise suite and I need a post install script the disables Windows Defender.

Thanks...

1 Comment   [ + ] Show comment
  • Did this end up working? We're trying to deploy a solution to disable Windows Defender on 10 - Bentley 8 years ago

Answers (2)

Posted by: dchristian 13 years ago
Red Belt
1
bfrakes,

I wonder if disabling the service would work?
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name = 'WinDefend'")

For Each objService in colServiceList
errReturnCode = objService.Change( , , , , "disabled")
Next
Posted by: bfrakes 13 years ago
Purple Belt
0
Actually, looking in the Vipre Enterprise setting, it has a check box for disabling Windows Defender.

I will try the script and see if it works.

I'll let you know...

Thanks.

Comments:
  • Did the above script work for you? - Bentley 8 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ