Return the currently logged on domain using Autohotkey

Posted on

QUESTION :

I am writing a script and want to check whether the user is currently logged into the local machine or to the windows domain. I specifically want to get the name of the domain, as the script may be used on multiple domains and multiple workstations.

ANSWER :

I guess you could use the Registry Functions on
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersDomain to grab the name.

Leave a Reply

Your email address will not be published.