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

xUser should have an option to only make sure a user is present #769

Open
GokanDonmez opened this issue Jun 26, 2024 · 1 comment
Open
Labels
enhancement The issue is an enhancement request. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community.

Comments

@GokanDonmez
Copy link

Problem description

I want to use this to make an account for our LAPS user instead of using the default admin and it fails because the password is 'being managed by a different process'.

Verbose logs

will add later

DSC configuration

xUser name  
 {
                Ensure   = "Present"
                UserName = "[username]"
                Password = $credential
                Disabled = $False
            }

Suggested solution

I would like a version or toggle of this that does not do the password checks and merely creates the user once and then checks if it is still there.

Operating system the target node is running

OsName               : Microsoft Windows Server 2022 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell version and build the target node is running

PSVersion                      5.1.20348.2400

xPSDesiredStateConfiguration version

9.1.0
@johlju
Copy link
Member

johlju commented Nov 11, 2024

Maybe someone in the community can add a opt-in DoNotEnforcePassword parameter that prevent the resource from enforcing the password. Including adding the required unit and integration tests.

@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub labels Nov 11, 2024
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. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants