Script [installation imprimante / map reseau]

Résolu
carmi Messages postés 20 Date d'inscription   Statut Membre Dernière intervention   -  
onc Messages postés 26 Date d'inscription   Statut Membre Dernière intervention   -
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.
 
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
kagemane
 
Ton script fonctionne parfaitement tu m'as sauvé !!!
0