본문 바로가기

Microsoft/Windows Server 2008

NLtest 커맨드 사용기-2003,2008 서버에서 사용가능

1.     도메인의 DC리스트 보기

C:\>nltest /dclist:nwtraders1.msft

Get list of DCs in domain 'nwtraders1.msft' from '\\Vancouver.Nwtraders1.msft'.

    Vancouver.Nwtraders1.msft [PDC] [DS] Site: Default-First-Site-Name

The command completed successfully

 

2.     계정 정보 보기

C:\>nltest /user:"Administrator"

User: Administrator

Rid: 0x1f4

Version: 0x10002

AccountExpires: ffffffff 7fffffff = 9/13/30828 20:48:05

PrimaryGroupId: 0x201

UserAccountControl: 0x210

CountryCode: 0x0

CodePage: 0x0

BadPasswordCount: 0x0

LogonCount: 0x0

AdminCount: 0x1

SecurityDescriptor: 80140001 0000009c 000000ac 00000014 00000044 00300002 000000

02 0014c002 01050044 00000101 01000000 00000000 0014c002 001fffff 00000101 05000

000 00000007 00580002 00000003 00140000 0002035b 00000101 01000000 00000000 0018

0000 000f07ff 00000201 05000000 00000020 00000220 00240000 00020044 00000501 050

00000 00000015 c76084ea bd6a23c5 25684db8 000001f4 00000201 05000000 00000020 00

000220 00000201 05000000 00000020 00000220

AccountName: Administrator

AdminComment: Built-in account for administering the computer/domain

Groups: 00000201 00000007

LmOwfPassword: 39f52f82 0b317ab1 9ea25bd4 e83f834f

NtOwfPassword: 41caf3c9 b9a2ba74 7f9a7cdf bc2dd172

NtPasswordHistory: 00010001

LmPasswordHistory: 00010001

The command completed successfully

 

 

 

3.     PDC 리스트 보기

C:\>nltest /dcname:nwtraders1

PDC for Domain nwtraders1 is \\VANCOUVER

The command completed successfully

 

 

4.     도메인 트러스트 보기

C:\>nltest /domain_trusts

List of domain trusts:

    0: CORP1 Corp1.Nwtraders1.msft (NT 5) (Forest: 2) (Direct Outbound) (Direct

Inbound) ( Attr: 0x20 )

    1: NWTRADERS Nwtraders.msft (NT 5) (Direct Outbound) (Direct Inbound) ( Attr

: 0x8 )

    2: NWTRADERS1 Nwtraders1.msft (NT 5) (Forest Tree Root) (Primary Domain) (Na

tive)

The command completed successfully

 

5.     DNS에게 정보 쿼리

C:\>nltest /dsgetdc:nwtraders1 /pdc

           DC: \\VANCOUVER

      Address: \\192.168.1.1

     Dom Guid: 2ed1f9fc-f6ef-4e1d-b1b6-956b1c660cf4

     Dom Name: NWTRADERS1

  Forest Name: Nwtraders1.msft

 Dc Site Name: Default-First-Site-Name

Our Site Name: Default-First-Site-Name

        Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_FOREST CLOSE_S

ITE

The command completed successfully

 

 

C:\>nltest /dsgetdc:nwtraders1 /GC

           DC: \\VANCOUVER

      Address: \\192.168.1.1

     Dom Guid: 2ed1f9fc-f6ef-4e1d-b1b6-956b1c660cf4

     Dom Name: NWTRADERS1

  Forest Name: Nwtraders1.msft

 Dc Site Name: Default-First-Site-Name

Our Site Name: Default-First-Site-Name

        Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_FOREST CLOSE_S

ITE

The command completed successfully

 

C:\>nltest /dsgetsite

Default-First-Site-Name

The command completed successfully

 

6.     트러스트된 도메인의 사용자 찾기

C:\>nltest /finduser:administrator

Domain Name: NWTRADERS

Trusted DC Name \\LONDON.Nwtraders.msft

The command completed successfully

 

C:\>nltest /finduser:vancouveruser

Domain Name: NWTRADERS1

Trusted DC Name \\VANCOUVER

The command completed successfully

 

C:\>nltest /finduser:Denveruser

Domain Name: NWTRADERS1

Trusted DC Name \\VANCOUVER

The command completed successfully