Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Here's the simple little script that does this for you:
AddExtender('wwwnt34i.dll') MachineSID = wntLsaPolGet('','AccountDomain',2) AdministratorSID = StrCat(MachineSID, "-500") AdministratorName = wntAcctInfo('',AdministratorSID,2,0)
This works regardless of the localized language version of Windows that you are using. For example, the name of the Administrator account changes in the German language versions of Windows, so you can't assume that it will be "Administrator". The NT extender does some tasks internally where groups like "Administrators" and "Everyone" need to be manipulated, and it uses this same method to build the SID values because the account names may vary. The SID value is the one thing that will always work regardless of what the account name currently is.
Article ID: W16043
File Created: 2004:03:30:15:42:30
Last Updated: 2004:03:30:15:42:30