Command to find about what DC you use its roles and timeserv

To find out about what is the DC for your domain and what are its roles, including what is the time server for your domain, use the following command. In this example, the domain is IDIR nltest /dsgetdc:idir /timeserv This would return something like: DC: \\ACROBAT Address: \\142.36.92.19 Dom Guid: d6740d24-7521-48d9-bb18-c691aeb766ac Dom Name: IDIR Forest Name: BCGOV Dc Site Name: Default-First-Site-Name Our Site Name: Default-First-Site-Name Flags: GC DS LDAP KDC TIMESERV WRITABLE DNS_FOREST CLOSE_SITE The command completed successfully