Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set users default printers without logging in

Status
Not open for further replies.

djieon

Technical User
Aug 19, 2008
107
GB
Hi all,

I am a local admin on my windows 2000 terminal server and when my users log on they create their profiles in c:\documents and settings etc...

I have set print queues up on the server itself and I need to be able to change my users default printer without them having to do it themselves. Is there any way of me doing this?

Thanks!
 
create a batch file: Open a command prompt and type edit .bat. Type net use x: \\\ where x: is the drive letter you want to assign. For printers type net use LPTx: \\\ where x is the LPT port you want to assign it to. Save the batch file and place it in the folder winnt\system32\repl\import\scripts. In the user properties in user manager click the profile button and enter the logon script name in the line of the same name.
 
Thanks for the speedy reply, however I dont have acess to theri user accounts as they logon to the local box with a domain account. Is there any file and can go into in their documents and settings to change it?
 
do they log in using Active Directory? there should be a folder under sysvol where 'scripts' are held and in the properties of their AD account you can put the named script in their logon properties.
 
hi,

I know 2 ways:
1) use CON2PRT.exe
2) use rundll32 printui.dll,PrintUIEntry

there are also CScript and VBscript.

However you need a centralized login script in Active Directory.

For way 1
- download it (it is not easy to find today)
- see instructions on - copy CON2PRT.exe in system32 of Terminal servers
- put in the logon script a command as showed in ss64

For way2
- see doc in - try rundll32 printui.dll,PrintUIEntry /? in Start run
- find the right syntax and parameter
- put in in the logon script

In both cases, before set def printer, delete all network connections, add network printer connection (CON2PRT /f,...)

ciao
vittorio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top