Home

News

Forums

Hardware

CPUs

Motherboards

Video

Guides

CPU Prices

RAM Prices


Sharky Extreme : Forums:


+ Reply to Thread
Results 1 to 5 of 5

Thread: Logon Script

  1. #1
    Hammerhead Shark iantaylor's Avatar
    Join Date
    Feb 2001
    Location
    UK
    Posts
    1,367

    Logon Script

    Hi,

    I am trying to create a Logon Script for a win2k machine and to map a drive when it logs on, with the Logon Script is:


    Echo off
    Echo
    net use U: \\Win2k3-svr-bd1\Users\Ian Taylor


    Where am i going wrong?
    Last edited by iantaylor; 06-19-2003 at 02:27 PM.

  2. #2
    Crash Test Dummy SkyDog's Avatar
    Join Date
    Oct 2000
    Location
    Upstate New York
    Posts
    12,185
    If you want to use the NET USE command to map drives, you need to either get rid of spaces in your UNC path or enclose the UNC path in quotation marks:

    NET USE U: "\\Win2k3-svr-bd1\Users\Ian Taylor"

    But if you're using a Windows NT/2000/XP workstation to log on to a domain, you shouldn't need to use a logon script to map a home directory. You can define a home directory in Active Directory Users and Computers (ADUC). Double-click a user in ADUC and go to the Profile tab. Under the "Home Folder" section, you can define a drive mapping.
    Last edited by SkyDog; 06-19-2003 at 02:38 PM.

  3. #3
    Hammerhead Shark iantaylor's Avatar
    Join Date
    Feb 2001
    Location
    UK
    Posts
    1,367
    There is no domain setup, theres really no point when u have 2 machines. I've done the home directory but when i try that it works for a couple of times then the map drives then fall over and die.
    Last edited by iantaylor; 06-19-2003 at 03:42 PM.

  4. #4
    Crash Test Dummy SkyDog's Avatar
    Join Date
    Oct 2000
    Location
    Upstate New York
    Posts
    12,185
    Another thing you could do is just use the /persistent:yes switch when you map the drive, so the system will keep the drive mapping, even if you restart the computer.

    Just go to a command prompt and type:
    NET USE U: "\\Win2k3-svr-bd1\Users\Ian Taylor" /persistent:yes

  5. #5
    Hammerhead Shark iantaylor's Avatar
    Join Date
    Feb 2001
    Location
    UK
    Posts
    1,367
    sorted it now.

    cheers

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