[THIN] Re: Default printer issue

  • From: "Jeff Durbin" <techlists@xxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 14 Apr 2004 08:34:23 +1200

How about scripting the default printer? In VBScript, you'd do something
like this:

' ---- BEGIN CODE -----
Set objNetwork = WScript.CreateObject("WScript.Network")
If objNetwork.UserName = "jdurbin" then
  strPrinterPath = "\\server\printer"
  blnSetPrinter = True
End If

if blnSetPrinter then
  objNetwork.AddWindowsPrinterConnection strPrinterPath
  objNetwork.SetDefaultPrinter strPrinterPath
end if

Set objNetwork = nothing
' ---- END CODE -----
 
  You can do the same thing with computer names and groups.
  I doubt this code will post properly to the list (remove all the =3D and
=20 that get added). I can email it to you if it does get garbled and you're
interested.

JD


> -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx 
> [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Greg Reese
> Sent: Wednesday, 14 April 2004 6:47 a.m.
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] Re: Default printer issue
> 
> I have the EXACT same problem with one user out of the 75 
> that have a locally attached printer.  I have also done the 
> same things, new profile etc.
> 
> I am running Windows 2003 Server with MF Xpa FR/SP 3 and a 
> bunch of Hotfixes.
> 
> Nice to know it is not just me.
> 
> Greg=20
> 
> -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx 
> [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Werther, Chris
> Sent: Tuesday, April 13, 2004 10:44 AM
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Default printer issue
> 
>  Im having users that will not keep their default printer. 
> One users printer ALWAYS defaults back to a network printer 
> she seldom uses.
> Another constantly reverts to a network printer that HE 
> rarely uses. Ive gone so far as to recreate the profiles and 
> reset their default printer.
> Same issue. If I remove the "unwanted" printer from them, it 
> defaults to the printer they want to have as their default. 
> So it doesn't appear to be an autocreation or connection 
> issue. I use the Citrix Management Console to assign network 
> printers for the users.=20
> 
> 
> ********************************************************
> This Week's Sponsor - RTO Software / TScale What's keeping 
> you from getting more from your terminal servers? Did you 
> know, in most cases, CPU Utilization IS NOT the single 
> biggest constraint to scaling up?! Get this free white paper 
> to understand the real constraints & how to overcome them. 
> SAVE MONEY by scaling-up rather than buying more servers.
> http://www.rtosoft.com/Enter.asp?ID=3D147
> **********************************************************
> Useful Thin Client Computing Links are available at:
> http://thin.net/links.cfm
> ***********************************************************
> For Archives, to Unsubscribe, Subscribe or set Digest or 
> Vacation mode use the below link:
> http://thin.net/citrixlist.cfm
> ********************************************************
> This Week's Sponsor - RTO Software / TScale What's keeping 
> you from getting more from your terminal servers? Did you 
> know, in most cases, CPU Utilization IS NOT the single 
> biggest constraint to scaling up?! Get this free white paper 
> to understand the real constraints & how to overcome them. 
> SAVE MONEY by scaling-up rather than buying more servers.
> http://www.rtosoft.com/Enter.asp?ID=147
> **********************************************************
> Useful Thin Client Computing Links are available at:
> http://thin.net/links.cfm
> ***********************************************************
> For Archives, to Unsubscribe, Subscribe or set Digest or 
> Vacation mode use the below link:
> http://thin.net/citrixlist.cfm
> 

********************************************************
This Week's Sponsor - RTO Software / TScale
What's keeping you from getting more from your terminal servers? Did you
know, in most cases, CPU Utilization IS NOT the single biggest
constraint to scaling up?! Get this free white paper to understand the
real constraints & how to overcome them. SAVE MONEY by scaling-up rather
than buying more servers.
http://www.rtosoft.com/Enter.asp?ID=147
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: