<commit_before>param
(
   [Parameter(Mandatory=$true)]
   [string]$user
)
$Computer = [ADSI]"WinNT://$Env:COMPUTERNAME,Computer"

$LocalUser = $Computer.Create("User", $user)
$LocalUser.SetPassword("<PASSWORD>&!=")
$LocalUser.SetInfo()
net localgroup Administrators $user /ADD<commit_msg>Allow the password for the created user to be supplied at the command line.<commit_after>param
(
   [Parameter(Mandatory=$true)]
   [string]$user,
   [Parameter(Mandatory=$false)]
   [string]$password="<PASSWORD>&!="
)
$Computer = [ADSI]"WinNT://$Env:COMPUTERNAME,Computer"

$LocalUser = $Computer.Create("User", $user)
$LocalUser.SetPassword($password)
$LocalUser.SetInfo()
net localgroup Administrators $user /ADD
{'fraction_non_alphanumeric': 0.16927453769559034, 'fraction_numerical': 0.0, 'mean_word_length': 7.2823529411764705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '353581', 'n_tokens_mistral': 241, 'n_tokens_neox': 232, 'n_words': 44}