Rename PC remotely?

  • Thread starter Carlton Whitmore
  • Start date
C

Carlton Whitmore

I would like to rename W2k Pro PC's on our domain without
having to go that the PC to do it. I'm able to "manage"
them, but I don't see an option for renaming the PC.
Any ideas?
Carlton.
 
G

Gerry Hickman

Carlton said:
I would like to rename W2k Pro PC's on our domain without
having to go that the PC to do it. I'm able to "manage"
them, but I don't see an option for renaming the PC.
Any ideas?

Have a look at NetDom to unjoin/rejoin domain. Make sure you use the
/reboot option or you could find yourself locked out of the remote machine.

Then consider using the Registry Provider of WMI to set the "NV domain"
and "NV Hostname" keys in the registry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Again, be sure to reboot so the new settings take effect.

Reset the DNS host record or you could rely on Dynamic DNS if you know
it's working. Again, you could lock yourself out if the new name cannot
instantly resolve.

The above _can_ be done, but you'll need to do lots of testing with an
old PC first before you attempt it on a real one.

Under XP client, there's a Rename() method in WMI you can use do this
instead.
 

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

Top