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
powershell [2023/03/17 20:42]
val [Добавление в домен пользователей]
powershell [2025/10/13 13:18] (current)
val
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