Re: Set default printer at machine level



TH O <tho@xxxxxxxxxxxxxx> wrote in
news:tho-7E1A0A.01223822112007@xxxxxxxxxxxxxxxxx:

In article <AD49511F-8572-443D-950B-B8F1ED668510@xxxxxxxxxxxxx>,
Brian <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Thank you. I already use the PrintUI to install the printers. I was
not aware of the full set of switches. Perhaps the "/y" switch sets
the printer as the default printer for the default user, thus doing
what I need it to do. I will test it.

I don't recall if that is the switch but yes, it can set the
computer's default printer. There are three or four different ways to
set that up by script ...


"TH O" wrote:

In article <12A096C6-2FDE-4F61-BB9C-C23314FB575E@xxxxxxxxxxxxx>,
Brian <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I had considered that, but I have to do this on at least 35
computers and was
hoping for just the printer registry entries that I can easily
modify and deploy to different machines.

I already have a simple .reg file that includes such things as
default folders for Word/Excel, turning off network printing
notification, etc., and
it takes about 10 seconds to configure all those options for a
new user of a
PC.

Still, I guess the profile option does cover all those bases, so
it just might be worth the work.

Try http://support.microsoft.com/kb/q189105/ for printui.dll.
You'll find more via google.


"Pegasus (MVP)" wrote:


"Brian" <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7B195D3C-2612-45E6-A50F-FD2108FC90EA@xxxxxxxxxxxxxxxx
How can I change the default default printer in Win XP? Yes,
I meant to
say
"default" twice. What I want to set is which printer is the
default as
different users log onto a particular station for the first
time.

As people move from one desk to another within the network
(Windows 2003
domain), they log onto a computer for the first time and
get, for example,
the Microsoft XPS Document Writer printer as their default.
However, the
default printer for the new user should be in close proximity
to the workstation, and the Microsoft XPS Document Writer is
never a good choice.

Now, I know the Microsoft XPS Document Writer got to be the
default somehow
and that the settings are likely sitting in the Default
user's portion of
the
registry just waiting for me to run a .reg file to correct
the issue.

You can do it like so:
1. Log on as an "average" user.
2. Set everything the way you want it, including the Default
Printer. 3. Reboot.
4. Log on as Administrator.
5. Copy the "average" user's profile folder over the top of
the Default User profile folder. Click Start / Help, then
look for help on Profiles if unsure how to do this. It's
covered under "User Profiles Overview".

Every user who logs on to this PC for the very first time
will now inherit the settings you chose.






I use this login script that keeps network printers fresh, even if I have
to relocate them, and assigns the default depending on an AD group
membership.

-------------Begin script ---------------------------------------------
Const IT_GROUP = "cn=g-it,ou=security groups,dc=xyz,dc=corp"
CONst Payroll_Group = "cn=g-payroll,ou=security groups,dc=xyz,dc=corp"
Const PRT_ColourCopier = "cn=g-color copier,ou=security
groups,dc=xyz,dc=corp"
Const DFTPRT_accts = "cn=dftprt-accts,ou=security groups,dc=xyz,dc=corp"
Const DFTPRT_mkt = "cn=dftprt-mkt,ou=security groups,dc=xyz,dc=corp"
Const DFTPRT_whouse = "cn=dftprt-whouse,ou=security
groups,dc=xyz,dc=corp"
Const DFTPRT_AR = "cn=dftprt-ar,ou=security groups,dc=xyz,dc=corp"
Const DFTPRT_custserv = "cn=dftprt-custserv,ou=security
groups,dc=xyz,dc=corp"


on error resume next

Set wshNetwork = CreateObject("WScript.Network")
Set oShell = CreateObject("Wscript.Shell")
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://"; & ADSysInfo.UserName)
strGroups = LCase(Join(CurrentUser.MemberOf))


Set clPrinters = wshNetwork.EnumPrinterConnections
For i = 0 to clPrinters.Count - 1 Step 2
wshNetwork.RemovePrinterConnection clPrinters.Item(i+1), true
Next

wshNetwork.AddWindowsPrinterConnection "\\vmFS1\BackWhse"
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\AR"
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\custserv"
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\whouse"
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\mkt"
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\accts"
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\PickTick"


if instr(strGroups,PRT_ColorCopier) then
wshNetwork.AddWindowsPrinterConnection "\\vmFS1\ColourCopier"
End If

if instr(strGroups,DFTPRT_accts) then
wshNetwork.SetDefaultPrinter "\\vmFS1\accts"
End If
if instr(strGroups,DFTPRT_mkt) then
wshNetwork.SetDefaultPrinter "\\vmFS1\mkt"
End If
if instr(strGroups,DFTPRT_whouse) then
wshNetwork.SetDefaultPrinter "\\vmFS1\whouse"
End If

if instr(strGroups,DFTPRT_AR) then
wshNetwork.SetDefaultPrinter "\\vmFS1\AR"
End If

if instr(strGroups,DFTPRT_custserv) then
wshNetwork.SetDefaultPrinter "\\vmFS1\custserv"
End If


-----------------End script ---------------------------------
.



Relevant Pages

  • Re: GPO controlled firewall incorrectly ON due to Standard instead of Domain Profile
    ... site, a single SBS2k DC, 3Com switch with independent cable runs from switch ... > on the DCs), one of which is at another location, but the connectivity is ... Where is the workgroup to implement the standard profile? ... > laptop and resume it, or turn off/turn on the machine when you connect to ...
    (microsoft.public.windows.group_policy)
  • Re: I cant select text using word 2007.
    ... Normal.dot template or an add-in located in that one profile (that is, ... Logging in as another user loads templates and add-ins from a different ... The /a switch disables loading of templates and add-ins. ... If you hover over the scroll bar, ...
    (microsoft.public.word.application.errors)
  • RE: Outlook 2007/Vista 64/ "Cannot open the Outlook Window"
    ... hours on the 'Fix it' and deleting profiles. ... Clears and regenerates the Navigation Pane for the current profile. ... I was able to get back into outlook! ... It may be a combination or specifically this switch, ...
    (microsoft.public.outlook)
  • Re: 2nd e-mail account
    ... do you switch between them, ... You'd have to l\close OL and set it to prompt you for a profile at startup. ... If you just need to have them in the same inbox, ... I create a 2nd e-mail account and have it come into his inbox, ...
    (microsoft.public.exchange.clients)
  • Re: MS Outlook 2007 didnt remember the password
    ... Hope it helps - but Outlook 2007 is still veeeeeeeeery slow when downloading ... correspond with creating a new mail profile. ... Brian Tillman- Hide quoted text - ... did not resolve my password problem. ...
    (microsoft.public.outlook)