Jump to content

Macro To Pull Domain Name


afoster
 Share

Recommended Posts

  • Developers

Think its an environment variable called USERDOMAIN so this can be retrieved in the following way:

EnvGet("USERDOMAIN")

edit: the 3.0.92 has the following extra Macros:

@USERPROFILEDIR, @HOMEDRIVE, @HOMEPATH, @HOMESHARE, @LOGONSERVER, @LOGONDOMAIN, @LOGONDNSDOMAIN

so maybe the @LOGONDOMAIN is what you are looking for....

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

The unstable v3.0.92 has added the following macros:

@UserProfileDir - Path to current user's Profile folder.

@HomeDrive - Drive letter of drive containing current user's home directory.

@HomePath - Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.

@HomeShare - Server and share name containing current user's home directory.

@LogonServer - Logon server.

@LogonDomain - Logon Domain.

@LogonDNSDomain - Logon DNS Domain.

Edited by jlandes

Sincerely yours,Jeremy Landesjlandes@landeserve.com

Link to comment
Share on other sites

OK Thanks, but is there one to pull the Domain that the Workstation is logged in to? We have three different domains and as such our workstations are joined to one of those three domains. When we use the runasset command we want it to use the domain name of whichever domain the computers is joined to.

Thanks,

Link to comment
Share on other sites

OK Thanks, but is there one to pull the Domain that the Workstation is logged in to?  We have three different domains and as such our workstations are joined to one of those three domains.  When we use the runasset command we want it to use the domain name of whichever domain the computers is joined to.

Thanks,

@LogonDomain should give you the domain that the user is logged into.

Sincerely yours,Jeremy Landesjlandes@landeserve.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...