Skip to content

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

@GokanDonmez

Description

@GokanDonmez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.good first issueThe issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHubhelp wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions