Some users in my network use XP home edition laptop and can't joint to the domain to use network printers. I would like to write a VBscript to map the network printers for them by double clicking the VBScript file. I wrote a code as below and it doesn't work. I think I may need to get credential from the print server. Does anyone knows how to do that.
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set PrinterShares = GetObject("WinNT://printserver")
PrinterShares.filter = array("PrintQueue")
For Each queue In PrinterShares
PrinterPath = "\\printserver\" & queue.name