JSI Tip 5057. Logon scripts issue 'The current directory is invalid' error?

When running your logon script, you receive:

The current directory is invalid.

The default current folder for a CMD prompt or logon script is the Home folder. If the mapping to the Home folder is deleted, this error will occur.

If your logon script contains net use * /d, you have deleted the mapping.

If you must use the net use * /d command in your script, make the first statement in your script:


Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.