1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Login script

Discussion in 'Windows Home Server' started by qq, Aug 11, 2009.

  1. qq

    qq Guest

    Hi All,

    I have a lot of users and client computers. I did manually Map Network drive
    for connect user's Home directory on file server based on AD before. Now I
    want to move the files to another new file server. I tried to write a login
    script in Group Policy by using the following command to disconnect the
    mapping drive.
    NET USE H: /DELETE >nul
    But when the user login, the original mapping dirve still connect. Is the
    computer run login script first, then run mapping connect in Windows
    Explorer? Is it why the orginal mapping still connect?
    Is anybody help me out the problem? Thanks a lot.

    --QQ
     
  2. "qq" <qq@discussions.microsoft.com> wrote in message
    news:5FB5DDD6-4051-46B7-A3F4-6D664966F137@microsoft.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hi All,
    >
    > I have a lot of users and client computers. I did manually Map Network
    > drive
    > for connect user's Home directory on file server based on AD before. Now I
    > want to move the files to another new file server. I tried to write a
    > login
    > script in Group Policy by using the following command to disconnect the
    > mapping drive.
    > NET USE H: /DELETE >nul
    > But when the user login, the original mapping dirve still connect. Is the
    > computer run login script first, then run mapping connect in Windows
    > Explorer? Is it why the orginal mapping still connect?
    > Is anybody help me out the problem? Thanks a lot.
    >
    > --QQ<!--colorc--><!--/colorc-->

    If the connection is "persistent", then you need to specify that the
    persistence is also removed. I think the syntax would be:

    net use H: /delete /persistent:yes

    This removes the mapping from the registry. Check syntax help for net use.

    --
    Richard Mueller
    MVP Directory Services
    Hilltop Lab -
    --
     
  3. How was it mapped to start with?

    For example if it was mapped using a batch file from the Startup Folder of
    the Start Menu then it runs after the login script and hence will "re-map
    the drive" again.

    You can also remove the null" and put a "pause" in it to test so that you
    can actually see what it is doing.

    NET USE H: /DELETE
    PAUSE

    --
    Phillip Windell

    The views expressed, are my own and not those of my employer, or Microsoft,
    or anyone else associated with me, including my cats.
    -----------------------------------------------------


    "qq" <qq@discussions.microsoft.com> wrote in message
    news:5FB5DDD6-4051-46B7-A3F4-6D664966F137@microsoft.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hi All,
    >
    > I have a lot of users and client computers. I did manually Map Network
    > drive
    > for connect user's Home directory on file server based on AD before. Now I
    > want to move the files to another new file server. I tried to write a
    > login
    > script in Group Policy by using the following command to disconnect the
    > mapping drive.
    > NET USE H: /DELETE >nul
    > But when the user login, the original mapping dirve still connect. Is the
    > computer run login script first, then run mapping connect in Windows
    > Explorer? Is it why the orginal mapping still connect?
    > Is anybody help me out the problem? Thanks a lot.
    >
    > --QQ <!--colorc--><!--/colorc-->
     

Share This Page