Solved

Want to script using setpassword.exe command

Posted on 2007-03-18
4
541 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
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 video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now