I've spent the afternoon trying to find out why KiXtart did not think that I was in Administrators...

If InGroup("\\" + @WkSta + "\" + SidToName("S-1-5-32-544")) > 0
;User is admin
EndIf

Well, I renamed the computer earlier this week...

Workaround:
If InGroup("\\" + @WkSta + "\" + SidToName("S-1-5-32-544")) = 0
;User should be at least user...
DelTree("HKEY_CURRENT_USER\Software\KiXtart\TokenCache")
EndIf


My suggestion to Ruud is to include the computer name in the token cache. If it doesn't match the current @wksta, refresh the cache.