This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
powershell [2023/03/01 17:20] val [Добавление в домен пользователей] |
powershell [2025/10/13 13:18] (current) val |
||
---|---|---|---|
Line 32: | Line 32: | ||
</code><code> | </code><code> | ||
FirstName;Initials;Lastname;Username;Email;Password;Telephone | FirstName;Initials;Lastname;Username;Email;Password;Telephone | ||
- | Ivan;I;Ivanov;user1;user1@corp13.un;Pa$$w0rd1;401 | ||
Petr;P;Petrov;user2;user2@corp13.un;Pa$$w0rd2;402 | Petr;P;Petrov;user2;user2@corp13.un;Pa$$w0rd2;402 | ||
Сидор;С;Сидоров;user3;user3@corp13.un;Pa$$w0rd3;403 | Сидор;С;Сидоров;user3;user3@corp13.un;Pa$$w0rd3;403 | ||
Line 95: | Line 94: | ||
</code> | </code> | ||
+ | ===== Создание Kerberos Principal ===== | ||
+ | <code> | ||
+ | $x = Read-Host -Prompt "Ваш X"; New-ADUser -Name "gatehttp" -SamAccountName "gatehttp" -AccountPassword(ConvertTo-SecureString -AsPlainText 'Pa$$w0rd' -Force) -Enabled $true -ChangePasswordAtLogon $false -CannotChangePassword $true -UserPrincipalName gatehttp@corp$X.un -DisplayName gatehttp -PasswordNeverExpires $true | ||
+ | </code> |