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

x
?
Solved

Want to script using setpassword.exe command

Posted on 2007-03-18
4
Medium Priority
?
561 Views
Last Modified: 2008-02-01
I want to create a script using the setpassword.exe command but I cant seem to find the .exe file on my 2003 server SP1.  have installed the res kit tools and still cant locate it. Any suggestions where this is located?
thanks
0
Comment
Question by:Jamesm007
[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
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Erik Pitti
ID: 18746552
if you're trying to write a script that will set user account passwords for a server or domain you can use the net user command to do so.

Local accounts:
net user <username> <password>

Domain Accounts:
net use <username> <password> /domain

As far as I recall the setpassword.exe is not part of any Microsoft toolset. I did however find it as a C# programming example here: http://www.c-sharpcorner.com/UploadFile/ecabral/ADand.NET08242005065451AM/ADand.NET.aspx
0
 
LVL 1

Author Comment

by:Jamesm007
ID: 18804780
net use <username> <password> /domain
I dont know how this will work as isnt net use a resourse command. I have tried what you have suggested with net use but this does not work :(
0
 
LVL 14

Accepted Solution

by:
Erik Pitti earned 500 total points
ID: 18806077
I'm not sure what you mean by resource command.  

Also there is a typo in the "domain accounts" syntax.  It should be as follows:
net user <username> <password> /domain

If the accounts you are trying to set the password for are in an Active Directory domain use the "domain accounts" syntax.  
If the accounts exist only on the one server, use the "local accounts" syntax.

0
 
LVL 1

Author Comment

by:Jamesm007
ID: 18980573
This should do the trick, now I need to figure out how t put it into a VB mini program so i can be done with a seies of pompts by a user.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

730 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