+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    1,575
    Blog Entries
    1
    Thank Post
    2,159
    Thanked 116 Times in 100 Posts
    Rep Power
    49

    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.

  2. IDG Tech News

  3. #2
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,056
    Blog Entries
    1
    Thank Post
    104
    Thanked 439 Times in 380 Posts
    Rep Power
    114

    Re: Logon.bat query

    I recommend Rics VBS printer script for setting up printers.

    http://www.edugeek.net/index.php?nam...iewtopic&t=404

  4. #3
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,872
    Thank Post
    13
    Thanked 40 Times in 34 Posts
    Rep Power
    24

    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.

  5. #4
    speckytecky's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    1,575
    Blog Entries
    1
    Thank Post
    2,159
    Thanked 116 Times in 100 Posts
    Rep Power
    49

    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:
+ Post New Thread

Similar Threads

  1. Joomla query
    By tech_guy in forum Web Development
    Replies: 5
    Last Post: 29th October 2007, 09:44 PM
  2. Query of existing query data in PHP
    By markwilliamson2001 in forum Web Development
    Replies: 5
    Last Post: 5th October 2007, 08:43 AM
  3. SQL Query :S
    By Kained in forum Web Development
    Replies: 10
    Last Post: 25th July 2007, 02:56 AM
  4. Training Query
    By derer1 in forum General Chat
    Replies: 14
    Last Post: 12th February 2007, 03:10 PM
  5. Web query in Excel
    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
  •