B
Ben
Hi,
I'm using the following script to add a printer when a computer starts up.
As I want the printer assigned to the computer not the users I've added this
to the the computer configuration section of the GP, (under "Windows
Settings>Startup/Shutdown"), rather than the user configuration section.
However when you reboot the machine you get an error on start up saying
Error at line 4, char 1, error can not find file specified.
But if you login and run the script manually it works fine. How do I get the
script working correctly?
Cheers
Ben
-=Script=-
Option Explicit
Dim oNetwork
Set oNetwork = CreateObject("WScript.Network")
oNetwork.AddWindowsPrinterConnection "\\PRINTSERVER-2K\CUST-ACCOUNTS"
oNetwork.AddWindowsPrinterConnection "\\PRINTSERVER-2K\CUST-SERVICES"
oNetwork.SetDefaultPrinter "\\PRINTSERVER-2K\CUST-ACCOUNTS"
Set oNetwork = Nothing
I'm using the following script to add a printer when a computer starts up.
As I want the printer assigned to the computer not the users I've added this
to the the computer configuration section of the GP, (under "Windows
Settings>Startup/Shutdown"), rather than the user configuration section.
However when you reboot the machine you get an error on start up saying
Error at line 4, char 1, error can not find file specified.
But if you login and run the script manually it works fine. How do I get the
script working correctly?
Cheers
Ben
-=Script=-
Option Explicit
Dim oNetwork
Set oNetwork = CreateObject("WScript.Network")
oNetwork.AddWindowsPrinterConnection "\\PRINTSERVER-2K\CUST-ACCOUNTS"
oNetwork.AddWindowsPrinterConnection "\\PRINTSERVER-2K\CUST-SERVICES"
oNetwork.SetDefaultPrinter "\\PRINTSERVER-2K\CUST-ACCOUNTS"
Set oNetwork = Nothing