You can detect the domain controller you logged in using some methods: With the command prompt: set log LOGONSERVER=\\\\MUN-DC02. In the output of the following command: systeminfo | find /i "logon server" From the environment variable: echo %logonserver% More items... Jul 8, 2022