• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Creating Logon script

IDLE

OSNN Senior Addict
#1
I am trying to creat a login script for a printer to be installed. i have tried different ways. im doing this in a 2000 enviroment but i get errors everytime i run the script. this is what has been done in notepad:

Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\ServerName\LD024c"


the printer is shared. Note: the servername is chaned to my needs. here is hte error i get when running the script:

Script C:/(basically the path of the file)
Line 2
Char 1
Error the file name, directory name, or volume label syntax is incorrect.

Code 8007007b
Source (null)


i am creating this on my XP pro workstation. and when I run the script I get the error above. Any help would be great thanks!
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,240
Members
89,018
Latest member
timpage