Networking Forums

Networking Forums > Computer Networking > Windows Networking > Assign networked printer by using GPO

Reply
Thread Tools Display Modes

Assign networked printer by using GPO

 
 
bear
Guest
Posts: n/a

 
      07-29-2004, 12:27 AM
Windows 2003 Server and XP workstations

2 networked printers are located in different rooms. I have a GPO for the
student to use 1 printer. But don't know how to resolve the issue for the
2nd one.

Student will move from room to room, how to have a script or policy to map
the printer according to the room location?

Should I use a script to run on local workstation and how?


 
Reply With Quote
 
 
 
 
Brad Fox
Guest
Posts: n/a

 
      07-29-2004, 08:51 PM
U can create a new GPO and assign the following script as a user logon script. Some modifications will need to be made to this script but this should get you started.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_
objPrinter.DriverName = "HP LaserJet 4000 Series PS"
objPrinter.PortName = "IP_169.254.110.160"
objPrinter.DeviceID = "ScriptedPrinter"
objPrinter.Location = "USA/Redmond/Building 37/Room 114"
objPrinter.Network = True
objPrinter.Shared = True
objPrinter.ShareName = "ScriptedPrinter"
objPrinter.Put_


Bradley Fox
Sr. Network Administrator
MCSE - W2K

>>> bear<(E-Mail Removed)> 07/28/04 08:27PM >>>

Windows 2003 Server and XP workstations

2 networked printers are located in different rooms. I have a GPO for the
student to use 1 printer. But don't know how to resolve the issue for the
2nd one.

Student will move from room to room, how to have a script or policy to map
the printer according to the room location?

Should I use a script to run on local workstation and how?

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Assign IP Addresses to networked devices based upon MAC Mr. Smith Windows Networking 5 08-10-2007 07:43 PM
Networked printer for public use atom Windows Networking 0 12-12-2006 06:35 PM
assign a printer to account Hernán Castelo Windows Networking 1 02-04-2005 10:42 AM
Networked printer OVS Wireless Internet 10 01-09-2005 08:46 PM
Networked printer mapping bear Windows Networking 1 08-04-2004 12:16 PM



1 2 3 4 5 6 7 8 9 10 11