Inpresorak sarean script baten bidez instalatzeko

Page 1

Inpresorak SCRITetik instalatzeko Dim Usuario Dim Servidor Dim Red On Error Resume Next Servidor = "ZORXXXXXXA" Set Red = WScript.CreateObject("WScript.Network") While Usuario = "" Usuario = Red.Username Wend RutaImpresora = "\\" & Servidor & "\Xerox Document Centre 440" Red.AddWindowsPrinterConnection RutaImpresora RutaImpresora = "\\" & Servidor & "\HP Laserjet 4100N" Red.AddWindowsPrinterConnection RutaImpresora Red.MapNetworkDrive "M:", "\\" & Servidor & "\" & Usuario On Error GoTo 0 If Left(Usuario, 2) = "IR" Then Red.MapNetworkDrive "N:", "\\" & Servidor & "\Irakasleak" RutaImpresora = "\\" & Servidor & "\HP LaserJet 2200 Series PCL 6" Red.AddWindowsPrinterConnection RutaImpresora End If If Left(Usuario, 2) = "IK" Then Red.MapNetworkDrive "N:", "\\" & Servidor & "\Ikasleak" End If If Left(Usuario, 2) = "AD" Then Red.MapNetworkDrive "N:", "\\" & Servidor & "\Administrazioa" Pedro Ruiz de Gauna Irungo Berritzeguneko IKTen Aholkularia

k aue ira h r d erro Bi l zi beha nahi idat alatzea resora inst un inp dug oitzeko bak

Erabiltzaile bakoitzari dagokion inpresora instalatzeko

Página 2 de 2 End If If Left(Usuario, 2) = "ir" Then Red.MapNetworkDrive "N:", "\\" & Servidor & "\Irakasleak" RutaImpresora = "\\" & Servidor & "\HP LaserJet 2200 Series PCL 6" Red.AddWindowsPrinterConnection RutaImpresora End If If Left(Usuario, 2) = "ik" Then Red.MapNetworkDrive "N:", "\\" & Servidor & "\Ikasleak" End If If Left(Usuario, 2) = "ad" Then Red.MapNetworkDrive "N:", "\\" & Servidor & "\Administrazioa" End If Red.MapNetworkDrive "O:", "\\" & Servidor & "\Orokorra" Set Red = Nothing '********************************* '***Esto funciona perfectamente*** '********************************* 'Set Usuario_Dominio = GetObject("WinNT:/

Título: ene 7 ­ 11:16 (1 de 1)

ena inpresoraren iz . da r ha be sartu ora es pr in k ti re Aur n ia ar hori zerbitz da r ha be instalatu r ve ri d n" ea "lokal . guztiak sartuz


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.