Létrehoztam a felhasználót, elvileg nincs jelszó hozzárendelve.
New-ADUser "Timi"
$adsi=[ADSI]"LDAP://CN=Timi,CN=Users,DC=peldasuli,DC=local"
$adsi.passwd = "vmi" ??? a passwd helyett mit kell megadni ha jelszót akarunk adni neki?
$adsi.Setinfo()
- 204 megtekintés
Hozzászólások
PS C:\> Set-ADAccountPassword -Identity 'CN=Elisa Daugherty,OU=Accounts,DC=Fabrikam,DC=com' -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "p@ssw0rd" -Force)
- A hozzászóláshoz be kell jelentkezni
Ezt érdemes megnézned: https://devblogs.microsoft.com/scripting/how-to-change-a-users-active-d…
Vagy ezt: https://docs.microsoft.com/en-us/powershell/module/activedirectory/set-…
- A hozzászóláshoz be kell jelentkezni
Létrehoztam a fiókot , de nem enged be a winserver:(
New-ADUser -Name "Test3 User" -Surname "User" -GivenName "Test3" -SamAccountName "test3user" -UserPrincipalName "test3.user@peldasuli.local" -Path "OU=TestOU,DC=PELDASULI,DC=LOCAL" -PasswordNeverExpires $true -Manager Rendszergazda -EmailAddress "test3.user@peldasuli.local" -Enabled $true -AccountPassword (ConvertTo-SecureString -AsPlainText "2C5ldh08" -Force)
- A hozzászóláshoz be kell jelentkezni