Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Creating A Printer Share At The Command Line


  • Please log in to reply
4 replies to this topic

#1 bladecleaver

bladecleaver

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:24 PM

Posted 29 October 2007 - 06:36 PM

Is it possible to create a printer share at the command line. I am working with an older, DOS based program that we map network printer shares to. I am now trying to use it with Terminal Services. I can get the users printer to show up on the Term server, but it does not share it, since it is recreated every time you log in.

I figure I can map the share with a login script. Just can't figure out how to create the share to map.

Thanks in Advance

BC AdBot (Login to Remove)

 


#2 acklan

acklan

    Bleepin' cat's meow


  • Members
  • 8,529 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Baton Rouge, La.
  • Local time:10:24 AM

Posted 29 October 2007 - 08:44 PM

What operating system are you working from, and what operating system are you mapping to?
"2007 & 2008 Windows Shell/User Award"

#3 bladecleaver

bladecleaver
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:24 PM

Posted 30 October 2007 - 10:50 AM

Term Server is running Win 2003 R2
Remote Desktop Clients are running XP pro with latest remote desktop connection client

Trying to print to printer connected to remote client.

Note: Remote Clients are not at the same location as the Term Server.

#4 bladecleaver

bladecleaver
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:24 PM

Posted 31 October 2007 - 01:53 PM

Would it be possible with a net share command?

I only seem to be able to share files that way.

#5 Grinler

Grinler

    Lawrence Abrams


  • Admin
  • 43,593 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:12:24 PM

Posted 31 October 2007 - 02:11 PM

Hopefully this is what you are looking for:

[quote name='http://ts.veranoest.net/ts_faq_printing.htm']Q: My old DOS application needs to print to LPT1. How can this be done?
Last modified: June 17, 2007

A: You have to disable the physical LPT1 port on the Terminal Server in Device Manager to allow users to redirect LPT1 to their local printers. Windows Server 2003 does not allow normal users to redirect physical ports, i.e. LPT1, but after you have disabled LPT1 in Device Manager or the BIOS, users will be able to redirect LPT1 because it would then be a logical port.

Then share the local client printer and add a line to your user's logon script:

NET USE LPT1: \\tsclient\<shared_local_printer>[/quote]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users