Detect Change in PC Name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to detect if the computer name has been changed in .NET?
 
I believe this would require a service of some sort running on the box.

This could poll the computer name at regular intervals and ensure that it
hadn't changed and then react when it had. Not sure how usefull that would
be if you have to reboot when changing the name of a pc in xp.

Off the top of my head I can't recall if changing the name of a computer
requires a reboot in xp but if you had an app running on startup that
detected the computer name and then compared it to the previous name (The
app would have to store this), then you could then execute some sort of code
to respond at that point.

Sorry it isn't more helpful but I don't believe that the changing of the
computer name fires any type of event that you could handle.
 
Changing the name 'does' require a reboot

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top