Home Lab
Mollysec-DC01
# Rename host
Rename-Computer -NewName "MOLLYSEC-DC01" -Restart
# Users list
> cat users.txt
molly-ea
molly-da
molly
sylune
henry
freya
poppy
willow
gecko
lennie
indy
rudy
ca_svc
# Create multiple users
Import-Module ActiveDirectory
Get-Content .\users.txt | ForEach-Object {New-ADUser -Name $_ -SamAccountName $_ -AccountPassword (ConvertTo-SecureString "Password123!" -AsPlainText -Force) -Enabled $true}Puppy-DC01
CA-01
DEV01
Commands
Last updated