Announcement

Collapse
No announcement yet.

Script to make local printer default from TonyYey

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script to make local printer default from TonyYey

    from :TonyYey
    Code:
    Set WshNetwork = WScript.CreateObject("WScript.Network")
    PrinterPath = "Dell Laser Printer 1700n"
    WshNetwork.SetDefaultPrinter PrinterPath
    Where printerpath is, this is the name of the printer (to get exact you can use prnmngr.vbs in c:\windows\system32 on XP with a -l on the end)

    Hope this helps anyone else who wants to do this.

    I understand this but how do I add this to script to the user. I have 15 user w/15 different printers.?
    Thanks

  • #2
    Re: Script to make local printer default from TonyYey

    Hi jsaldana,

    Please choose a better Title for your thread to reflect your query.

    One non-elegant way of doing it would be to create 15 scripts and get the 15 users to run the required one.

    Cheers
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment

    Working...
    X