Scripts Thread, Logon.bat query in Coding and Web Development; Apologies in advance folks if the following question seems dreadfully naive to many of you. We have a Win2K server ...
-
20th April 2007, 08:57 AM #1 Logon.bat query
Apologies in advance folks if the following question seems dreadfully naive to many of you. We have a Win2K server and Win XP Pro SP2 workstations the latter have been suffering slow log on over recent months, I suspect this is since the logon.bat file was altered to read:
#echo off
net use lpt2: \\wcs-server01\BrotherH /yes /************\***********
net use lpt3: \\its21\BrotherH /yes
net use m: \\wcs-server01\test /yes
net use S: \\wcs-server01\Shared /yes
I do want to define a default printer and alternative printer. The default is connected to the server so would be \\wcs-server01\Brother hl-5130 series
the alternate is a network attached printer and comes up as
\\wcs-server01\HP Officejet Pro K550 Series
I can see that clearly the net use lpt3: \\its21\brotherH is erroneous now as that workstation no longer has any printer connected.
I’m not sure why net use lpt2 & 3 appear, why is it 2 and 3 – the workstation I’m sending this message from has the brother coming up as lpt1 and the HP as a TCP/IP port which I have reserved at the server as **.***.**.***?
I’m also unsure what I’d need to write to get the correct printers listed in the file.
Last edited by speckytecky; 3rd September 2008 at 05:42 PM.
-
-
IDG Tech News
-
20th April 2007, 09:09 AM #2 Re: Logon.bat query
I recommend Rics VBS printer script for setting up printers.
http://www.edugeek.net/index.php?nam...iewtopic&t=404
-
-
20th April 2007, 09:14 AM #3 Re: Logon.bat query
I know this isn't much help but have you tried using a kixtart script instead to map your printers on logon?
The managability makes it so easy to use...
If you would like, I could send you mine as an example, and then all you would need to do is call the kixtart script into the logon.bat like this:
\\yourlogonserver\NETLOGON\kix32.exe \\yourlogonserver\NETLOGON\theprinterscript.kix
While the scripting language can do all sorts, I only use it for printer driver installation and port assigning during logon.
http://www.kixtart.org
Commands like http://www.kixtart.org/index.asp?p=c...#_Toc146265719 are what you would need, but if it looks all to confusing, I can post up or PM you my script as an example.
Regards
Nath.
-
-
20th April 2007, 10:08 AM #4 Re: Logon.bat query
Crumbs, that all seems complicated and way beyond my current ability! Rick Charlton kindly built a vbs script which I currently use on individual workstations to change printers. Would I be right in thinking that if I have that vbs file in the Netlogon folder on the server and list it in the logon.bat file that it would run ok from there, if so what would I need to write in the logon.bat file to achieve this?
As to my existing logon.bat file would I be OK to just take the incorrect line out?
-
SHARE:
Similar Threads
-
By tech_guy in forum Web Development
Replies: 5
Last Post: 29th October 2007, 09:44 PM
-
By markwilliamson2001 in forum Web Development
Replies: 5
Last Post: 5th October 2007, 08:43 AM
-
By Kained in forum Web Development
Replies: 10
Last Post: 25th July 2007, 02:56 AM
-
By derer1 in forum General Chat
Replies: 14
Last Post: 12th February 2007, 03:10 PM
-
By pinemarten in forum How do you do....it?
Replies: 2
Last Post: 20th January 2006, 10:22 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules