1. Join Now

    AVForums.com uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My HTPC boots to fast!!

Discussion in 'Desktop & Laptop Computers Forum' started by JohnS, Jan 11, 2004.

  1. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    My XP based HTPC is set up to autologin using the tweak UI powertoy from Microsoft. This means that the sole user account can be accessed remotly using RDP which requires a password.

    The problem I have can be simulated on many machines by logging in to it too quickly at the welcome screen before XP has loaded all of its drivers, specifically the network driver. This means that network shares aren't automatically remade because the network driver hasn't loaded yet.

    Is there any way of optimising the XP loading so that the network card is placed higher in the priority or producing a script to delay the password for say 5 seconds which would acheive the same thing??

    Cheers
     
  2. Jeff

    Jeff
    Well-known Member

    Joined:
    Jul 13, 2000
    Messages:
    5,489
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    106
    Location:
    Basingstoke
    Ratings:
    +256
    Run gpedit.msc

    In the left pane, click to expand the following items:
    Computer Configuration
    Administrative Templates
    System
    Logon


    Double-click the Always wait for the network at computer startup and logon setting.
    Click Enable, and then click OK.
     
  3. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    Top man Jeff:smashin:

    I knew it could be done but had no idea how.
     
  4. TEK

    TEK
    Guest

    Products Owned:
    0
    Products Wanted:
    0
    Ratings:
    +0
    Thanks guys. I didn't know you could log in automatically as I'm having related probs with a wireless nic not kicking in until you've logged in negating the use of radmin. I shall give both a shot :D
     
  5. Gerbil

    Gerbil
    Member

    Joined:
    May 20, 2002
    Messages:
    265
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    18
    Location:
    Newbury
    Ratings:
    +23
    BTW. You can get rid of the requirement to have a password with RDP

    Control Panel->Perfomance & Maintenance->Administrative Tools->Local Security Policy

    Browse to Local Security\Security Options and change the setting for "Limit Account Use of Blank Passwords to Console Logon Only"
     
  6. TEK

    TEK
    Guest

    Products Owned:
    0
    Products Wanted:
    0
    Ratings:
    +0
    I think Gerbil has just made it to my Xmas card list this year :D
     
  7. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    Hi Jeff,

    Tried the setting you said but it still doesn't wait. It looks like its a wait for a domain logon and not just wait for the network. Any other ideas?

    Cheers
     
  8. Gerbil

    Gerbil
    Member

    Joined:
    May 20, 2002
    Messages:
    265
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    18
    Location:
    Newbury
    Ratings:
    +23
    Bit of a long shot, but if we're talking about mapping drives then why not call a batch file to do the job from the users startup folder? You can insert any necessary delay at the start of the batch file to allow the network time to start before mapping the drives from the command line. It's a bit low tech, but if it works why not?


    Unfortunately the easiest way of putting a delay in a batch file is with the sleep command which is part of the W2K resource kit. Luckily soon does much the same thing and is freely downloadable from MS here

    SOON.EXE

    e.g.

    create a file delay.cmd containing

    soon 30 "c:\mapdrives.cmd"

    and create a shortcut to it from the users startup folder

    Then create mapdrives.cmd containing

    net use x: \\servername\sharename /persistent:no

    You'll need to get rid of all your existing persistent map drives to allow the batch file to create them instead.
     
  9. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    Hi Gerbil,

    Thanks for the reply, that looks like it should work (like I would know diiferent :) ).

    Just a question or two:-

    You said "create a file delay.cmd"

    Sorry, but how and on what, I've never done this kind of thing before so in idiot speak please.

    and "mapdrives.cmd"

    Is it just a couple of lines in notepad or something like??

    Thanks for your help.
     
  10. TEK

    TEK
    Guest

    Products Owned:
    0
    Products Wanted:
    0
    Ratings:
    +0
    yep, plain text saved with a .cmd or .bat extention. You can stick it in your start up folder or put an entry for it in the registry under:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
     
  11. Gerbil

    Gerbil
    Member

    Joined:
    May 20, 2002
    Messages:
    265
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    18
    Location:
    Newbury
    Ratings:
    +23
    Yep just as TEK says, create the file using Notepad. Just make sure you don't end up giving them a double extension. It's easy to end up with files called

    delay.cmd.txt

    if you're not careful.

    I'd actually create the mapdrives.cmd first and test it just by opening up a command prompt. e.g. at the command prompt type

    c:\mapdrives.cmd

    This should make it easy to see any error messages produced. Once you're happy that the drive mapping is working then create the delay.cmd file and test it in the same way.

    The way soon.exe works is by creating a scheduled task to execute x number of seconds in the future. This requires the "Task Scheduler" service to be running. It would be worth checking that the Task Scheduler is started. Just go to

    Control Panel->Administrative Tools->Services

    and look for it in the list. If it's not running then right click and select properties, hit the Start button to start it running and change the startup type to "Automatic" so that it starts whenever you turn on the PC.
     
  12. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    Thanks chaps, getting there....

    Can you just clarify

    net use x: \\servername\sharename /persistent:no

    is the /persistent:no

    should it be /peristent: (my mapped drive letter choice)

    or /(my mapped drive letter choice)

    or something else :)

    Thanks again for your help.
     
  13. Gerbil

    Gerbil
    Member

    Joined:
    May 20, 2002
    Messages:
    265
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    18
    Location:
    Newbury
    Ratings:
    +23
    Almost

    The x is the drive letter you want to map.

    The /persistent:no just tells Windows not to keep the drive mapping persistent across reboots and is the equivalent of having the "reconnect at logon" box unchecked if you use the "map network drive" dialog box in explorer.

    So for example

    net use j: \\myserver\movies /persistent:no

    maps drive j to the movies share on myserver.

    Hope that makes sense.
     
  14. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    Getting there,

    Right, got the mapped drive bit working from the run command.

    Created the delay file and put it in the startup file. Reboot and it doesn't seem to wait before running the mapped.cmd.

    taskmgr is running in services, I have installed the soon.exe but if I do a search of files and folders (including hidden) it doesn't show up. I then ran the soon_setup installer again but with the same result.

    Any ideas??
     
  15. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    OK, got it installed now:suicide: must have been being a pleb. Still can't make it work though, it doesn't seem to wait.

    I installed it to the default directory of C:\program files\resource kit\soon . Does this make a differeence to my
    soon 30 "C:\mapdrives.cmd" ???
     
  16. Gerbil

    Gerbil
    Member

    Joined:
    May 20, 2002
    Messages:
    265
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    18
    Location:
    Newbury
    Ratings:
    +23
    We can try troubleshooting the soon command, but I've just noticed that it appears somewhat quirky anyway. If I schedule delays of less than 60 seconds it seems to occasionally schedule tasks to start the following day!

    To simplify things there's a freeware wait command available from Simtel here

    Just download it and stick the wait.exe file in the same directory as your mapdrive.cmd file. You should just need one batch file now just add

    wait 30

    as the first line in the mapdrive.cmd file.

    Hopefully this should make life a lot simpler and doesn't rely on the Task Scheduler service.
     
  17. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    Top man Gerbil, that works a treat!!!:smashin:
     
  18. JohnS

    JohnS
    Active Member

    Joined:
    Oct 31, 2000
    Messages:
    2,580
    Products Owned:
    0
    Products Wanted:
    0
    Trophy Points:
    71
    Location:
    Herne Bay, Kent
    Ratings:
    +33
    and if anyone else has been following this

    wait 10

    works fine in my setup shortening the time before the drives get mapped.
     

Share This Page

Loading...