Jump to content

Recommended Posts

Posted

Hi, all does anyone have any any vbs scripts that will map network printers from the application compabilty scripts folder on terminal services?

I want to map some printers but already use a login script in AD for my fat clients and don't really want to add to it.

Any help as always hugely appreciated.

regards

uraken.

Posted

nice one ric this is what i need, but i'm having problems modifying it i want the script to look at clientnames called english* and map a single network printer to it in TS, what bits do i need to get rid of ?

cheers for your time this far mate.

Posted

There should be a line that reads

 

Select Case (Left(ComputerName, 4))

 

This looks at the first 4 characters of the computername (clientname in the case of thin clients) and then maps the printers accordingly. You could use the following after the Select...

 

Case "engl"
   WshNetwork.AddWindowsPrinterConnection "\\server\share"
...

Posted
thanks ric managed to get it working, all be it running it locally, i had put it in my c:\WINDOWS\Application Compatibility Scripts\Logon folder named printers.vbs but this doesn't work which is odd because all my drive mappings work form here?
Posted
You need to ru nthe script as a logon script (and make sure that the printer drivers are installed first - sometimes this can prevent the mappings working properly).
Posted
i don't want to run it as a logon script (i already have a fat client one) but i have it sorted now i have to call it from a script in c:\windows\system32, thanks for all your help i could not have achieved this without your help mate.
Posted

@Uraken: I don't see why you wouldn't want to use one script for both fat and thin clients...

 

Anyway... you can set a different logon script in the user properties pages for when they log onto terminal services.

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...