PC Review


Reply
Thread Tools Rate Thread

Remove printer script

 
 
Cham
Guest
Posts: n/a
 
      30th Jun 2003
Hi

I am currently running a project to migrate the print
server from the domain controller. It is simple to use
the print migrator to migrate all the printers to another
Windows 2000 box. The problem here is the workstations
needs to remove the existing printers and add the new
connections to the new print server.

I have managed to create a vbs script to run the windows
scripting host to do all the task. But I found that the
script to remove the printers are not able to be run on
some of machines. All the clients are Windows 2000 Pro
with multiple service packs.

The error occurs are below;
The network connection does not exist.

I actually found that I can solve the problem by
upgrading the windows scripting host version XX to the
newest version which is 5.6. What is actually causing the
script not to work properly? Is there any solution to
solve the issue without requiring to upgrade the version
of the windows scripting host as there are 1800
workstations.

Please help!


Cham

 
Reply With Quote
 
 
 
 
Brad Gerard
Guest
Posts: n/a
 
      1st Jul 2003
Try using con2prt in the logon script. I use it as part
of a VBS script to auto-create network printers for users
as one client uses local profiles on XP (due to WAN
bandwidth limitations).

Anyway, it has several useful switches that may solve your
problem by not having to use a VB Script at all. It is
part of the Win NT 4.0 ZAK that can be pulled down from
MS. It works fine in 2000 server enviroment on 2k and XP
workstations.

Check out http://www.jsifaq.com/SUBA/tip0400/rh0458.htm

Hope that helps. Feel free to email me if you have
questions.

>-----Original Message-----
>Hi
>
>I am currently running a project to migrate the print
>server from the domain controller. It is simple to use
>the print migrator to migrate all the printers to another
>Windows 2000 box. The problem here is the workstations
>needs to remove the existing printers and add the new
>connections to the new print server.
>
>I have managed to create a vbs script to run the windows
>scripting host to do all the task. But I found that the
>script to remove the printers are not able to be run on
>some of machines. All the clients are Windows 2000 Pro
>with multiple service packs.
>
>The error occurs are below;
>The network connection does not exist.
>
>I actually found that I can solve the problem by
>upgrading the windows scripting host version XX to the
>newest version which is 5.6. What is actually causing the
>script not to work properly? Is there any solution to
>solve the issue without requiring to upgrade the version
>of the windows scripting host as there are 1800
>workstations.
>
>Please help!
>
>
>Cham
>
>.
>

 
Reply With Quote
 
Bruce Sanderson
Guest
Posts: n/a
 
      3rd Jul 2003
Don't know the answer to your specific question, but you may find the
information at http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm useful
for adding the new Network Printers to your client computers.

You may be able to use the /dn optin of the PrintUIEntry function to delete
the printers instead of using a VB script.

At a command prompt, key

rundll32 printui.dll,PrintUIEntry /?

for additional information.

--
Bruce Sanderson MVP

It is perfectly useless to know the right answer to the wrong question.


"Cham" <(E-Mail Removed)> wrote in message
news:01b101c33ed1$a8dabba0$(E-Mail Removed)...
> Hi
>
> I am currently running a project to migrate the print
> server from the domain controller. It is simple to use
> the print migrator to migrate all the printers to another
> Windows 2000 box. The problem here is the workstations
> needs to remove the existing printers and add the new
> connections to the new print server.
>
> I have managed to create a vbs script to run the windows
> scripting host to do all the task. But I found that the
> script to remove the printers are not able to be run on
> some of machines. All the clients are Windows 2000 Pro
> with multiple service packs.
>
> The error occurs are below;
> The network connection does not exist.
>
> I actually found that I can solve the problem by
> upgrading the windows scripting host version XX to the
> newest version which is 5.6. What is actually causing the
> script not to work properly? Is there any solution to
> solve the issue without requiring to upgrade the version
> of the windows scripting host as there are 1800
> workstations.
>
> Please help!
>
>
> Cham
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line/Script to Remove/Uninstall Program that can only be removed from Add or Remove Programs Conan Kelly Windows XP General 2 15th May 2010 01:18 AM
Re: Script to Install Printer Drivers w/o adding printer Alan Morris [MSFT] Windows XP Print / Fax 3 11th Aug 2009 09:07 AM
Printer Install Script: How to Define Printer Trays? BSmith2277@gmail.com Microsoft Windows 2000 Printing 0 15th Feb 2007 03:42 PM
remove margins and printer chars on generic / text printer? Mickey Ferguson Windows XP Help 0 23rd Aug 2006 08:33 PM
script to set default printer between local printer and network pr =?Utf-8?B?aXRjb20=?= Windows XP Print / Fax 1 30th May 2006 06:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 PM.