Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Changing user's passwords by using Windows Environment Variables

Posted on 2010-09-22
5
Medium Priority
?
349 Views
Last Modified: 2012-05-10
I have a lot of HP Thin clients with windows embedded and I need to change their passwords to match the %ComputerName% however the password needs to be in lowercase.  At this point my script consists of:
net user %COMPUTERNAME% %COMPUTERNAME%
This works to set the password correctly except it's in all uppercase.  Is there a way to do this through the command line or do I need to write a vbs script?  Thanks.
0
Comment
Question by:PhillipsPlastics
  • 3
  • 2
5 Comments
 
LVL 80

Accepted Solution

by:
arnold earned 1000 total points
ID: 33733895
0
 

Author Comment

by:PhillipsPlastics
ID: 33734021
Yes it probably would be easier... not sure where to start with the vbscript ideas?
0
 
LVL 80

Expert Comment

by:arnold
ID: 33734177
What do you currently use to set the password?
Do you have a script that connects to each thinclient and issues the net user command?

You are setting local user/password to match the computer name.
The links posted include an example for a batch script that would go character by character and convert it to lower case.

0
 

Author Comment

by:PhillipsPlastics
ID: 33734392
Currently we have the passwords set one way and now we are changing the standard so they all need to be chnaged.  I am trying to craft a script to connect to each thin client and set it using the net user command.
I tried using http://fixunix.com/ms-dos/271008-batch-code-convert-lowercase-file-uppercase-vice-versa.html but can't figure out how to change it to make everything lower from upper.
0
 

Author Comment

by:PhillipsPlastics
ID: 33734610
ok got it solved... used the other page with the lower case function thanks for the help.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Starting up a Project

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question