Reply
Old March 30th, 2004 Top | #1
 
IDLE's Avatar
OSNN Senior Addict
Joined: February 2004
Posts: 375
Reputation: 80
Power: 104

Default Creating Logon script

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!
IDLE is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Logon Script: Creating a specific shortcut on all users desktop? Punkrulz Web Design & Coding 4 October 3rd, 2007 11:12pm
Another Logon Script Problem jonny813 Windows Server Systems 10 March 14th, 2007 3:19pm
a logon script to update/copy current antivirus def rsuguna1 Windows Desktop Systems 2 March 16th, 2005 4:45pm
Creating Windows Logon Screens GMeagle86 Desktop Customisation 0 February 19th, 2004 3:20am
Creating Logon Screens gocoolean Windows Desktop Systems 2 December 3rd, 2002 1:31am