Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
changing windows user password using windows application
Old 06-24-2009, 08:27 AM changing windows user password using windows application
Super Talker

Posts: 100
Trades: 0
I am trying to change the windows user password using windows application and windows service. I am using the below code. This works fine in my Windows XP machine under which I develop my application. But, my target platform is windows 2003 web edition and the same statements are not changing the user password. I have also checked c:\\windows\\system32\\net at windows 2003 and it is working fine when we work with it manually using command prompt. Can any body help?

Process p = System.Diagnostics.Process.Start("c:\\windows\\sys tem32\\net","user username newpassword".
//This will update the user username with the password newpassword
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
|
Please login or register to view this content. Registration is FREE
twhdir is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-24-2009, 09:05 AM Re: changing windows user password using windows application
Extreme Talker

Posts: 246
Trades: 0
are all the flags set correctly, like for making sure the account doesn't expire or that the password doesn't expire. Also you could try (it's kind of a hack really) to put it in a batch file and then call the batch file in code.

If anything it could tell you if the batch file works and if so there must be an issue with the code for some reason.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 06-26-2009, 07:43 AM Re: changing windows user password using windows application
Super Talker

Posts: 100
Trades: 0
No, there is no case with the coding. Since, I have a windows service to this and the same application is working on windows xp and not working in windows 2003 web edition. That is why I am more concerned with this error and I think it is weird.
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
|
Please login or register to view this content. Registration is FREE
twhdir is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to changing windows user password using windows application
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.79813 seconds with 12 queries