Changing Computer Name and adding to Domain

Posted on 2003-11-13
Last Modified: 2010-05-18
I'm using VB6 and would like some help on Changing the computer name and adding the computer to my domain on a windows 2000 machine. Thanks.
Question by:DustinR1
  • 2

Expert Comment

ID: 9745310
Are you asking how to make this network change using VB6 code?  

I'm not exactly sure if its possible,  but I think it would be a fairly large security risk to allow this kind of activity to be performed by an application.  Even if it can be done,  I wouldn't suggest it.  The malicious capabilities of that would be endless....  I'd hate to run an app only to have it change my computer name to 'IMGAY'.  Explain THAT around the watercooler.

If you're simply asking how to perform this change in control panel, do the following

goto start--->settings--->control panel--->System

click tab marked 'Network Identification'

click 'Properties' button

enter Computer name and domain.



Accepted Solution

GloomyFriar earned 125 total points
ID: 9747371
1. Use SetComputerName and SetComputerNameEx API functions.
2. Use NetJoinDomain API function.

Expert Comment

ID: 9750720
Wow,  I'm suprised to see these API's available to applications.  How are the security issues handled?


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now