Using Net Use Command Line Option to Connect to Macintosh Share
Results 1 to 4 of 4

Thread: Using Net Use Command Line Option to Connect to Macintosh Share

  1. #1
    Registered User TNR's Avatar
    Join Date
    Sep 2003
    Posts
    18

    Question Using Net Use Command Line Option to Connect to Macintosh Share

    I know I am probably going out on a limb with this question, but I am going to give it a shot.

    I have to use a batch file on a Windows PC to map a drive to a Macintosh network share (Mac OS X Server). I can map to the share fine by using the Map Network Drive option from My Network Places, but when I try to do it from the command line it bombs on me.

    This is what the Net Use Command looks like when I am trying to connect.

    Net Use Z: \\Server Name\Share /User:workgroup\user name

    This works fine when trying to connect to a Windows base share, because it will ask you for a password, but I believe the Mac share has to have the Username and Password in one shot or it will not take it at all. Is there a way to add the password to the command line string?I have little to no Mac experience so any help would be great.

    Thanks

  2. #2
    Registered User craigmodius's Avatar
    Join Date
    Sep 2001
    Location
    Hellmira, NY, USA
    Posts
    1,572
    not really up to speed on my mac sharing, but a google search turned up this...


    The computername used in the command line should have the syntax ZONE@SERVER NAME. For example if you have a zone named Sales and an AppleShare server named George with a share named Documents the command to login would be:
    NET USE E: \\SALES@GEORGE\DOCUMENTS

    This would result in the Connect to Server dialog to appear to login to the server.

    If you want to login with a user name try:
    NET USE E: \\SALES@GEORGE\DOCUMENTS /USER:GUEST

    Case is not important except for passwords.

    The syntax of the NET USE command is:

    NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
    [/USER:[domainname\]username]
    [/USER:[dotted domain name\]username]
    [/USER:[username@dotted domain name]
    [[/DELETE] | [/PERSISTENT:{YES | NO}]]

    NET USE {devicename | *} [password | *] /HOME

    NET USE [/PERSISTENT:{YES | NO}]


    NET USE connects a computer to a shared resource or disconnects a
    computer from a shared resource. When used without options, it lists
    the computer's connections.

    devicename Assigns a name to connect to the resource or specifies the device to be disconnected. There are two kinds of devicenames: disk drives (D: through Z:) and printers (LPT1: through LPT3:). Type an asterisk instead of a specific devicename to assign the next available devicename.
    \\computername Is the name of the computer controlling the shared
    resource. If the computername contains blank characters,
    enclose the double backslash (\\) and the computername
    in quotation marks (" "). The computername may be from
    1 to 15 characters long.
    \sharename Is the network name of the shared resource.
    \volume Specifies a NetWare volume on the server. You must have
    Client Services for Netware (Windows Workstations)
    or Gateway Service for Netware (Windows Server)
    installed and running to connect to NetWare servers.
    password Is the password needed to access the shared resource.
    * Produces a prompt for the password. The password is
    not displayed when you type it at the password prompt.
    /USER Specifies a different username with which the connection
    is made.
    domainname Specifies another domain. If domain is omitted,
    the current logged on domain is used.
    username Specifies the username with which to logon.
    /HOME Connects a user to their home directory.
    /DELETE Cancels a network connection and removes the connection
    from the list of persistent connections.
    /PERSISTENT Controls the use of persistent network connections.
    The default is the setting used last.
    YES Saves connections as they are made, and restores
    them at next logon.
    NO Does not save the connection being made or subsequent
    connections; existing connections will be restored at
    next logon. Use the /DELETE switch to remove
    persistent connections.

    NET HELP command | MORE displays Help one screen at a time.
    "And just when I thought today couldn't get anymore poo-like." -Outcoded

  3. #3
    Registered User TNR's Avatar
    Join Date
    Sep 2003
    Posts
    18
    Update:

    I used KixStart to Map to the Mac share.

    Thanks

  4. #4
    Registered User +Daemon+'s Avatar
    Join Date
    Jan 2002
    Location
    RC, Ca
    Posts
    3,406
    Quote Originally Posted by TNR
    Update:

    I used KixStart to Map to the Mac share.

    Thanks
    what mac os?

    if mac os x, its very simple just like mapping to a windows share

    or if your using DAVE! its simple to

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
  •