extras

I use Windows 7 Home Premium as the OS in the various virtual machines I run. This is a space saving thing more than anything: I've limited the boot drive space to 20GB on my base VM so that I can have as many cloned VMs as I want on my external drive, and I'm assuming that Ultimate takes up a lot more room. Anyway...

The base install of Win7 Home Premium sets passwords to expire after 42 days. For a VM this is somewhat overkill (after all, I have to log in to my real machine in order to run the VM), so, today when I tried to log in and the OS came up with "your password has expired, change it" I decided to fix it instead.

Unfortunately the standard way of fixing this (running lusrmgr.msc -- just enter that in the Start search box) doesn't work in the Home Premium version because the snap-in it runs isn't present. Bah. Instead you have open up a Command Prompt as administrator (type "Command Prompt" in the Start search box and instead of just pressing Enter as normal, you right-click the menu item for it and select "Run as administrator") and type the following command at the prompt:

net accounts /maxpwage:unlimited

and press Enter. That should do it. (If you get access error 5, you didn't run Command Prompt as administrator.)

Posted via email from Julian's posterous


Posts on similar topics...

12 Responses

  • Fri 29 Jan 2010
  • 12:43 PM
  •  avatar #1

Bob E said...

Thank you! Thank you!

I used to love Windows, but now I feel like an idiot. They’ve hidden everything, it’s absolutely ridiculous. I never had a virus I couldn’t fix, but I’ve found tons of new Microsoft “improvements” that logic does just not follow. I can’t wait for Google to make an open source operating systems!!!

  • Fri 29 Jan 2010
  • 7:07 PM
  • julian m bucknall avatar #2

julian m bucknall said...

Bob: Glad I could help! The "net" command is a handy command line program -- it has other uses for different parameters, type "net /help" to find others.

Cheers, Julian

  • Mon 09 Aug 2010
  • 8:16 PM
  •  avatar #3

Gustavo said...

Tank Julian, this tip works like a charm

  • Mon 20 Sep 2010
  • 11:27 AM
  •  avatar #4

Geert-Jan said...

Good tip!! thanks! Why this is hidden / disabled in Win7 is beyond me, I understand that the average home user needs some protection from messing with 'advanced' settings but this should at least be available 'somewhere' :(

  • Fri 12 Aug 2011
  • 11:49 AM
  •  avatar #5

Kevin said...

Great tip thanks. It's been driving my wife mad having to change her password all the time, this has solved it.

Why doesn't the Bill Gates mob tell us things like this?

  • Fri 11 May 2012
  • 2:28 PM
  •  avatar #6

dunc said...

how do you run command prompt as an administrator - half finished answer

  • Fri 11 May 2012
  • 6:03 PM
  • julian m bucknall avatar #7

julian m bucknall said...

@dunc: Are you kidding me? Did you _read_ the post? Let's see, right after I say "you have [to] open up a Command Prompt as administrator", I wrote something in parentheses:

> (type "Command Prompt" in the Start search box and instead of just pressing Enter as normal, you right-click the menu item for it and select "Run as administrator")

That's pretty much it.

Cheers, Julian

  • Thu 17 Jan 2013
  • 9:53 AM
  •  avatar #8

Andrew said...

Saved me, thank you.

  • Mon 11 Mar 2013
  • 4:07 PM
  •  avatar #9

hdune said...

THANK YOU! I was in China and about to do a presentation when I got the warning about my password expiring, but was too jetlagged and thought I had 24 hours. And I DID! 24 hours EST time, so I woke up and couldn't log into my computer. Didn't have the bloody disc with me! And had another week on the road. Thank God I had saved everything on Cloud and could get through the firewall to download it to someone else's computer! But I NEVER want to go through that again. You have SAVED me hours of future frustration.

  • Wed 16 Oct 2013
  • 1:07 PM
  •  avatar #10

Allen Hatfield said...

Thanks, man. This was about the tenth page with similar instructions and YOURS was the first that said to CMD as Admin. Finally, someone with common sense. Thanks again!!!

  • Thu 20 Mar 2014
  • 6:06 AM
  •  avatar #11

Dude said...

Thanks.

  • Wed 05 Nov 2014
  • 4:54 AM
  •  avatar #12

George Melendez said...

Hi Julian

WOW.... I've been trying to solve this issue for so long and after I checked on Google with so many options that don't resolve the issue I found you. There are quite a few fixes but they are for WINS Pro or Ultimate and won't work for Home Premium. I wonder why would Microsoft hide this feature? It's such a headache to have to change your password every few months for really no reason. Sure, I understand that it's Microsoft way of securing my PC but shouldn't that be decided by the PC owner? I think that all administrative duties should be in the owners hands. What do you think? Thank you very much for the great tip and hope to hear from you soon,

George Melendez

Puerto Rico

Leave a Response

Some MarkDown is allowed, but HTML is not. (Click to learn more.)

  • Emphasize with italics: surround word with underscores _emphasis_
  • Emphasize strongly: surround word with double-asterisks **strong**
  • Link: surround text with square brackets, url with parentheses [text](url)
  • Inline code: surround text with backticks `IEnumerable`
  • Unordered list: start each line with an asterisk, space * an item
  • Ordered list: start each line with a digit, period, space 1. an item
  • Insert code block: start each line with four spaces
  • Insert blockquote: start each line with right-angle-bracket, space > Now is the time...

Extras

Search

About Me

I'm Julian M Bucknall, an ex-pat Brit living in Colorado, an atheist, a microbrew enthusiast, a Volvo 1800S owner, a Pet Shop Boys fanboy, a slide rule and HP calculator collector, an amateur photographer, a Altoids muncher.

DevExpress

I'm Chief Technology Officer at Developer Express, a software company that writes some great controls and tools for .NET and Delphi. I'm responsible for the technology oversight and vision of the company.

Validation

Validate markup as HTML5 (beta)     Validate CSS

Bottom swirl