views:

81

answers:

1

In other words, how to change my password without going through the "CTRL-ALT-DEL -> Change Password" interface.

By programmatically I mean via a command-line tool, C# via a .NET library, COM-invocation via Python, ... whatever doesn't involve any manual steps, really.

The "NET USER" command is ineligible, as it requires me to run with domain administrator privileges.

+2  A: 

http://linuxonly.nl/docs/21/43_Circumvent_password_expiry_in_Windows.html

Sjoerd
Exactly my use case too. :) Thanks!
Deestan
The code in that article looks like it might answer the question, but I disagree with the actual article since it doesn't mention that it would only work on a badly managed system where *Minimum Password Age* hasn't been set.
ho1
@ho1 Thanks. I changed the article to include a note on the minimum password age.
Sjoerd
@Sjoerd: Ah, didn't realise it was your article.
ho1
The "Minimum Password Age" setting is utterly horribly STUPID, since it means you will be unable to change your password if it is compromised. -- Example: You changed your password this morning, then accidentally type your password in the user field while holding a presentation in front of 50 people.
Deestan