Script [installation imprimante / map reseau]

Résolu
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

  1. 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)
    


    @++
    1. Ton script fonctionne parfaitement tu m'as sauvé !!!