_:nbad1ec59b17c4efab62728771e3d70b7xb1
<http://schema.org/text>
"Hi,\n\nI reduced the code sniplet I am reffering to to some lines:\n\n$UserName         = &quot;A6-R306TN97&quot;\n\n$UserPassword     = &quot;depp&quot;\n\n$UserPasswordEnc  = $UserPassword | ConvertTo-SecureString -AsPlainText -Force\n\nNew-LocalUser -Name $UserName -Password $UserPasswordEnc\n\nAdd-LocalGroupMember -Member $UserNam&hellip;"
<https://forums.powershell.org/t/add-localgroupmember-does-not-work-properly/9443>