chekfu
asked on
VBScript for deploying printer is not working for Windows Vista machines
VBscript for deploying shared printer is not working for Windows Vista.
It was perfectly working for current machines which are running in Windows XP Professional and Windows 2000 Professional.
I use two newly purchased machines come with pre-loaded Windows Vista Business. Two machines are successfully joined domain. However, it was no printer deployed through GPO.
Any idea?
It was perfectly working for current machines which are running in Windows XP Professional and Windows 2000 Professional.
I use two newly purchased machines come with pre-loaded Windows Vista Business. Two machines are successfully joined domain. However, it was no printer deployed through GPO.
Any idea?
Can you show us your script?
ASKER
Here you go:
Option Explicit
Dim objNetwork, Printer1, Printer2, Printer3, Printer4
Printer1 = "\\server01\PRN001"
Printer2 = "\\server01\PRN002"
Printer3 = "\\server01\PRN004"
Printer4 = "\\server01\PRN005"
Set objNetwork = CreateObject("WScript.Netw ork")
objNetwork.AddWindowsPrint erConnecti on Printer1
objNetwork.AddWindowsPrint erConnecti on Printer2
objNetwork.AddWindowsPrint erConnecti on Printer3
objNetwork.AddWindowsPrint erConnecti on Printer4
WScript.Quit
Option Explicit
Dim objNetwork, Printer1, Printer2, Printer3, Printer4
Printer1 = "\\server01\PRN001"
Printer2 = "\\server01\PRN002"
Printer3 = "\\server01\PRN004"
Printer4 = "\\server01\PRN005"
Set objNetwork = CreateObject("WScript.Netw
objNetwork.AddWindowsPrint
objNetwork.AddWindowsPrint
objNetwork.AddWindowsPrint
objNetwork.AddWindowsPrint
WScript.Quit
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I see. There is total solution. This issue is also occured to mapping drives script.
Thanks for info.
Thanks for info.