Scott Townsend
10-26-2005, 09:16 PM
We want to change everyone's existing default printer to a new default
printer. Is there an easy way to just change everyone's Default?
We want to change the Existing user's who have a profile and all of the new
users that log in.
We tried: rundll32 printui.dll,PrintUIEntry /y /n <printer>
though that only did it for the logged in user.
Thanks,
Scott<-
Dave Patrick
10-26-2005, 10:18 PM
You'll probably need to add this to your logon script.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Scott Townsend" wrote:
> We want to change everyone's existing default printer to a new default
> printer. Is there an easy way to just change everyone's Default?
>
> We want to change the Existing user's who have a profile and all of the
> new users that log in.
>
> We tried: rundll32 printui.dll,PrintUIEntry /y /n <printer>
>
> though that only did it for the logged in user.
>
> Thanks,
> Scott<-
>
>
>
Scott Townsend
10-27-2005, 05:27 AM
I only want it for the one server they log into. Though the users are
restricted I'm not sure if they can run the command.
What it the best way to run it as a login script for the particular machine?
Thanks,
Scott<-
"Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message
news:exhWKLn2FHA.3228@TK2MSFTNGP15.phx.gbl...
> You'll probably need to add this to your logon script.
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Scott Townsend" wrote:
>> We want to change everyone's existing default printer to a new default
>> printer. Is there an easy way to just change everyone's Default?
>>
>> We want to change the Existing user's who have a profile and all of the
>> new users that log in.
>>
>> We tried: rundll32 printui.dll,PrintUIEntry /y /n <printer>
>>
>> though that only did it for the logged in user.
>>
>> Thanks,
>> Scott<-
>>
>>
>>
>
>
Jerold Schulman
10-27-2005, 02:03 PM
On Wed, 26 Oct 2005 13:16:07 -0700, "Scott Townsend" <scott-i@.-N0-SPAMplease.enm.com> wrote:
>We want to change everyone's existing default printer to a new default
>printer. Is there an easy way to just change everyone's Default?
>
>We want to change the Existing user's who have a profile and all of the new
>users that log in.
>
>We tried: rundll32 printui.dll,PrintUIEntry /y /n <printer>
>
>though that only did it for the logged in user.
>
>Thanks,
> Scott<-
>
>
A users' default printer is defined at:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device
which the have access to.
See tip 0672 » How do I set a roaming users default printer based upon the PC they logon at?
for format.
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
Dave Patrick
10-27-2005, 02:06 PM
These articles may help you.
How to Add Printers with No User Interaction in Windows
http://support.microsoft.com/default.aspx?scid=kb;en-us;189105
Some other options would be to use the AddPrinterConnection method of
VBScript
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthaddprinterconnection.asp
Prnadmin.dll from the resource kit.
http://support.microsoft.com/default.aspx?scid=kb;en-us;321025
You might place it in the %allusersprofile%\Start Menu\Programs\Startup
directory on that machine. You'll probably need to add some checking to see
if the printer already exists.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Scott Townsend" wrote:
>I only want it for the one server they log into. Though the users are
>restricted I'm not sure if they can run the command.
>
> What it the best way to run it as a login script for the particular
> machine?
>
> Thanks,
> Scott<-