Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xADUser: Unable to add ChangePasswordAtLogon to the New-ADUser cmdlet #246

Closed
Chirag1233 opened this issue Mar 14, 2019 · 1 comment · Fixed by #371
Closed

xADUser: Unable to add ChangePasswordAtLogon to the New-ADUser cmdlet #246

Chirag1233 opened this issue Mar 14, 2019 · 1 comment · Fixed by #371
Labels
enhancement The issue is an enhancement request.

Comments

@Chirag1233
Copy link

Hi guys I am trying to add the ChangePasswordAtLogon Parameter to the new-aduser so everytime a new users gets created they have to reset the password at first logon. do you know why I can't just simply replace New-ADUser @newADUserParams -SamAccountName $UserName; to New-ADUser @newADUserParams -SamAccountName $UserName -ChangePasswordAtLogon $true -Verbose; or is there any other way I can change add the ChangePasswordAtLogon value so it only became available when a new users get created and does not touch any of the existing users.

@johlju
Copy link
Member

johlju commented Mar 21, 2019

There are no parameter for it. But using that together with $PasswordNeverResets could probably work. But I think the first intention with this resource was to create accounts that should be able to be used right away. But your scenario might be able to be covered to.
If you get it working, please send in a PR. In the mean time I label this so that someone in the community can work on this, or answer if it could be possible.

@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Mar 21, 2019
@johlju johlju changed the title unable to add ChangePasswordAtLogon to the new-aduser in xaduser xADUser: Unable to add ChangePasswordAtLogon to the New-ADUser cmdlet Mar 21, 2019
@SteveL-MSFT SteveL-MSFT added this to Help Wanted in powershell/dscresources May 14, 2019
@johlju johlju added this to To do in All issues and PR's May 23, 2019
All issues and PR's automation moved this from To do to Done Jun 15, 2019
johlju pushed a commit that referenced this issue Jun 15, 2019
- Changes to xADUser
  - Added ChangePasswordAtLogon property (issue #246).
@johlju johlju removed the help wanted The issue is up for grabs for anyone in the community. label Jun 15, 2019
@SteveL-MSFT SteveL-MSFT removed this from Help Wanted in powershell/dscresources Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request.
Projects
Development

Successfully merging a pull request may close this issue.

2 participants