User Tools

Site Tools


powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
powershell [2023/03/17 20:42]
val [Добавление в домен пользователей]
powershell [2026/10/28 10:33] (current)
val [Добавление в домен пользователей]
Line 26: Line 26:
 -Enabled $true -ChangePasswordAtLogon $false -Enabled $true -ChangePasswordAtLogon $false
 </​code>​ </​code>​
-  * [[Материалы по Windows#​Установка русского Language pack в Windows Server ​2016]]+  * [[Материалы по Windows#​Установка русского Language pack в Windows Server]]
   * [[https://​www.alitajran.com/​create-active-directory-users-from-csv-with-powershell/​|Create Active Directory Users from CSV with PowerShell]]   * [[https://​www.alitajran.com/​create-active-directory-users-from-csv-with-powershell/​|Create Active Directory Users from CSV with PowerShell]]
 <​code>​ <​code>​
Line 94: 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>​
powershell.1679074938.txt.gz · Last modified: 2023/03/17 20:42 by val