Removing printers (session) on terminal server

T

tractng

Guys,

I want to remove the printer session that is created by default from
the Terminal server 2003. Right now, by default it creates a session
that is the user's local printer.

How do I remove it?

my current script (just a brief versin).

TIA
tony

----------------------------------------------------------



REM @ECHO OFF



REM Relations

IF /I %USERNAME% EQU XX1 goto TCARelations
IF /I %USERNAME% EQU XX2 goto TCARealtions
IF /I %USERNAME% EQU XX3 goto TCARelations
IF /I %USERNAME% EQU XX4 goto TCARelations
IF /I %USERNAME% EQU XX5 goto TCARelations


REM Annual

IF /I %USERNAME% EQU XX6 goto TCAGiving
IF /I %USERNAME% EQU XX7 goto TCAGiving
IF /I %USERNAME% EQU XX8 goto TCAGiving
IF /I %USERNAME% EQU XX9 goto TCAGiving
IF /I %USERNAME% EQU XX10 goto TCAGiving
IF /I %USERNAME% EQU XX11 goto TCAGiving
IF /I %USERNAME% EQU XX12 goto TCAGiving





REM
------------------------------------------------------------------------------------------


:TCARelations
con2prt /f
con2prt /cd \\cmps1\cb2hp03a
con2prt /c \\cmps1\cb2hp03b
con2prt /c \\cmps1\cb2hp02a
con2prt /c \\cmps1\cb2hp02b
GoTo FINAL

:TCAGiving
con2prt /f
con2prt /cd \\cmps1\cb2hp08a
con2prt /c \\cmps1\cb2hp08b
con2prt /c \\cmps1\cb2hp06a
con2prt /c \\cmps1\cb2hp06b
Goto FINAL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top