afoster Posted February 3, 2004 Share Posted February 3, 2004 Is there or will there be a macro that can be used in the runasset command that will pull the domain name that a user is currently logged in as, or that the workstation is currently joined to? Link to comment Share on other sites More sharing options...
Developers Jos Posted February 3, 2004 Developers Share Posted February 3, 2004 (edited) 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 February 3, 2004 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 More sharing options...
jlandes Posted February 3, 2004 Share Posted February 3, 2004 (edited) 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 February 3, 2004 by jlandes Sincerely yours,Jeremy Landesjlandes@landeserve.com Link to comment Share on other sites More sharing options...
afoster Posted February 3, 2004 Author Share Posted February 3, 2004 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 More sharing options...
jlandes Posted February 3, 2004 Share Posted February 3, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now