Thin Client and Virtual Machines Thread, Terminal server printing in Technical; Hi, all does anyone have any any vbs scripts that will map network printers from the application compabilty scripts folder ...
-
1st December 2006, 09:21 AM #1
- Rep Power
- 12
Terminal server printing
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.
-
-
IDG Tech News
-
1st December 2006, 10:34 AM #2 Re: Terminal server printing
If you look at my script in the scripts forum, you will find that it works for both fat and thin clients.
-
-
1st December 2006, 11:29 AM #3
- Rep Power
- 12
Re: Terminal server printing
nice one mate which one (give us a clue)
-
-
1st December 2006, 11:33 AM #4 Re: Terminal server printing
-
-
1st December 2006, 12:01 PM #5
- Rep Power
- 12
Re: Terminal server printing
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.
-
-
1st December 2006, 01:53 PM #6 Re: Terminal server printing
There should be a line that reads
Code:
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...
Code:
Case "engl"
WshNetwork.AddWindowsPrinterConnection "\\server\share"
...
-
-
1st December 2006, 02:56 PM #7
- Rep Power
- 12
Re: Terminal server printing
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?
-
-
1st December 2006, 03:52 PM #8 Re: Terminal server printing
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).
-
-
1st December 2006, 04:24 PM #9
- Rep Power
- 12
Re: Terminal server printing
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.
-
-
1st December 2006, 04:57 PM #10 Re: Terminal server printing
@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.
-
SHARE:
Similar Threads
-
By Jonny_sims in forum Thin Client and Virtual Machines
Replies: 6
Last Post: 12th May 2010, 11:30 PM
-
By Norphy in forum Thin Client and Virtual Machines
Replies: 2
Last Post: 2nd July 2007, 09:33 AM
-
By meastaugh1 in forum Thin Client and Virtual Machines
Replies: 9
Last Post: 18th June 2007, 06:26 PM
-
By wesleyw in forum Thin Client and Virtual Machines
Replies: 8
Last Post: 26th February 2007, 02:03 PM
-
By Norphy in forum Thin Client and Virtual Machines
Replies: 7
Last Post: 29th November 2006, 04:19 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules