G
Guest
As part of a migration from NT to XP for 5000+ PCs, I have come across an issue where the case returned by XP for the logged on user is different to under NT.
If you use the username property of the wscript.network object or use the GetUsername API the case is returned as the samAccountName with the case preserved on NT but on XP the username is returned exactly as it was entered at the login screen.
That is to say, if the user logs into XP by typing in USERx for the username then WSH and the API call will return USERx whereas NT returns UserX(as it appears in the samAccountName).
This is causing issues for some applications which are attempting to authenticate to Unix hosts where the username is case-sensitive.
Can anybody:
1) Explain why this occurs
2) Provide a solution that will make these calls return the samAccountName under XP
If you use the username property of the wscript.network object or use the GetUsername API the case is returned as the samAccountName with the case preserved on NT but on XP the username is returned exactly as it was entered at the login screen.
That is to say, if the user logs into XP by typing in USERx for the username then WSH and the API call will return USERx whereas NT returns UserX(as it appears in the samAccountName).
This is causing issues for some applications which are attempting to authenticate to Unix hosts where the username is case-sensitive.
Can anybody:
1) Explain why this occurs
2) Provide a solution that will make these calls return the samAccountName under XP