Login script for printer

I saw a login script on my Domain controller.

wshNetwork.AddWindosPrinterConnectoin "\\10.0.23.22\GFD"

What's the usage for this command ? For "GFD", is it a shared printer driver ?

Tks
AXISHKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

reredokIT ConsultantCommented:
Maybe it's a logical Port definition. Same Printer manufacturer do so. Minolta i.e. use "MPF"
0
AXISHKAuthor Commented:
What's that about ? Any further information on this ?

Tks
0
NumbidCommented:
\\10.0.23.22\GFD is your printer path (\\printserver\printshare)

WshNetwork.AddWindowsPrinterConnection can be used to map printers in a vbscript as following :

Set WshNetwork = WScript.CreateObject("WScript.Network")
' Set the path
PrinterPath = "\\printserver\printshare"
' Set the driver
PrinterDriver = "Any_appropriate_installed_driver"
' Run command
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
0
AXISHKAuthor Commented:
Just to clarify,

printshare - is it a shared name for the printer

printerpath - is it the path where the printer is mounted, eg \\10.0.0.25

Printerdriver - is it a driver name installed on the server ??

Tks
0
NumbidCommented:
Printshare is the name of the share

PrinterPath is the full printer path fe : "\\printserver\printshare"

PrinterDriver is the full name of the driver fe : "HP Laserjet PCL6"



/numbid
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.