Solved

Want to script using setpassword.exe command

Posted on 2007-03-18
4
559 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 125 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
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 …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 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