Login Script indicating open files

Discussion in 'Windows Small Business Server' started by Chad A. Smith, Sep 7, 2004.

  1. When I log into my Windows 2000 domain, my login script stops with the
    following message:

    There are open files and/or incomplete directory searches pending on the
    connection to m:.
    Is it OK to continue disconnecting and force them closed?

    It only stops when trying to map the M: drive and it only does it on a few
    machines throughout the office. Is there a way to force the disconnection so
    the user is not prompted to do so?

    Here is the login script itself:
    if exist G: %SystemRoot%\system32\net use /delete g:
    %SystemRoot%\system32\net use G: \\blah blah
    if exist I: %SystemRoot%\system32\net use /delete I:
    %SystemRoot%\system32\net use I: \\blah blah

    if exist J: %SystemRoot%\system32\net use /delete J:
    %SystemRoot%\system32\net use J: \\blah blah

    if exist L: %SystemRoot%\system32\net use /delete L:
    %SystemRoot%\system32\net use L: \\blah blah

    if exist M: %SystemRoot%\system32\net use /delete M:
    %SystemRoot%\system32\net use M: \\blah blah

    if exist N: %SystemRoot%\system32\net use /delete N:
    %SystemRoot%\system32\net use N: \\blah blah

    if exist O: %SystemRoot%\system32\net use /delete o:
    %SystemRoot%\system32\net use O: \\blah blah

    if exist W: %SystemRoot%\system32\net use /delete w:
    %SystemRoot%\system32\net use W: \\blah blah

    TIA,
    Chad
     
    Chad A. Smith, Sep 7, 2004
    #1
    1. Advertising

  2. Chad

    Download and install handles.exe from www.sysinternals.com. Then run it on
    the server. It will tell you which files have handles open to them. Then
    you can compare them to whatever share you are trying to connect. Then you
    can see who has the files open.

    I hope this helps

    doug boyd


    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Douglas Boyd [MSFT], Sep 7, 2004
    #2
    1. Advertising

  3. Hi Chad

    If this is SBS DON'T map drive M: it is used by Exchange

    Frank McCallister
    COMPUMAC
    "Chad A. Smith" <> wrote in message
    news:...
    > When I log into my Windows 2000 domain, my login script stops with the
    > following message:
    >
    > There are open files and/or incomplete directory searches pending on
    > the
    > connection to m:.
    > Is it OK to continue disconnecting and force them closed?
    >
    > It only stops when trying to map the M: drive and it only does it on a few
    > machines throughout the office. Is there a way to force the disconnection
    > so
    > the user is not prompted to do so?
    >
    > Here is the login script itself:
    > if exist G: %SystemRoot%\system32\net use /delete g:
    > %SystemRoot%\system32\net use G: \\blah blah
    > if exist I: %SystemRoot%\system32\net use /delete I:
    > %SystemRoot%\system32\net use I: \\blah blah
    >
    > if exist J: %SystemRoot%\system32\net use /delete J:
    > %SystemRoot%\system32\net use J: \\blah blah
    >
    > if exist L: %SystemRoot%\system32\net use /delete L:
    > %SystemRoot%\system32\net use L: \\blah blah
    >
    > if exist M: %SystemRoot%\system32\net use /delete M:
    > %SystemRoot%\system32\net use M: \\blah blah
    >
    > if exist N: %SystemRoot%\system32\net use /delete N:
    > %SystemRoot%\system32\net use N: \\blah blah
    >
    > if exist O: %SystemRoot%\system32\net use /delete o:
    > %SystemRoot%\system32\net use O: \\blah blah
    >
    > if exist W: %SystemRoot%\system32\net use /delete w:
    > %SystemRoot%\system32\net use W: \\blah blah
    >
    > TIA,
    > Chad
    >
    >
    >
     
    Frank McCallister, Sep 7, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Barnblan

    an alert message indicating that a Cd or DVD is still inside the d

    Barnblan, Dec 26, 2007, in forum: Windows Vista General Discussion
    Replies:
    3
    Views:
    168
    Ronnie Vernon MVP
    Dec 26, 2007
  2. Cynthia Dalton

    Folder shows "no items" while indicating unread mail.

    Cynthia Dalton, Dec 22, 2008, in forum: Windows Vista Mail
    Replies:
    3
    Views:
    217
    Gary VanderMolen
    Dec 23, 2008
  3. David R. Cattley
    Replies:
    4
    Views:
    477
    Alexander Grigoriev
    Oct 8, 2003
  4. Michal Filka

    Ndis - indicating packets

    Michal Filka, Jul 25, 2005, in forum: Windows Vista Drivers
    Replies:
    1
    Views:
    155
    Thomas F. Divine [DDK MVP]
    Jul 25, 2005
  5. Replies:
    14
    Views:
    467
    Stephan Wolf [MVP]
    May 16, 2006
Loading...

Share This Page