Code:
DBConnOpen("Driver={SQL Server};Server=SQLServerHostName;UID=someUser;PWD=withSomePassword`;Database=computers')
DBExecuteSQL($objConn,"INSERT INTO computers VALUES('@WKSTA','@DOMAIN','@ADDRESS','@IPADDRESS0')")
DBConnClose($objConn)

contains non-matching string terminators.

A cleaner approach would be
 Code:
$sql = "INSERT INTO computers VALUES('"+@WKSTA+"','"+@DOMAIN+"','"+@ADDRESS+"','+"@IPADDRESS0+"')"
DBConnOpen('Driver={SQL Server};Server=SQLServerHostName;UID=someUser;PWD=withSomePassword;Database=computers')
DBExecuteSQL($objConn,$sql)
DBConnClose($objConn)


Still the startup script might not have sufficient rigths to access entwork resources, thus even if the script works while logged in it would not work as a startup script.
_________________________
There are two types of vessels, submarines and targets.