Windows keeps asking for a password reset

SiirZax

New Member
Messages
5
Reaction score
0
Hello.

I've created an iso a few months ago that I use with one of my friend for all the computer we're building. It's working really good and we are trully happy with it.
However, windows asks to reset the password after something like 30 days. I found the way to disable this in the lusrmgr.msc service page but I didn't find any option about this in the NTLite iso creation.
We do not have the problem with the microsoft iso (original copy of windows)

Thank you for your help !

Zax.
 
I'm putting this in SetupComplete.cmd

@echo off
rem Disabling the password expiration in Windows and the message: "The password has expired and needs to be replaced"
rem Отключаем срок действия пароля в Windows и сообщение: "Пароль просрочен и должен быть заменён"

net accounts /maxpwage:unlimited
 
I'm putting this in SetupComplete.cmd

@echo off
rem Disabling the password expiration in Windows and the message: "The password has expired and needs to be replaced"
rem Отключаем срок действия пароля в Windows и сообщение: "Пароль просрочен и должен быть заменён"

net accounts /maxpwage:unlimited
Thank you !
I found this command an hour ago and added it to my public desktop so I can launch it when windows is installed.

Where is this setupcomplete.cmd located? Is it something that starts automatically when you finalize the installation?

Thank you again.
 
RU
Если вы хотите запускать с Рабочего стола, то достаточно запустить Off password.cmd . Если вы хотите чтобы скрипт выполнялся автоматически во время установки, то эта команда должна находиться в скрипте SetupComplete.cmd в папке $OEM$>$$>Setup>Scripts. А папку $OEM$ нужно поместить в папку sources Вашего образа Windows. Образец я закрепил ниже в архиве $OEM$.rar
EN
If you want to run from the Desktop, it is enough to run Off password.cmd . If you want the script to run automatically during installation, then this command should be located in the SetupComplete.cmd script in the $OEM$>$$>Setup>Scripts folder. And the $OEM$ folder should be placed in the sources folder of your Windows image. I have fixed the sample below in the archive $OEM$.rar
 

Attachments

Go to post setup under the integrate section on the left side and click the Add menu at the top. Go to template / Disable user password expiration.
 
Go to post setup under the integrate section on the left side and click the Add menu at the top. Go to template / Disable user password expiration.
Woow thank you ! This feature should be more visible imo... Thanks a lot.
 
SiirZax,
RU
Мой вариант был предложен, если у вас образ уже готов или записан на usb флешку. А если Вы хотите сделать это во время редактирования, то конечно удобнее использовать предыдущий совет.
EN
My option was suggested if you have the image ready or written to a usb flash drive. And if you want to do this while editing, then of course it is more convenient to use the previous advice.
 
SiirZax,
RU
Мой вариант был предложен, если у вас образ уже готов или записан на usb флешку. А если Вы хотите сделать это во время редактирования, то конечно удобнее использовать предыдущий совет.
EN
My option was suggested if you have the image ready or written to a usb flash drive. And if you want to do this while editing, then of course it is more convenient to use the previous advice.
Okay sure,
I tried it and your option worked fine tho.

I might just do another iso so I don't have to do again everything I've done.
 
There's no real need to copy an external SetupComplete.cmd.

If you didn't know the template existed, you can simply add a new Post-Setup (Before logon) command:

CommandParameters
netaccounts /maxpwage:unlimited
 
There's no real need to copy an external SetupComplete.cmd.

If you didn't know the template existed, you can simply add a new Post-Setup (Before logon) command:

CommandParameters
netaccounts /maxpwage:unlimited
Yeah i Loaded my iso back and added the post setup password expiration to unlimited and it's working fine now.

I mean after installing when I type: net user "user" I got unlimited on the password expiration line which looks fine.
 
Or run with UnAttended:
<settings pass="oobeSystem">
<Enabled>true</Enabled>
<LogonCount>9999999</LogonCount>
</settings>
 
Back
Top