Solved

Disable AntiVirus notification in Windows Security Center - (ET)

Posted on 2013-01-08
9
523 Views
Last Modified: 2013-04-07
I am soon deploying AVG 2012 to a lot of computer but there is a bug with some recent versions that it does not register with windows security center. As a result each the users will get popup messages that their computer is unprotected when, in fact, it is.
I am looking to write a script that will disable this notification. Ideally just a registry key i can change. Would need to fix this on windows XP and 7.
0
Comment
Question by:tabush
  • 5
  • 4
9 Comments
 
LVL 2

Expert Comment

by:thombeck
ID: 38754952
Hi,

for WinXP:
HKEY_Local_Machine\Software\Microsoft\Security Center
--> Set AntiVirusDisableNotify (a REG_DWORD) to Value 1

i think it will be in win7 the same
0
 
LVL 2

Author Comment

by:tabush
ID: 38755066
On windows 7 x64 that key doesnt exist. There is a key called "AntiVirusOverride"in this location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center\Svc

However, when i try to change that it gives me a permissions error (even though im a local admin).
0
 
LVL 2

Expert Comment

by:thombeck
ID: 38755601
Hi,

you must run the regedit with right-click "run as admin".
if this doesn't work, you must temporary change the security settings at this key in the registry


the location you are is right.
set the following keys to the value 1:
AntiSpywareOverride
AntiVirusOverride
0
 
LVL 2

Author Comment

by:tabush
ID: 38755695
Still wont let me change and when i try to edit the permissions it tells me "access is denied."

I also tried some registry snapshot tools to find a another key that would do this but no luck. Maybe the answer isn't to do via registry.  Is there a command line that can accomplish this?

Or a registry key i can change that will manually give security center a value for 'anti-virus installed?'
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Expert Comment

by:thombeck
ID: 38756011
Hi,

i've installed a ein7 x64 and your are right.
But the following works:
You need to change the ownership for the key first. (to yourself - Check "Replace owner on subcontainers and objects)
Then change the rights to full for users (important: select the checkbox replace all child object permission with inheritable permission from this object).
after that you can change the value.

To change the security settings back, change the rights for users to read (with check replace on child object).
After that go to owner and assign the SYSTEM as owner back again.
0
 
LVL 2

Author Comment

by:tabush
ID: 38756179
This worked (changes take effect after restart).

Now only issue is that i have few hundred win7 x64 computers to do this on. I think i can change permissions in command line. I read through this article that explains how to do that but i dont understand the exact command i need to run.
http://support.microsoft.com/?kbid=245031
0
 
LVL 2

Author Comment

by:tabush
ID: 38756396
Found a script i can use to change registry permissions but unless i'm able to change the ownership the script doesnt work. VBS looks like this:

' Create temp file with the script that regini.exe will use
'
set oFSO = CreateObject("Scripting.FileSystemObject")
strFileName = oFSO.GetTempName
set oFile = oFSO.CreateTextFile(strFileName)
oFile.WriteLine "HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center\Svc [1 5 7 11 17]"
oFile.Close

' Change registry permissions with regini.exe
'
set oShell = CreateObject("WScript.Shell")
oShell.Run "regini " & strFileName, 8, true

' Delete temp file
'
oFSO.DeleteFile strFileName
0
 
LVL 2

Accepted Solution

by:
thombeck earned 500 total points
ID: 38756416
Hi,

regini can't change the ownership.
It would be better if you use a powershell.

In powershell, you can use the comand set-acl to change owner and security settings.

change access rights for SYSTEM\test:
$acl = Get-Acl HKLM:\SYSTEM\test
$rule = New-Object System.Security.AccessControl.RegistryAccessRule ("Users","FullControl","Allow")
$acl.SetAccessRule($rule)
Set-Acl -aclobject $acl -Path HKLM:\SYSTEM\test

The change owner is quite more difficult.
A solution can be found at:
http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/e718a560-2908-4b91-ad42-d392e7f8f1ad
0
 
LVL 2

Author Comment

by:tabush
ID: 38756455
I'm not very familiar with powershell but wouldnt a windows 7 computer need a special program installed before it can run a powershell script?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now