Jump to content

Add printer script not workling


Recommended Posts

Posted

I'm having problems with my printer script. We migrated to W2003 server on a new box, leaving the demoted DC as the Print Server. Users can browse to all the printers no problem, and the script runs fine for all users [i've tested running it visibly and it steps through everything fine] but no printer gets attached.

 

I have mostly XP clients and some 2000 clients.

 

Anyone help?

Posted

My script worked for my network perfectly before the migration - with no changes anywhere else - so there's no problem with the script.

 

here's an excerpt anyway [kix32]:

DelPrinterConnection ("\\SERVER\printer")

set computer="@wksta"
$room=SubStr(@wksta,2,2)
$client=SubStr(%clientname%,2,2)

Select
 Case ($room="EC") 
    AddPrinterConnection ("\\SERVER\printer")
    SetDefaultPrinter ("SERVER\printer")
EndSelectSelect
Select
 Case ($room="19") 
    AddPrinterConnection ("\\SERVER\printer")
    SetDefaultPrinter ("\\SERVER\printer")
EndSelect
Select

Posted

looks good to me mark ;)

 

the thought occurs - how is the script being executed? have you moved the script to the netlogon of the 2003 server then?

 

mine is working fine - just for equal measure, i've added kix32.exe (with share path) to the firewall exceptions list ;) but it was working before i did that :)

 

One thought is - when installing Server 2003 - did it have sp1 slipstreamed into it i.e. server 2003 SP1 CD - or not because if so, the server's firewall will be on by default, as opposed to installing SP1 afterwards (in the later - you have to run a wizard to enable it and other stuff - not done it so dont know what process it is exactly)

 

PS have you tried using the latest version of kix32.exe - it *may* help but wont do any harm as u dont have any complex things that might have changed :)

 

Cheers

Nath

Posted

the script has moved to the netlogon share of the new dc - I changed the call path to the DC. As I say - the script runs fine without errors - just doesn't give the desired result!

 

Checked - firewall is off on server.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...