Re: GetCurrentUserName/Domain, these are identical:
PHP Code:
UserMgr::GetUserNameFromSID "S-1-5-21-4264112824-276356272-3790957511-1754"
Pop $0
UserMgr::GetCurrentDomain
Pop $1
UserMgr::GetCurrentUserName
Pop $2
MessageBox MB_OK "$0 vs $1\$2"
The net user command tells somewhat of a different tale -- it appends ".com" onto the domain when it describes the request.
Going back and changing the code above to domain.com\username, still gets me the error, BUT calling GetSIDFromUsername with domain.com and my username, yields the correct SID.
What do you make of this?
Quote:
C:\Users\oliverlw>net user oliverlw /domain
The request will be processed at a domain controller for domain xxxx.com.
User name xxxx
Full Name xxxx xxxx
Comment
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never
Password last set 8/5/2011 7:56:20 AM
Password expires 11/3/2011 7:56:20 AM
Password changeable 8/6/2011 7:56:20 AM
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon 9/1/2011 3:28:51 PM
Logon hours allowed All
Local Group Memberships
Global Group memberships *xxxx
The command completed successfully.
|