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: 101
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
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting
twhdir is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-24-2009, 09:05 AM Re: changing windows user password using windows application
Skilled Talker

Posts: 69
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.
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: 101
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.
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting
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.11749 seconds with 13 queries