Script [installation imprimante / map reseau]

Résolu/Fermé
carmi Messages postés 20 Date d'inscription lundi 10 avril 2006 Statut Membre Dernière intervention 12 mai 2007 - 17 août 2006 à 14:21
onc Messages postés 26 Date d'inscription samedi 9 octobre 2010 Statut Membre Dernière intervention 13 février 2016 - 7 juil. 2015 à 15:34
Bonjour,

Connaissez vous un script qui puisse installer une imprimante ??

On m'a demandé aussi, un script pour mapper le réseaux, ce qui determinerait les lettres aux lecteurs réseaux ! Comment faire ?

Merci

11 réponses

Sébastien P.
13 déc. 2006 à 15:30
Pour le script de l'imprimante :

Set WshNetwork = CreateObject ("WScript.Network")
on error resume next
PrinterPath = "\\serveur\imprimante1"
WshNetwork.RemovePrinterConnection PrinterPath, true, true
WshNetwork.AddwindowsPrinterConnection (PrinterPath)
PrinterPath = "\\serveur\imprimante2"
WshNetwork.RemovePrinterConnection PrinterPath, true, true
WshNetwork.AddwindowsPrinterConnection (PrinterPath)


@++
11
Ton script fonctionne parfaitement tu m'as sauvé !!!
0