Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing user's passwords by using Windows Environment Variables

Posted on 2010-09-22
5
Medium Priority
?
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 79

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 79

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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression

688 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