Jump to content

user's password gonna expire in 14 days


Recommended Posts

I have found with my unattended CD that the user I create subsequently finds this message appearing not initially but a few weeks later.

Wondered if others have had a mature unattended installation give this?

I know how to manually change this but wondered if anyone knew the setting in winnt.sif I guess that will enable the "password never expires" option.

Link to comment
Share on other sites


Thats strange, I use a script that runs in GUIRUNONCE, it adds me as a user, adds some basic reg tweaks (autologon etc), then extracts all the files needed for install, and installs hotfixes, then it creates another script to run on 2nd boot. See if you can make any sense of it :rolleyes:...

CLS
ECHO.
ECHO Installing sofware applications, windows updates, and registry
ECHO hacks
ECHO Adding Default User...
net user Thanatos /add
net localgroup Administrators /ADD Thanatos
;your code in here...
ECHO Setting up second boot...
COPY "systemdrive%\install\2boot.cmd" "%allusersprofile%\Start Menu\Programs\Startup"
ECHO Restarting the PC in 1 minute...
shutdown.exe -r -t 60 -f -c "Restarting in one minute
DEL %SYSTEMDRIVE%\install\main_batch.cmd > NUL

Then in 2boot.cmd i have this...

CLS
;your code here
ECHO Starting Application batch...
start %systemdrive%\install\applications.cmd
DEL %SYSTEMDRIVE%\install\2boot.cmd > NUL

Hope that helped :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...