Results 1 to 3 of 3

Thread: Logoff Script for Dissconnecting Mapp Drives .

  1. #1
    Join Date
    Apr 2009
    Posts
    21

    Logoff Script for Dissconnecting Mapp Drives .

    we are using windows server 2003 .I use a login script in GPO

    User Configuration.....>Windows Settings......>Script.....>Login

    In bat file i write the script with the following sysntex

    NET USE Z: \\SERVER_NAME\Sahre Folder Name

    On the client side when the user login through domain controller he/she can see Mapp drive automatically in My computer.

    I want that when ever the user Logg off it automatically disconnect the mapp drive.Under script there is logoff as well ,should i make another bat file to disconnect map drive

    net use z: \\SERVER_NAME\Sahre /delete

    Please guide me that where should i write this script?Under Login or logoff ?

    thanks in advance for help.
    mypass

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Logoff Script for Dissconnecting Mapp Drives .

    Basically, you create a script file (a VBS file or a batch file) and store it in your netlogon share.

  3. #3
    Join Date
    Apr 2009
    Posts
    21

    Re: Logoff Script for Dissconnecting Mapp Drives .

    I have made three map drives

    NET USE x: \\SERVER_NAME\Sahre Folder Name /PERSISTENT:NO
    NET USE y: \\SERVER_NAME\Sahre Folder Name /PERSISTENT:NO
    NET USE z: \\SERVER_NAME\Sahre Folder Name /PERSISTENT:NO

    I remove following two lines from my bat file

    NET USE y: \\SERVER_NAME\Sahre Folder Name /PERSISTENT:NO
    NET USE z: \\SERVER_NAME\Sahre Folder Name /PERSISTENT:NO


    In my client computer I can still see both three map drives X, Y and Z . I even use gpupdate command as well restart my server, client computer also
    please guide me where iam doing mistake?

    please guide me that what should I write in Loggoff script in (Bat File) so when ever the user will loggoff it will disconnect the mapp drive and when it again login it will show the map drives again.

    About VBS it is a little bit programming and it is difficult for me to understand it.I prefer to use bat file.

    should be thankfull*

Similar Threads

  1. Linux script to force logoff users
    By WinSlayer in forum Operating Systems
    Replies: 3
    Last Post: 28-07-2009, 11:08 PM
  2. VBS script to map drives
    By Laler in forum Software Development
    Replies: 3
    Last Post: 14-04-2009, 01:48 PM
  3. Delete files with logoff/on script
    By Pine Le in forum Windows Security
    Replies: 1
    Last Post: 03-06-2008, 11:19 PM
  4. Script to logoff XP systems after inactivity
    By aja44 in forum Windows Server Help
    Replies: 3
    Last Post: 03-03-2008, 03:11 PM
  5. logoff vbs script
    By Coreman in forum Windows Server Help
    Replies: 1
    Last Post: 28-04-2007, 06:02 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,118,742.17990 seconds with 16 queries