Benutzer:MovGP0/Core Server/ADDS
Zur Navigation springen
Zur Suche springen
MovGP0 | Über mich | Hilfen | Artikel | Weblinks | Literatur | Zitate | Notizen | Programmierung | MSCert | Physik |
|
Active Directory Domain Services (ADDS)
[Bearbeiten | Quelltext bearbeiten]Install-Windowsfeature AD-Domain-Services -IncludeManagementTools
Import-Module ADDS-Deployment
Install-AddsForest PARAMETER
Add a Computer
[Bearbeiten | Quelltext bearbeiten]Add-Computer -DomainName "adds.local" -Restart
- Get Fully Qualified Domain Name (FQDN)
[System.Net.Dns]::GetHostByName($env:Win10PC1)
Add a User
[Bearbeiten | Quelltext bearbeiten]New-ADUser -Name "UserName" -GivenName "Firstname" -Surname "Familyname" -SamAccountName "username" -UserPrincipalName "username@adds.local"
Get-ADUser "username"
Set-ADAccountPassword -Identity "username" -Reset -NewPassword (ConvertTo-SecureString -AsPlainText 'PASSWORD' -Force)
Enable-ADAccount -Identity "username"
|}