PC Review


Reply
Thread Tools Rate Thread

How to create a login Script to assign a defualt printer.

 
 
Michael
Guest
Posts: n/a
 
      26th Feb 2004
I want to have a users defualt printer to be set at logon.
What would be the script for this? This script goes in the
logon.bat correct?

Thank You
Michael

 
Reply With Quote
 
 
 
 
Vera Noest [MVP]
Guest
Posts: n/a
 
      26th Feb 2004
If you already have a login script that's called logon.bat, then that
would be the place to define the default printer, yes.

You'll need some sort of utility to do this:
Defprint.exe controls local printers, Con2prt.exe controls
network printers, or use a KiXtart script.

Examples (check for correct syntax!)

if %clientname% == CLIENT01 con2prt.exe \\TS\printer01

if "%Clientname%"=="CLIENT01" DefPrint.exe /d "HP OfficeJet"

if %clientname% = "CLIENT01"
SetDefaultPrinter ("\\TS\printer01")
endif

Defprint.exe can be downloaded here:
http://www.dcug.de/phpnuke/html/modu...ads&d_op=MostP
opular

con2prt.exe is part of the NT Resource Kit.
KiXtart can be downloaded from http://www.kixtart.org

--
Vera Noest
MCSE,CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
*----------- Please reply in newsgroup -------------*

"Michael" <(E-Mail Removed)> wrote in
news:1f0701c3fc35$94cdb000$(E-Mail Removed):

> I want to have a users defualt printer to be set at logon.
> What would be the script for this? This script goes in the
> logon.bat correct?
>
> Thank You
> Michael

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer Login Script =?Utf-8?B?TmluYU1v?= Microsoft Windows 2000 0 24th Mar 2005 05:47 PM
Client Printer Login Script ask0 Microsoft Windows 2000 Printing 0 22nd Nov 2003 08:57 AM
Login script for TCP/IP networked printer Dan Williams Microsoft Windows 2000 Setup 4 28th Oct 2003 05:04 PM
Re: login script to assign a printer Axel Larson Microsoft Windows 2000 Group Policy 2 6th Aug 2003 05:36 PM
Re: login script to assign a printer Tim Hines [MSFT] Microsoft Windows 2000 Group Policy 0 5th Aug 2003 04:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 AM.