Could someone help me with the following code,please:

IF INGROUP("\\@WKSTA\Administrators") <> 1 or INGROUP("\\@WKSTA\Power Users") <> 1

This code works only if the user belongs to the workstation's Administrators group. If I remove and put the user in the Workstation's Power Users group then the code doesn't work.

This is to be used as part of a logon script to check whether the user belongs to EITHER of the two local groups mentioned.

Thanks.