Microsoft Update aktivieren

Antworten
hadro
Beiträge: 57
Registriert: 14 Mär 2013, 15:37

Microsoft Update aktivieren

Beitrag von hadro »

Hallo zusammen,

eigentlich ist dies KEIN Opsi Problem - trotzdem erhoffe ich mir, dass jemand hier vielleicht eine Idee hat :)

Ich möchte das Microsoft Update (Nicht Windows Updates!) mit folgendem Script aktivieren:

Code: Alles auswählen

[DosInAnIcon_AMU]
net stop wuauserv
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v EnableFeaturedSoftware /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v IncludeRecommendedUpdates /t REG_DWORD /d 1 /f
cscript.exe %ScriptPath%\AktivateMicrosoftUpdates.vbs
net start wuauserv
AktivateMicrosoftUpdates.vbs

Code: Alles auswählen

Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
ServiceManager.ClientApplicationID = "My App"
Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")
Wie man sieht, wird erst der Windows Update dienst beendet. Dann werden die 2 Registry Keys gesetzt, dass VBS Script ausgeführt und der Update Dienst wieder gestartet.
Eigentlich ganz simpel.... aber ....

Wärend das Script läuft, ist kein Benutzer angemeldet - somit stehen keine Proxy Informationen über [HKCU] zur Verfügung.
Leider funktioniert es nicht, wenn ich:

Code: Alles auswählen

[DosInAnIcon_proxy]
netsh winhttp set proxy $proxy$
voranschicke. Für das ziehen der Updates soll das wohl ausreichen, jedoch nicht für die Aktivierung von den "Microsoft Updates".

Wenn ich mich an dem Rechner mit einem Administrator Account einlogge und die Scripte ausführe passiert folgendes:


Ohne IE Proxy Einstellungen, funktioniert das oben genannte Script nicht - Auch, wenn ich über netsh den WinHTTP Proxy gesetzt habe.
Setze ich jedoch die Proxy Einstellungen im IE - läuft das Script sofort durch und die Microsoft Updates sind eingeschaltet.



Die Frage ist also, wie bring ich das Script dazu über einen bestimmten Proxy zu gehen?
oder
Wie setzte ich Proxy Einstellungen im IE obwohl kein Benutzer an Windows angemeldet ist (Global Proxy Settings? - i have no idea...)
ODER
Kennt jemand einen ganz anderen Weg die Microsoft Updates zu aktivieren über den OPSI? :-)
(Nicht über GPO *gg*)

Vielen Dank

Mahlzeit
hadro
Zuletzt geändert von hadro am 12 Feb 2014, 14:56, insgesamt 2-mal geändert.
r.witzel
Beiträge: 74
Registriert: 01 Aug 2011, 14:57
Wohnort: Melle

Re: Microsoft Update aktivieren

Beitrag von r.witzel »

Du müsstest die [Registry_blar] Funktion von OPSI nutzen und diese mit "/AllNTUserDats" aufrufen.
Damit kannst du die Proxy-Settings ALLER User ändern - ergo auch dem System, welches du in diesem Moment bist.

Siehe dazu: http://download.uib.de/opsi4.0/doc/html ... -allntuser
Carpe Opsi :)
hadro
Beiträge: 57
Registriert: 14 Mär 2013, 15:37

Re: Microsoft Update aktivieren

Beitrag von hadro »

Den berühmten Wald vor lauter Bäumen nicht mehr gesehen......................

DANKE! :-)
hadro
Beiträge: 57
Registriert: 14 Mär 2013, 15:37

Re: Microsoft Update aktivieren

Beitrag von hadro »

Kommando zurück... funktioniert so leider nicht.

Code: Alles auswählen

[5] [Feb 12 14:47:58:812] [windows7-settings]       Execution of Registry_proxy
[6] [Feb 12 14:47:58:812] [windows7-settings]         Registry key [HKEY_USERS\S-1-5-21-3150693035-1897093847-3576944880-500\SOFTWARE\wow6432node\Microsoft\Windows\CurrentVersion\Internet Settings]  opened
[6] [Feb 12 14:47:58:812] [windows7-settings]                     Info: Variable ProxyEnable exists,  no overwrite. (The value is "1")
[6] [Feb 12 14:47:58:812] [windows7-settings]                     Info: Variable ProxyServer exists,  no overwrite. (The value is "PROXY:8080")
[6] [Feb 12 14:47:58:812] [windows7-settings]                     Key closed
[5] [Feb 12 14:47:58:838] [windows7-settings]     
[5] [Feb 12 14:47:58:838] [windows7-settings]     Branch: Default
[6] [Feb 12 14:47:58:852] [windows7-settings]     "C:\Users\Default\NTUser.dat" loaded.
[5] [Feb 12 14:47:58:852] [windows7-settings]       
[5] [Feb 12 14:47:58:852] [windows7-settings]       Execution of Registry_proxy
[6] [Feb 12 14:47:58:852] [windows7-settings]         Registry key [HKEY_USERS\PatchNTUserdatTempUser\SOFTWARE\wow6432node\Microsoft\Windows\CurrentVersion\Internet Settings]  opened
[6] [Feb 12 14:47:58:852] [windows7-settings]                     Info: Variable ProxyEnable exists,  no overwrite. (The value is "1")
[6] [Feb 12 14:47:58:852] [windows7-settings]                     Info: Variable ProxyServer exists,  no overwrite. (The value is "PROXY:8080")
[6] [Feb 12 14:47:58:852] [windows7-settings]                     Key closed
[5] [Feb 12 14:47:58:860] [windows7-settings]     
[5] [Feb 12 14:47:58:860] [windows7-settings]     Make it for user .DEFAULT
[5] [Feb 12 14:47:58:860] [windows7-settings]       
[5] [Feb 12 14:47:58:860] [windows7-settings]       Execution of Registry_proxy
[6] [Feb 12 14:47:58:860] [windows7-settings]         Registry key [HKEY_USERS\.DEFAULT\SOFTWARE\wow6432node\Microsoft\Windows\CurrentVersion\Internet Settings]  opened
[6] [Feb 12 14:47:58:860] [windows7-settings]                     Info: Variable ProxyEnable exists,  no overwrite. (The value is "1")
[6] [Feb 12 14:47:58:860] [windows7-settings]                     Info: Variable ProxyServer exists,  no overwrite. (The value is "PROXY:8080")
[6] [Feb 12 14:47:58:860] [windows7-settings]                     Key closed
er setzt diesen vielleicht für die User - jedoch nicht für das "System".

Code: Alles auswählen

[Registry_proxy]
openkey [SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
add "ProxyEnable" = REG_DWORD:0x1
add "ProxyServer" = REG_SZ:"PROXY:8080"

Code: Alles auswählen

	comment "Aktivieren von Microsoft Updates"
	Registry_proxy /AllNTUserDats
	DosInAnIcon_AMU
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Microsoft Update aktivieren

Beitrag von SisterOfMercy »

hadro hat geschrieben:Ich möchte das Microsoft Update (Nicht Windows Updates!) mit folgendem Script aktivieren:
What is the difference between microsoft update and windows updates?
I use a few registry keys, to point at a wsus server and it just gets all microsoft updates this way. I'm really wondering what you are trying to do.

I copied this from a package I made; I'm not quite sure if this is the system user, otherwise you would have to look at the files in c:\windows\system32\config

Code: Alles auswählen

openkey [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
; Disable screensaver on login prompt
set "ScreenSaveActive" = "0"
; Show Windows version on desktop, but only on login prompt
set "PaintDesktopVersion" = REG_DWORD:00000001
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
hadro
Beiträge: 57
Registriert: 14 Mär 2013, 15:37

Re: Microsoft Update aktivieren

Beitrag von hadro »

Microsoft Update is essentially a successor to Windows Update and Office Update.
Microsoft Update will check for updates to several Microsoft programs besides Windows, including Office applications and server software like Exchange.

I want to enable Microsoft Updates because we do not have a WSUS service at this location.
After installing the operating system and software, I would like that the client checks for updates online - even for ms office. Fully automatic :)


http://blogs.msdn.com/b/oldnewthing/arc ... 86493.aspx
I will test your suggestion. It seems to look good. Thank you!
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Microsoft Update aktivieren

Beitrag von SisterOfMercy »

hadro hat geschrieben:Microsoft Update is essentially a successor to Windows Update and Office Update.
Microsoft Update will check for updates to several Microsoft programs besides Windows, including Office applications and server software like Exchange.
A, just like WSUS but without WSUS.
The only problem WSUS has is that it needs to be run on a windows server. You don't need extra licenses and it works reasonably well. This way it is very easy to skip all the stupid updates that only server to slow down your computer or install even more microsoft frameworks which will never be used.
Then again, if you configure it to only install security updates it will work a lot better. BTW, I think you can use the registry keys of the WSUS settings for microsoft update.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten