1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| 'Definition des variables d'environnement
Set ws = CreateObject("Wscript.Shell")
Set objShell = CreateObject("Shell.Application")
'********** Télécharge les mises à jour de Windows Défender **********
Call objShell.ShellExecute("C:\Program Files\Mozilla Firefox\firefox.exe", "-private-window https://go.microsoft.com/fwlink/?LinkID=187316&arch=x64&nri -p Bruno", "", "open", 0)
Call objShell.ShellExecute("C:\Program Files\Mozilla Firefox\firefox.exe", "-private-window https://go.microsoft.com/fwlink/?LinkID=121721&arch=x64 -p Bruno", "", "open", 0)
WScript.Sleep 8000
ws.SendKeys "^{F4}"
ws.SendKeys "^{F4}"
'********** Installe les mises à jour **********
WScript.Sleep 2000
Call objShell.ShellExecute("G:\nis_full.exe", "", "", "runas", 0)
Call objShell.ShellExecute("G:\mpam-fe.exe", "", "", "runas", 0)
'Quitte le script
WScript.Quit |
Partager