By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,018 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

Detect Change in PC Name

P: n/a
Is there a way to detect if the computer name has been changed in .NET?
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
<an*******@discussions.microsoft.com> wrote in message
news:O8*************@TK2MSFTNGP09.phx.gbl...
Is there a way to detect if the computer name has been changed in .NET?

Nov 21 '05 #2

P: n/a
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

"Anthony Sullivan" <to**@nebulasys.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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.
<an*******@discussions.microsoft.com> wrote in message
news:O8*************@TK2MSFTNGP09.phx.gbl...
Is there a way to detect if the computer name has been changed in .NET?


Nov 21 '05 #3

P: n/a

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
Changing the name 'does' require a reboot


....in ALL versions of Windows.
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.