Share
View previous topicGo downView next topic
Mohsan123

user password expire

on Sat 31 Dec 2016 - 13:23
please fix the "User password never expire" option. user have administrator privilege.
taskbar setting option also never work.
avatar
winterstorm2050
Admin
https://www.winreducer.net/

Re: user password expire

on Sun 1 Jan 2017 - 16:15
Hello,

Could you please describe more precisely your trouble, thank you very much for your understanding Smile
Mohsan123

Re: user password expire

on Mon 9 Jan 2017 - 17:54


Both pictures I uploaded. these option not working in win7,8,8.1 and win10 Professional
Mohsan123

Re: user password expire

on Sun 22 Jan 2017 - 13:44
winterstorm2050 wrote:Hello,

Could you please describe more precisely your trouble, thank you very much for your understanding Smile
is there any solution of my trouble?
Mohsan123

Re: user password expire

on Mon 30 Jan 2017 - 9:39
any body here?
avatar
KrX

Re: user password expire

on Mon 30 Jan 2017 - 12:07
hi,

could you start the comandline tool with admin rights and enter this:

NET ACCOUNTS /maxpwage:unlimited

do you get an error or does it look good? thats what winreducer does and it should normally work

normally it should look like this:



but at win7 i also dont get this "the command completed successfully" message.

i will do soon some tests to find that bug.
avatar
KrX

Re: user password expire

on Fri 3 Feb 2017 - 18:41
hi i ched it again and the comand is working like it should.

do you maybe mean this:




winreducer uses the command "net accounts /maxpwange:unlimited", this command sets (i think) the password to not expire for everyone. you can check if it is set correctly if you start the comandline tool and enter "net accounts"

you will see at "max password age" unlimited
Mohsan123

Re: user password expire

on Sat 4 Feb 2017 - 8:41
I know these commands, but I want's to set it by winreducer or in autounattand.xml file. I didn't want's to use it manual.
avatar
KrX

Re: user password expire

on Sat 4 Feb 2017 - 10:02
hi, the command i mentioned above is put into the unattanded.xml by winreducer if you switch "Turn Off Password Expiration" to ON at the unattanded tab
Mohsan123

Re: user password expire

on Sat 4 Feb 2017 - 13:30
KrX wrote:hi, the command i mentioned above is put into the unattanded.xml by winreducer if you switch "Turn Off Password Expiration" to ON at the unattanded tab
where in unattande.xml I place the command? and which command?
avatar
KrX

Re: user password expire

on Sat 4 Feb 2017 - 14:31
if you switch that to ON:


[You must be registered and logged in to see this link.]

winreducer creates an AutoUnattend.xml file in the root directory at your iso. that file got the comand:



Code:
   <RunSynchronousCommand wcm:action="add">
          <Order>9</Order>
          <Description>TurnOffPasswordExpiration</Description>
          <Path>CMD /C NET ACCOUNTS /maxpwage:unlimited</Path>
        </RunSynchronousCommand>


EDIT: it seems that the pictures i posted here arent shown, since the forum was updated? i will message winter
Mohsan123

Re: user password expire

on Sat 4 Feb 2017 - 15:23
which user it turn off password expir? all users?
avatar
KrX

Re: user password expire

on Sat 4 Feb 2017 - 15:49
yes it seems that this is set for all users
Mohsan123

Re: user password expire

on Thu 16 Feb 2017 - 18:46

how can i set "password never expire" to enable in autounattande.xml
Mohsan123

Re: user password expire

on Mon 13 Mar 2017 - 13:32
answer me plz
avatar
KrX

Re: user password expire

on Mon 13 Mar 2017 - 14:06
to eneable it in unattaned.xml to look like this,:

Code:
<RunSynchronousCommand wcm:action="add">
          <Order>9</Order>
          <Description>TurnOffPasswordExpiration</Description>
          <Path>CMD /C NET ACCOUNTS /maxpwage:unlimited</Path>
        </RunSynchronousCommand>

just select "Turn off password expiration" to ON at the unattanded tab in winreducer.

this will make the expiration unlimited for ALL users (but it does not trigger the checkbox for each user to turn off pasword expiration)
Mohsan123

Re: user password expire

on Mon 13 Mar 2017 - 14:25
I select "Turn off password expiration" to ON at the unattanded tab in winreducer but user password expire after 30 days.
avatar
winterstorm2050
Admin
https://www.winreducer.net/

Re: user password expire

on Mon 13 Mar 2017 - 23:40
Hello,

Check it using a cmd prompt with this command line :
Code:
net accounts
==> Do you see a "never", or "no limit", value passed to "max password age"

But if you really want to check the "Password never expires" checkbox in your username properties ... just use this command in an elevated command prompt :
Code:
wmic path Win32_UserAccount set PasswordExpires=False
==> It will work for all valid accounts in your computer

Code:
wmic UserAccount where Name='username' set PasswordExpires=False
==> It will work only for the specified account in your computer by just replacing "username" text by your own username ... you also need to keep the single quote in your command line !

Hope this help Smile
Mohsan123

Re: user password expire

on Thu 16 Mar 2017 - 17:04
where i put this command in autounattand.xml
avatar
KrX

Re: user password expire

on Thu 16 Mar 2017 - 18:24
Message reputation : 100% (1 vote)
Mohsan123 wrote:where i put this command in autounattand.xml


just post t at the end of your unattanded.xml

<RunSynchronous>

<RunSynchronousCommand wcm:action="add">
          <Order>1</Order>
          <Description>TurnOffPasswordExpiration</Description>
          <Path>CMD /C wmic path Win32_UserAccount set PasswordExpires=False</Path>
        </RunSynchronousCommand>

       
      </RunSynchronous>
    </component>
  </settings>
</unattend>

the last 3 lines should already exist at your file.
if you already got some command at your file be carefull of the <Order>1</Order> just count it up to the next number, and just add the blue lines.
Mohsan123

Re: user password expire

on Wed 28 Jun 2017 - 18:56
after to much searching i found a script for turn on check box "user password never expire" in windows.
now problem is to add in runonce.
i add script in oem folder and now how to run it in runonce.
if i add this file in OOBE, windows installation source must have to  b connected with system till complete installation and desktop appear.
if i remove the installation source (DVD disk/USB flash drive) after first/second reboot during instalation, the batch file in oobe do not run.
please guide me how to run a batch file in runonce.
 which line i add in unattand.xml
Mohsan123

Re: user password expire

on Mon 10 Jul 2017 - 8:59
anybody there?
View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum