Announcement

Collapse
No announcement yet.

Net drive mapping

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Net drive mapping

    I'm using following in the batch file, but mapping for user folder doesn't stay. once user logoff it disappares even though i have presistent at the end....any help?

    One more thing....second line for the dfs share so even user's logoff that stays no problem wit that.

    net use s: /delete
    net use s: \\tnsad.com\site\location
    net use u: /delete /persistent:Yes
    net use u: \\servername\users\%username% /persistent:Yes

  • #2
    Re: Net drive mapping

    I don't understand what your problem is.
    You are removing the U drive connection so it should be unmapped.
    Although I don't understand why you are using the /persistant switch why deleting the U drive.
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      Re: Net drive mapping

      If the user is logged off, how do you know the drive mapping is gone?

      As Marcel said, you don't need the /persistent switch when deleting the mapping.

      Also, if you create the mapping via your logon script, then every time the user logs on the mapping is made regardless of the state it's in when they log off, so what's the real problem here? Am I alone in thinking this post doesn't quite make sense. No offense intended.

      Comment

      Working...
      X