Finding the NetBIOS Name of a Domain

Updated: February 28, 2009

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to find the NetBIOS name of a domain in Active Directory Domain Services (AD DS).

Example

The following example demonstrates how find the NetBIOS name of the Fabrikam.com domain:

Get-ADDomain –Identity Fabrikam.com

Additional information

For a full explanation of the parameters that you can pass to Get-ADDomain, at the Active Directory module command prompt, type Get-Help Get-ADDomain –detailed, and then press ENTER.

Tags :


Community Content

Brenton J.W. Blawat
Implied Detail - Must Import the AD Module
<p>All,<br /><br /></p> <p>At first glance, this article provides an excellent way to obtain the Domain's NetBios Name. When trying to use this function you will find that the command does not work unless you import the active directory module. Just thought I'd give this tidbit for everyone.</p> <p> <br />Add the below code to the beginning portion of the script:</p> <p> </p> <pre># Step 1: Import The Active Directory Module import-module activedirectory</pre> <p> <br /> <br />I also mention this in the following article: <mtps:InstrumentedLink NavigateUrl="http://bittangents.com/2010/10/04/sql-server-2008-security-permissions-windows-active-directory-authentication-issues/" runat="server" xmlns:mtps="http://msdn2.microsoft.com/mtps">http://bittangents.com/2010/10/04/sql-server-2008-security-permissions-windows-active-directory-authentication-issues/</mtps:InstrumentedLink></p> <p> <br />Happy Coding!<br /></p> <p>-Brenton<br /></p> <p> </p>

Page view tracker