Login    
   Windows Server to Workstation
   Convert Windows Server 2008/2008 R2/2012 to a Workstation!
    Register FAQ  •  Search    
It is currently Tue May 21, 2013 8:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Automatic Password Enforcement and Expiration Change
PostPosted: Mon May 11, 2009 10:45 am 
Offline

Joined: Mon May 11, 2009 10:35 am
Posts: 2
What I would like to do is have the password expire set to 0, and the enforcement turned off inside of a custom install, so that I do not need to set these things up after install. I have compared changes to the registry and the files for when I had the security policy at it's original settings to that of the desired settings, and the only things I noticed that changed were the ntuser.dat, and secedit.sdb (found in Windows\security\database).

If anyone knows what actually gets changed when the password settings are changed, please let me know.


 Profile  
 Post subject: Re: Automatic Password Enforcement and Expiration Change
PostPosted: Fri May 22, 2009 11:19 am 
Offline
Win2008Workstation Admin
Win2008Workstation Admin
User avatar

Joined: Sat Mar 08, 2008 5:10 pm
Posts: 1063
Location: The Netherlands
Some time ago I did try to find out how this can be done using a registry modification using Sysinternals Process Monitor (filter: [Process Name] is [lsass.exe] then [Include]) which was monitoring while I clicked the Apply button of the Group Policy Editor (tutorial). Within the HKLM\SAM\SAM\Domains\Account\F string in the registry some values changed. I expect that this is done by some functioncall but haven't tried to find that out.

Maybe this helps you any further.

Good luck!

Arris

_________________
|[ Mainboard: Gigabyte GA-M56S-S3 ]|[ CPU: AMD Athlon 64 X2 6000+ ]|[ RAM: 4096 MB (DDR2-800 SDRAM) ]|[ GPU: NVIDIA GeForce 8600 GT (256 MB) ]|[ OS: Microsoft Windows Server 2008 R2 Enterprise ]|


 Profile  
 Post subject: Re: Automatic Password Enforcement and Expiration Change
PostPosted: Wed May 27, 2009 10:56 am 
Offline

Joined: Mon May 11, 2009 10:35 am
Posts: 2
Well for the time being, I found a workaround for my problem. After some research, I was able to change the settings during the install by inserting a command file in the Windows\Setup\Scripts folder in the wim. The file itself is labeled 'SetupComplete.cmd'. I inserted the line: net accounts /maxpwage:unlimited. Alas I was unable to find out how to disable enforcement, but I can live with this. :)

Furthermore, I was also able to set some features to be installed automatically as well from the script. I used:

ServerManagerCmd.exe -install feature feature feature -allsubfeatures
shutdown -r

Where each feature is replaced with the feature name. And the shutdown to force a restart after the desktop is reached (to install the features). It may not be the fastest way possible, but it does the job ;P.


 Profile  
 Post subject: Re: Automatic Password Enforcement and Expiration Change
PostPosted: Sat Jun 06, 2009 12:56 pm 
Offline
Win2008Workstation Admin
Win2008Workstation Admin
User avatar

Joined: Sat Mar 08, 2008 5:10 pm
Posts: 1063
Location: The Netherlands
Thanks for this clarification; didn't know this script and commandline instructions! :)

_________________
|[ Mainboard: Gigabyte GA-M56S-S3 ]|[ CPU: AMD Athlon 64 X2 6000+ ]|[ RAM: 4096 MB (DDR2-800 SDRAM) ]|[ GPU: NVIDIA GeForce 8600 GT (256 MB) ]|[ OS: Microsoft Windows Server 2008 R2 Enterprise ]|


 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[ Time : 0.066s | 13 Queries | GZIP : Off ]