473,322 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Trying to create a password with spaces via command prompt

kapura
3
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.
Sep 18 '12 #1

✓ answered by Rabbit

Try enclosing the password in double quotes.
Expand|Select|Wrap|Line Numbers
  1. net user testuser2 "My new password"
Also, yes, passwords are case-sensitive. But case sensitivity has nothing to do with spaces.

5 2536
Rabbit
12,516 Expert Mod 8TB
Try enclosing the password in double quotes.
Expand|Select|Wrap|Line Numbers
  1. net user testuser2 "My new password"
Also, yes, passwords are case-sensitive. But case sensitivity has nothing to do with spaces.
Sep 18 '12 #2
kapura
3
Thank you so much...I'm still such a newbie, so it would have never crossed my mind to use quotations!!
Sep 20 '12 #3
Killer42
8,435 Expert 8TB
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.
Sep 20 '12 #4
kapura
3
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!!
Sep 24 '12 #5
Killer42
8,435 Expert 8TB
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. :-)
Sep 25 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: msuk | last post by:
All, I am trying to use Regasm from the command prompt and have to keep putting the full file path of where my assembley is located. Does anyone know how to set it up so wherever I run the...
1
by: C. Adam Barney | last post by:
I would like to create my own command prompt application using .NET. I'm looking to start off with a basic framework, essentially passing commands through to cmd and displaying the results. ...
4
by: Thomas Johnson | last post by:
I am trying to find out how to access the VS 2003 .Net command prompt. I am trying to execute the 'csc' command against a module but have no idea where to find the command prompt. Here's a stupid...
11
by: Dyl | last post by:
Hi all, I am having a problem with a command prompt process. It runs the cmd prompt sucessfully, and changes the directory succesfully, but I can't get the StartInfo.Arguments to work properly....
5
by: repairman2003 | last post by:
I'm writing a command prompt for unix and I've run into some problems: #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include...
6
by: Shooter4Life8 | last post by:
Hi, I am having trouble figureing out the best way to open a command prompt then write lines to it in VB.NET. Currently I have this code, but it execute's too fast I think because Dim psi As...
3
by: Can | last post by:
I was trying to do this http://support.microsoft.com/?kbid=316163 but I can't seem to change the current folder I tried cd <folder nameand it didn't work. Thanks,
1
by: TPhung | last post by:
Hi, I have a simple question about running python on windows xp command prompt. The file is as follows and is named spam.py: print 2**8 print 'the bright side' + 'of life' print "hello...
4
by: Ronald S. Cook | last post by:
Currently (manually), I 1) open a Windows SDK Command Prompt and 2) navigate to a particular folder. Then I 3) type a command and press enter. The command is irrelevant (WCF-related) but here it...
1
by: manoj | last post by:
he exact question is i have to open first cmd and run this command openvpn --management-query-passwords --cd "C:\Program Files\OpenVPN \config" --management-hold --management 127.0.0.1 7536...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.