InGroup is fine. You might have some issues with the cache that is kept for a all groups a user is a member of. I would also recommend an upgrade to 4.61. This version has proper Windows 7 support.

You can run your script with the /f parameter or delete the registry key below. Be aware that the registry key will be created with new info from AD when a user logs on so deleting it, logging off and on again would give you the most up to date info from AD in the registry key below.

 Quote:

HKEY_CURRENT_USER\Software\KiXtart\TokenCache


I always use a small piece of code that deletes the token cache every x days. Have a look at the script below. This script requires the TimeDiff UDF.

UDF Library » TimeDiff() - calculate time difference between 2 timestamps

 Code:
;Read the last flush date from the registry.
$lastFlush = ReadValue("HKCU\Software\Kixtart", "DateLastFlush")
;Calculate the difference in days between today and the DateLastFlush value from the registry.
$dayssincelastflush = TimeDiff($lastflush, 'Today', 'D')
If $dayssincelastflush > 7 Or $lastflush = ""
	;Delete token cache registry key if last flush is more then x days ago or last flush is empty (only on first run).
	$rc = DelKey("HKU\" + @SID + "\Software\KiXtart\TokenCache")
	;Write current date and time to the registry. The path will be created if it doesn’t exist.
	$rc = WriteValue("HKCU\Software\Kixtart", "DateLastFlush", @DATE, "REG_SZ")
	$rc = WriteValue("HKCU\Software\Kixtart", "TimeLastFlush", @TIME, "REG_SZ")
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.