Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Builtin Group SID convert to Name wntLsaPolGet
admingrprid = wntLsaPolGet("","AccountDomain",2) grpsid = StrCat(admingrprid, "-544") admingrp = wntGroupInfo("", grpsid, @LOCALGROUP, 0, 1, 1)The error I receive is a WIL Extender error:542 Invalid user/group name.
Is this the correct syntax to convert the sid to the actual name?
My test system is on a stand-alone win 2k pro box. This will ultimately be used on systems that are members of an AD Domain.
The SID is extracting perfectly. It is the conversion which has a problem. The following code gives me no problems in regards to performing the same functions on the Builtin Administrator account:
adminrid = wntLsaPolGet("","AccountDomain",2) accountsid = StrCat(adminrid, "-500") adminaccount=wntAcctInfo("", accountsid, 2,2)
Article ID: W15556
File Created: 2003:05:13:11:28:48
Last Updated: 2003:05:13:11:28:48