Lusrmgr.exe -
A deep feature often misunderstood is the context of the "Member Of" tab when a machine is joined to an Active Directory Domain.
$group = Get-LocalGroup -Name $GroupName -ErrorAction SilentlyContinue if (-not $group) New-LocalGroup -Name $GroupName lusrmgr.exe
// Create user DirectoryEntry newUser = localMachine.Children.Add("JohnDoe", "User"); newUser.Properties["FullName"].Value = "John Doe"; newUser.Invoke("SetPassword", new object[] "P@ssw0rd" ); newUser.CommitChanges(); A deep feature often misunderstood is the context