Rename printer script



I have the below vb script to add a printer and it works fine. However I
would like to rename the printer and only have the script run if the user
does not have the printer installed already. The script is below. New to
scripting so any help much appreciated. Thanks!

Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\servername.com\HP Laser Printer"
WshNetwork.AddWindowsPrinterConnection PrinterPath


.



Relevant Pages

  • Re: Script to Rename Computer Name in Domain
    ... i looking a script to rename computer name in domain server 2003 ... To rename a computer you bind to the parent OU/Container of the computer ... you would need to also prompt for the current name. ... ' Bind to the parent OU/container of computer object. ...
    (microsoft.public.windows.server.scripting)
  • Re: Rename File Using Strring Found in File?
    ... OK, thanks, but the script does not seem to rename the files. ... # sleep 1; ... to the string in this particular file that I want to match. ...
    (comp.lang.perl.misc)
  • Re: rename a local group in windows 2003
    ... strComputer = objShell.ExpandEnvironmentStrings ... I tried to rename several local groups using the MoveHere method ... Didn't matter if I ran the script on the ... WinNT provider only rename domain groups, ...
    (microsoft.public.windows.server.scripting)
  • Re: Script to Rename Computer Name in Domain
    ... To rename a computer you bind to the parent OU/Container of the ... the local computer, you must run a script ... you can prompt for the new name with an InputBox ... ' Bind to the local computer object. ...
    (microsoft.public.windows.server.scripting)
  • Re: Renaming a bunch of users with a script
    ... I have to rename ALL of my 17.000 users to convert name, surname, displayName and cn to uppercase!!! ... I made a script that changes the name, surname and displayName of all of the users, but at the same time that I change them I create an output file with the following information for every user ... Subdirec. ...
    (microsoft.public.windows.server.scripting)