Script [installation imprimante / map reseau]

Résolu
carmi Messages postés 20 Statut Membre - 17 août 2006 à 14:21
onc Messages postés 26 Statut Membre -
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
A voir également:

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