will that remove computer from the domain or damage the structure somehow?
Main Topics
Browse All TopicsWhat's the best way to change a computer anme under a domain, using VBScript?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
From what i understand, renaming the computer and renaming the AD account to match would not mess up the structure. The computername would just connect to the renamed computer account in AD. This is not the same as deleting/re-adding a computer.
Do you have a computer to try it on as a test? I have never used this process. I have renamed AD accounts and renamed computers to match manually but never with a script.
Once you run the script and reboot, then it should have taken effect. Again, I have never used the script, only manually. I never had to make changes when I do it manually, so I am assuming that you won't have to after script is successful and reboot happens.
if I am not mistaken, the .rename function will do (or initiate) the changes needed for the function to successfully execute.
Business Accounts
Answer for Membership
by: JeffPartonPosted on 2009-10-26 at 09:57:09ID: 25664270
This can be very tricky. You can try the below but must be ran on the local machine. I have not tested this... Trying to run on a remote machine would run into many problems.
This should rename the computer and its Active Directory computer account. Won't work on anything under XP
Select allOpen in new window