If this script works for you in your environment please rate it.  If you have problems running the script please start a discussion and state the error you are seeing or issue you have. 

You may want to also see my other scripts I have posted such as "Enumerate Active Directory User Object Information", "Enumerate Active Directory Group Object Information", "Create Active Directory User Object" or "Create Active Directory Group Object" to assist you with your scripting needs. 

PowerShell
Edit|Remove
#This code demonstrates how to create a new computer object on Active Directory without any plug-ins.
#
#To run this script within your environment you should only need to copy and paste this script into
#either Windows Powershell ISE or PowerGUI Script Editor,(http://powergui.org) with the following
#changes to the script which I have numbered below.  
#  1.) Change the line, ($ComputerName = "ComputerName")so that you have real computer name 
#      you want to create.
#  2.) You may also need to install Microsoft Update "http://support.microsoft.com/kb/968930".
#
#You can also create a computer object in a specific Active Directory OU's by changing the section of 
#code that has "System.DirectoryServices.DirectoryEntry" listed within them.  
#From: "$objDomain = New-Object System.DirectoryServices.DirectoryEntry"
#To: "$objDomain = New-Object System.DirectoryServices.DirectoryEntry("LDAP://OU=ASDF,DC=asdf,DC=asdf")"
#
# User Account Control Values - Note not all values are listed.  See "http://support.microsoft.com/kb/305144"
# for a full list of User Account Controls and a more full description of the properties.
# Property flag | Value in decimal
# SCRIPT = 1 
# ACCOUNTDISABLE = 2 
# HOMEDIR_REQUIRED = 8 
# LOCKOUT = 16 
# PASSWD_NOTREQD = 32 
# WORKSTATION_TRUST_ACCOUNT = 4096 
# SERVER_TRUST_ACCOUNT = 8192 
#  
# When using "Active Directory Users and Computers" to create a computer object the
# "userAccountControl" is set to 4128 by default.  This is a combination of the
# "WORKSTATION_TRUST_ACCOUNT" decimal value of 4096 and "PASSWD_NOTREQD" decimal value 32.
# I have also see Computer Accounts created with 4096 which is also an accepted number for
# and enabled computer account.    
# So if you want to create a disabled computer account you would add the decimal values of
# the UAC's WORKSTATION_TRUST_ACCOUNT and ACCOUNTDISABLE which equals 4098.  


#Beginning of PowerShell code:
#First change the variable $ComputerName to a real computer name you want to create within your domain.
$ComputerName = "ComputerName"

$objDomain = New-Object System.DirectoryServices.DirectoryEntry

$objComputer = $objDomain.Create("computer", "CN=" + $ComputerName)
$objComputer.Put("sAMAccountName",$ComputerName + "$") # A dollar sign must be appended to the end of every computer sAMAccountName.
$objComputer.Put("Description","Some Descriptive text")
$objComputer.Put("userAccountControl", 4128)
$objComputer.SetInfo()