+ Post New Thread
Results 1 to 11 of 11
Windows Thread, net use problem - probably stupid in Technical; I'm messing about with a virtual network I've created to learn my MCSE exams on. I want to automate network ...
  1. #1

    Join Date
    Dec 2008
    Posts
    66
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    net use problem - probably stupid

    I'm messing about with a virtual network I've created to learn my MCSE exams on.

    I want to automate network drive mapping on the domain workstations. I can do this from the workstation using the dialogue in My Computer but can't seem to get the net use command to do the same thing - I need to get that command line right so I can write the script.

    My domain is headquarters.nozzacorp and the server share is Share Folders on Server1

    why won't net use z: \\server1\share folders work?

  2. #2
    rh91uk's Avatar
    Join Date
    Sep 2008
    Location
    UK
    Posts
    877
    Thank Post
    137
    Thanked 132 Times in 114 Posts
    Rep Power
    36
    Whats is the error you are getting, then we could help!

    Check Z is not used anywhere else tho!

  3. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    I think i know why.

    If the path has a space in it you will need to put " in.

    for example

    net use z: \\server\shared foldder - wont work
    net use z: "\\server\shared folder" - will work

    net use z: \\server\sharedfoldder - will work
    net use z: "\\server\sharedfoldder" - will work

  4. #4

    Join Date
    Dec 2008
    Posts
    66
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Sorry!

    "unknown user name or bad password"

    I'm logged on the workstation (well to the domain) as a domain admin account I created.

  5. #5
    rh91uk's Avatar
    Join Date
    Sep 2008
    Location
    UK
    Posts
    877
    Thank Post
    137
    Thanked 132 Times in 114 Posts
    Rep Power
    36
    Yeah - FN GM's suggestion is the correct one. Just tried it myself!

    Did think that in the beginning lol but wanted to see the error msg just in case lol!

  6. #6

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,077
    Thank Post
    160
    Thanked 938 Times in 732 Posts
    Blog Entries
    3
    Rep Power
    275
    If it is bad username and password, try clicking "Conntec using a different username and password" and then type in administrator credentials and then see if that connects. [Scrap that forgot it was a script]

    If FN's Suggestion dont work
    Last edited by EduTech; 3rd May 2009 at 09:24 PM.

  7. #7

    Join Date
    Dec 2008
    Posts
    66
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Heh yeah it was the quotes thing. I don't remember reading that in the book. It didn't appear to work initially but I also had to drop the \ off the end of the share name.

    Thanks

  8. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Woo hoo i was right
    please can i have a thanks

  9. #9

    john's Avatar
    Join Date
    Sep 2005
    Location
    London
    Posts
    10,432
    Thank Post
    1,534
    Thanked 1,066 Times in 931 Posts
    Rep Power
    305
    Also don't use Z drive for mapping drives as thats the temp letter windows uses to map when logging on. Found that out to my cost a long while ago it doesn't like Z drives (this was back when 2003 and XP were new out so may be fixed by now) but when you logon windows maps a Z drive to the sysvol folder for pulling and running scripts, files etc and then disconnects it before you actually get to windows to see it.

  10. #10

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,323
    Thank Post
    903
    Thanked 1,802 Times in 1,551 Posts
    Blog Entries
    12
    Rep Power
    467
    Quote Originally Posted by john View Post
    Also don't use Z drive for mapping drives as thats the temp letter windows uses to map when logging on. Found that out to my cost a long while ago it doesn't like Z drives (this was back when 2003 and XP were new out so may be fixed by now) but when you logon windows maps a Z drive to the sysvol folder for pulling and running scripts, files etc and then disconnects it before you actually get to windows to see it.
    We use Z drive without any problems, might have slightly changed.

  11. #11

    m25man's Avatar
    Join Date
    Oct 2005
    Location
    Romford, Essex
    Posts
    1,663
    Thank Post
    49
    Thanked 473 Times in 342 Posts
    Rep Power
    142
    Quote Originally Posted by Nozza View Post
    why won't net use z: \\server1\share folders work?
    Nozza,

    You correctly diagnosed that the "\\server1\share folders" was your mistake, but you may also want to add to your diagnostics the use of the IP address instead of the netbios name.
    Eg \\server1\sharename = \\192.168.xx.xx\sharename

    Keberos authentication and the SPN attributes of AD can run into difficulties when trying to connect to available shares on your AD hosts from non AD aware hosts or vice versa.

    You may find that a connect can be made using IP but not when using Netbios share names!

    I recently uncovered this when trying to access an AD resource from a workgroup machine, the share was visible when browsing the lan but access was denied when trying to connect.
    A packet capture revealed that there was an SPN mismatch.

    ADUC had the target server object still registered as "Server1" because the machine account had not been deleted when the machine was changed back to a workgroup name of "server1"

    Only after finding the orphaned object in AD and deleting the defective machine account/SPN did the share resume correctly!



SHARE:
+ Post New Thread

Similar Threads

  1. [SIMS] Sims.net... before I go and look stupid on the Capita forum
    By indiegirl in forum MIS Systems
    Replies: 17
    Last Post: 21st May 2013, 10:31 AM
  2. Major SIMS.net Problem (HELP!)
    By dannyjay in forum MIS Systems
    Replies: 15
    Last Post: 5th March 2009, 02:51 PM
  3. AAAGGGGHHH - what a stupid problem
    By mattx in forum Hardware
    Replies: 3
    Last Post: 31st October 2008, 03:47 PM
  4. Really stupid server 2003 problem
    By dezt in forum Windows Server 2000/2003
    Replies: 12
    Last Post: 6th August 2008, 10:24 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •