Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


rehbar

user password expir

Recommended Posts


I don't think it can be done. I will use FirstLogonCommnands to run a .cmd, with this inside:

wmic useraccount where "name='UserName'" set PasswordExpires=false

Share this post


Link to post
Share on other sites
On ‎28‎-‎02‎-‎2017 at 0:52 AM, Tripredacus said:

I don't think it can be done. I will use FirstLogonCommnands to run a .cmd, with this inside:

wmic useraccount where "name='UserName'" set PasswordExpires=false

how can I add first login command in unattanded.xml & where I add batch script in it.

Share this post


Link to post
Share on other sites

I put the .cmd in the image, or deploy it after it but before the first reboot, then just put the path to the .cmd in the XML.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...