L
LamSoft
I want to write a ASPX C# to change the password of a user account on
standalone computer,
I have the ASP code on my friend, but I don't know how to convert them to
ASP.NET C#.
Is there any reference on the web? Thank you.
ASP Code Reference:
Set UsrObj = GetObject("WinNT://" & ServerName & "/" & UserName ,user)
UsrObj.SetPassword NewPwd
UsrObj.SetInfo
If Err.Number = 0 Then
OutMsg("The password of " & UserName & " was successfully changed.")
Else
OutMsg("Unexpected Error: " & Err.Number & ", Please contact the
webmaster.")
End If
standalone computer,
I have the ASP code on my friend, but I don't know how to convert them to
ASP.NET C#.
Is there any reference on the web? Thank you.
ASP Code Reference:
Set UsrObj = GetObject("WinNT://" & ServerName & "/" & UserName ,user)
UsrObj.SetPassword NewPwd
UsrObj.SetInfo
If Err.Number = 0 Then
OutMsg("The password of " & UserName & " was successfully changed.")
Else
OutMsg("Unexpected Error: " & Err.Number & ", Please contact the
webmaster.")
End If