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

policy setting for default printer

Status
Not open for further replies.

vaughn9

Technical User
Sep 23, 2001
183
Is there a policy setting for making a printer a default printer for a particular user. For example if I wanted John Brown to have a printer as his default printer when he logs on by using policy settings how would I do that.

I am thinking I would put that user in an ou then link a polity setting if there is one to set a default printer for a user.

or can I write a script and place it in logon script which would set a particular printer to default when the user logs on? not too sure

Any sugggestions?
 
This can be easily scripted, or done through the logon script, or by user selection through .bat or .cmd files.

A very strong discussion of one method can be found here: thread779-581142

A scripting solution would resemble the following, where you edited the Netbios name for "ScriptedPrinter":
[tt]
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where Name = 'ScriptedPrinter'")

For Each objPrinter in colInstalledPrinters
objPrinter.SetDefaultPrinter()
Next

[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top