Remotely Forcing a Computer to Register in DNS

Suppose you have a computer that you know is on, but for some reason doesn’t show up in DNS. The NetBIOS name is available, but you have a need to use the FQDN. This can be painful when you use a tool that depends on the DNS name being available. The fix is quite simple, but requires that you have WinRM deployed in your environment and for you to use the NetBIOS name

These commands are run from a powershell cmdlet:

     Enter-PSSession 'BrokenComputerNetBiosName'
     ipconfig /registerdns
     exit #Leaves Powershell session


After these commands are run, wait a couple of minutes (this can take up to 5 minutes but should be faster)


     Ipconfig /flushdns
     ping 'BrokenComputer.Fully.Qualified.Domain.Name'
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s