Hi All,

I was working on a script to rename the workstation name. I have a ghost image (trying to get rid of it) and autologon when first boots and runs the following script:

    ;writevalue("HKEY_CURRENT_USER\Volatile Environment","LOGONSERVER","\\$compname","REG_SZ")
    ;writevalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultDomainName","$compname","REG_SZ")
    ;writevalue("HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName","ComputerName","$compname","REG_SZ")
    ;writevalue("HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName","ComputerName","$compname","REG_SZ")
    ;writevalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","Hostname","$compname","REG_SZ")
    ;addkey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ncpa\CurrentVersion\ConfigChanged")

The beginning of each line begins with a ; so if it wraps, sorry. I don't know how to make it smaller. Anyways, in the beginning of the script, it prompts for $compname and after the input is recieved, it runs through and does the renames. After its done, it reboots and I have another script run that joins it to the domain. After its done it reboots again and gives the login screen. Well, when I do this and try to login to the domain, I get a trust error. If I run script, reboot, and manually join to the domain I get the same problem so its somewhere in renaming the workstation. I looked at previous postings and couldn't find anything that wasn't free. Can anybody help? I hope I explained as detailed as possible. Thanks in Advanced.

_________________________
Gus Dalinis Systems Analyst