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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting default printer based on user group

Status
Not open for further replies.

wilsona

Technical User
Jan 26, 2001
131
GB
Has anyone any idea how I can set the default printer for a user on login, based on the group they belong to? (Not autocreated, on a print server (UNC), mandatory user profiles.)
 
get the tool con2prt.exe
get the resourcekit tool ifmember.exe

use it like:

ifmember "group"
if errorlevel 1 goto end

rem erase all previous connected printers
con2prt /F

rem connect to printer and make default
con2prt /cd \\uncpath\printer

rem connect to printer, not default
con2prt /c \\uncpath\printer

:end




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top