PowerShell Command Generator for IT Administrators
PowerShell Generator
Build common commands without memorizing all the syntax.
Script
$Password = Read-Host "Mot de passe initial" -AsSecureString
New-ADUser -Name 'Jean Dupont' -SamAccountName 'jdupont' -UserPrincipalName 'jdupont@exemple.local' -Path 'OU=Utilisateurs,DC=exemple,DC=local' -AccountPassword $Password -Enabled $true -ChangePasswordAtLogon $trueAlways review the script, test on a limited scope, and never embed plaintext passwords.