473,480 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Password Reset for Workstation Login

Ian
Hi

I know there are products out there that can do this like
http://www.psynch.com/technology/ska.html

What is the code that is used to Reset a Users password so the next time
they logon to the domain they are promoted for a new password?

I know the code will have to run under the Admin. That is fine I just need
to know what the API is and how to use it.

My preferred language is Visual Basic but VB.Net or C# would do as well.

I basically want to pass in the username and the code should do what ever is
needed to reset the password.

I know I can impersonate the Admin user like this

http://msdn.microsoft.com/library/de...classtopic.asp

But the code after to actually Reset the password I don't know.

Many Thanks,

Ian
Nov 21 '05 #1
3 1238
Hi,

Take a look at the NetUserSetInfo api.

http://support.microsoft.com/default...b;en-us;187535

http://support.microsoft.com/default...b;en-us;151546
Ken
--------------------
"Ian" <ia*@NoWhere.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl...
Hi

I know there are products out there that can do this like
http://www.psynch.com/technology/ska.html

What is the code that is used to Reset a Users password so the next time
they logon to the domain they are promoted for a new password?

I know the code will have to run under the Admin. That is fine I just need
to know what the API is and how to use it.

My preferred language is Visual Basic but VB.Net or C# would do as well.

I basically want to pass in the username and the code should do what ever is
needed to reset the password.

I know I can impersonate the Admin user like this

http://msdn.microsoft.com/library/de...classtopic.asp

But the code after to actually Reset the password I don't know.

Many Thanks,

Ian

Nov 21 '05 #2
Ian
Thanks Ken
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

Take a look at the NetUserSetInfo api.

http://support.microsoft.com/default...b;en-us;187535

http://support.microsoft.com/default...b;en-us;151546
Ken
--------------------
"Ian" <ia*@NoWhere.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl...
Hi

I know there are products out there that can do this like
http://www.psynch.com/technology/ska.html

What is the code that is used to Reset a Users password so the next time
they logon to the domain they are promoted for a new password?

I know the code will have to run under the Admin. That is fine I just need
to know what the API is and how to use it.

My preferred language is Visual Basic but VB.Net or C# would do as well.

I basically want to pass in the username and the code should do what ever is needed to reset the password.

I know I can impersonate the Admin user like this

http://msdn.microsoft.com/library/de...classtopic.asp
But the code after to actually Reset the password I don't know.

Many Thanks,

Ian

Nov 21 '05 #3
You need to change the password and then force the password to be expired by
setting pwdLastSet to 0.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net
Ian wrote:
Hi

I know there are products out there that can do this like
http://www.psynch.com/technology/ska.html

What is the code that is used to Reset a Users password so the next time
they logon to the domain they are promoted for a new password?

I know the code will have to run under the Admin. That is fine I just need
to know what the API is and how to use it.

My preferred language is Visual Basic but VB.Net or C# would do as well.

I basically want to pass in the username and the code should do what ever is
needed to reset the password.

I know I can impersonate the Admin user like this

http://msdn.microsoft.com/library/de...classtopic.asp

But the code after to actually Reset the password I don't know.

Many Thanks,

Ian

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2344
by: Ian | last post by:
Hi I know there are products out there that can do this like http://www.psynch.com/technology/ska.html What is the code that is used to Reset a Users password so the next time they logon to...
4
7891
by: mbailey | last post by:
This has to be a simple question for most of you, so here goes. My passwords for sa and another login that I created keep resetting. How can I turn off password expiration in SQL Server 2000? ...
2
2273
by: Rod | last post by:
I have a requirement in which I need to allow the user to log into our ASP.NET application, but also be able to change their Windows password, if it is expired. I had thought that Windows...
2
1882
by: jwasden | last post by:
I have been assigned the task of developing a login.aspx page for a website that pulls the user information from the tblUsers table in the sql database. After the username is verified, it has to be...
15
9692
by: Eugene Anthony | last post by:
Is this method of validation for password and username considered to be secured. In my previous post I was given a solution that uses command object and the values are parsed by parameters. But the...
2
9250
by: Tom | last post by:
when a user requests a password reset, a email is sent to them with the new password and the URL for the login page. When the login for the first time how can I force them to go to my change...
2
4838
by: mankolele | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Simple Database Connection</title> </head> <body bgcolor="white"> <?php $connection =...
3
1689
by: john_c | last post by:
Using asp.net Membership, is there a way to detect a password reset so that next time the user logs in, you can send them to the password change page? Thanks.
4
2346
by: custommx3 | last post by:
I have designed a site that requires users to login. Me being new to php, I hired a guy to help me setup the database. He set it up and it works flawlessly. Well.. instead of helping me finish the...
30
6930
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7037
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6895
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4476
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2992
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.