That's a good fall back for me, but the problem with doing command line scripting is that I have the command prompt disabled for security reasons, so users would not be able to open up a command prompt, even for logon scripts. VB scripts still run without command line options. Also, my users already have VB logon scripts specified in their logon script. I guess I could run the whole batch file as a machine script, if I assign everyone print permission, it should be able to connect successfully.
Hrm...I'll have to look into that further...it might be possible.
Main Topics
Browse All Topics





by: visioneerPosted on 2004-03-29 at 20:25:06ID: 10710502
You don't need VB to do this. You can do most of it via command-line scripting.
e.com/Oper ating_Syst ems/ Window s_Server_2 003/Q_2093 6760.html
First of all, look at this thread:
http://www.experts-exchang
Create your scripts using Kixtart based on the information I posted in that thread.
In your batch file, use if/then statements based on computername. For example:
if (%computername%)==(NH1) goto NH1-PC
if (%computername%)==(NH3) goto NH3-PC
goto end
:NH1-PC
<call the script for mapping to the printer in Nelson Hall Room 1>
goto end
:NH3-PC
<call the script for mapping to the printer in Nelson Hall Room 3>
goto end
:end
Let me know if you need clarification, or if you want me to write the darn thing for ya. :)