-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
Steps to reproduce
This issue is copied from MicrosoftDocs/PowerShell-Docs#3555
Be aware if the computer is member of a domain and you try to add a local user with same name as a member of the domain it adds the domain member.
$Password = ConvertTo-SecureString -String "Testing@19" -AsPlainText -Force
New-LocalUser -Name "User" -Description "Local bruger" -Password $Password -FullName "NewLocalUserWithTheSameNameAsOneInTheDomain"
Add-LocalGroupMember -Group "TheLocalGroup" -Member "User"Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues