HelpJayPlz
MIS
Hi guys, I could do with some help on this.
I need to be able to assign Network Printers at 'Machine Startup' and NOT at the 'User Logon' as the users move around and the machines don't.
I've setup geographical OU's for the PC and Departmental OU's for the Users.
The Scripts for the users work fine and follow them around no matter what PC they logon to
BUT the script to assign Printers to Machines does not work the way I expected. Here's the script I'm using, I'll explain what happens after you've cast your eyes through it....
Dim multiPrinter, UNCpath1, UNCpath2
UNCpath1 = "\\SERVER01\PRINTER1"
UNCpath2 = "\\SERVER01\PRINTER2"
Set multiPrinter = CreateObject("WScript.Network")
multiPrinter.AddWindowsPrinterConnection UNCpath1
multiPrinter.AddWindowsPrinterConnection UNCpath2
WScript.Echo "Your printer is mapped from : " & UNCpath1 _ & "and from : " & UNCpath2
WScript.Quit
The script runs before the user logs on, I know this because I get the echo message OK, butu when I log in the printers are not mapped?????
If I run the script manually after I've logged in then the printers ARE mapped????
I've had a look around the forum, and not found any definative answers, maybe something to do with permissions?
Any help would be most greatful.
Cheers
Jay
I need to be able to assign Network Printers at 'Machine Startup' and NOT at the 'User Logon' as the users move around and the machines don't.
I've setup geographical OU's for the PC and Departmental OU's for the Users.
The Scripts for the users work fine and follow them around no matter what PC they logon to
BUT the script to assign Printers to Machines does not work the way I expected. Here's the script I'm using, I'll explain what happens after you've cast your eyes through it....
Dim multiPrinter, UNCpath1, UNCpath2
UNCpath1 = "\\SERVER01\PRINTER1"
UNCpath2 = "\\SERVER01\PRINTER2"
Set multiPrinter = CreateObject("WScript.Network")
multiPrinter.AddWindowsPrinterConnection UNCpath1
multiPrinter.AddWindowsPrinterConnection UNCpath2
WScript.Echo "Your printer is mapped from : " & UNCpath1 _ & "and from : " & UNCpath2
WScript.Quit
The script runs before the user logs on, I know this because I get the echo message OK, butu when I log in the printers are not mapped?????
If I run the script manually after I've logged in then the printers ARE mapped????
I've had a look around the forum, and not found any definative answers, maybe something to do with permissions?
Any help would be most greatful.
Cheers
Jay