Bonjour a tous,
Je viens vers vous car je suis perdu face à une incompatibilité 2000/xp.
je m'explique : sur mon serveur samba, j'ai mis en place un script de connexion qui paramètre les stations clientes sous xp et 2000 pour aller chercher les mises à jours windows sur un serveur de mise à jour. J'ai utilisé un bat puisque a priori c'est l'un des seuls formats possibles avec samba (avec cm) et la commande REG ADD pour modifier ma base de registre mais voila, cette commande n'existe pas sous 2000.
Ma question est : avez vous une solution pour que ce script puisse fonctionner sous XP et sous 2000 ? Y a t'il une commande sous 2000 qui est l'equivalence de REG ADD sous Xp ?
Je vous joint le script pour demo et vous remercie pour votre aide.
Loupsolitaire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 1. @echo off 2. set /a n=%random%%%24 3. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoUpdate /t REG_DWORD /d 0 /f 4. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v AUOptions /t REG_DWORD /d 2 /f 5. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v ScheduledInstallDay /t REG_DWORD /d 0 /f 6. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v ScheduledInstallTime /t REG_DWORD /d %n% /f 7. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v UseWUServer /t REG_DWORD /d 1 /f 8. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v RescheduleWaitTime /t REG_DWORD /d 30 /f 9. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f 10. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\ /v WUServer /t REG_SZ /d http://wsus /f 11. reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\ /v WUStatusServer /t REG_SZ /d http://wsus /f
Partager