28. September 2014
Jonathan
Powershell
Problem: My regular domain users get notifications to update software when they don’t have rights to do so can we make it stop?
I just don’t like it when my domain users (who incidentally don’t have admin rights) get update notifications for software they don’t have rights to install. So, where ever possible I turn them off and control what they experience through GPO
These brief scripts can be deployed as a log on script, they can be added to MDT as an app (so you can add it to your builds before capture), you could just take the registry keys from them and push out changes using GPO’s or you could just save them as PS1 files and have them in your toolkit the choice is yours.
I will add items to this if people can suggest things for me to look into.
Java
Different actions for x64 and x86 architecture.
Note: This will work for minor revision but for Major revisions the notifications appear to start working again.
1: <#
2: Script to disable update notifications for Java
3:
4: Author: Jonathan of www.deploymentshare.com
5: Version: 1.0.0
6:
7: #>
8: Function Disable-JavaUpdateNotifications
9: {
10: Switch ($env:PROCESSOR_ARCHITECTURE) {
11: ("AMD64") {
12: $DJUN = "HKLM:\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy"
13: Set-ItemProperty -Path $DJUN -Name "EnableJavaUpdate" -Value 0
14: Set-ItemProperty -Path $DJUN -Name "NotifyDownload" -Value 0
15: New-ItemProperty $DJUN -Name "EnableAutoUpdateCheck" -Value 0 -PropertyType "DWord"
16: } # Close x64
17: ("x86") {
18: $DJUN = "HKLM:\SOFTWARE\JavaSoft\Java Update\Policy"
19: Set-ItemProperty -Path $DJUN -Name "EnableAutoUpdateCheck" -Value 0
20: Set-ItemProperty -Path $DJUN -Name "EnableJavaUpdate" -Value 0
21: } # Close x86
22: } # Close Switch
23: }# Close Function
24:
25: Disable-JavaUpdateNotifications
Adobe Flash
Different actions for x64 and x86 architecture.
1: <#
2: Script to disable update notifications for Flash
3:
4: Author: Jonathan of www.deploymentshare.com
5: Version: 1.0.0
6:
7: #>
8: Function Disable-FlashUpdateNotifications
9: {
10: $Test = Test-Path C:\Windows\SysWOW64\Macromed\Flash
11: if($Test)
12: {
13: New-Item -ItemType file -path "C:\Windows\SysWOW64\Macromed\Flash\mms.cfg"
14: Set-content -path "C:\Windows\SysWOW64\Macromed\Flash\mms.cfg" -value "AutoUpdateDisable=1", "SilentAutoUpdateEnable=0"
15: } # Close IF
16: $Test2 = Test-Path C:\WINDOWS\System32\Macromed\Flash
17: if($Test2)
18: {
19: New-Item -ItemType file -path "C:\WINDOWS\System32\Macromed\Flash\mms.cfg"
20: Set-content -path "C:\WINDOWS\System32\Macromed\Flash\mms.cfg" -value "AutoUpdateDisable=1", "SilentAutoUpdateEnable=0"
21: } # Close IF
22: } # Close Function
23:
24: Disable-FlashUpdateNotifications
Jonathan