Trying to create a password with spaces via command prompt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kapura
    New Member
    • Sep 2012
    • 3

    Trying to create a password with spaces via command prompt

    I found the syntax to change a user password through command prompt. I am using:
    net user username password

    I have sucessfully changed the password to a regular password. I can not figure out how to change it to a pass-sentence. How would I write the syntax for a password with spaces in it?
    For instance, please explain how I would write "My new password." in cmd...because this doesnt work:
    net user testuser2 My new password.

    I am sure that it is case sensative, no? If its case sensative for the password, why wont it recognise the sapces as part of the password?

    Thank you for your time.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Try enclosing the password in double quotes.
    Code:
    net user testuser2 "My new password"
    Also, yes, passwords are case-sensitive. But case sensitivity has nothing to do with spaces.

    Comment

    • kapura
      New Member
      • Sep 2012
      • 3

      #3
      Thank you so much...I'm still such a newbie, so it would have never crossed my mind to use quotations!!

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        The funny part is, this is a case of the computer imitating the way people "normally" do it. Notice how you wrote it with double quotes in the original question? :-)

        It's always the little simple things that trip people up.

        Comment

        • kapura
          New Member
          • Sep 2012
          • 3

          #5
          Yes, someone pointed that out to me on another site in a way that wasn't nearly as kind...
          Ive been testing out a few forums to find which has users on at all times willing to help, so I posted that question on like 4 sites. So- I've gotten four sites worth of people telling me what a twat I am that my answer was in my question!!! ;P
          Thanks for the help, and for not being a holes!!

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Yeah, it's the people and their attitude that make a world of difference, not only the information. Glad we could help, on both counts. :-)

            Comment

            Working...