IFMEMBER – Windows CMD Command

Find out if the current user is a member of one or more groups.

The %ERRORLEVEL% return code shows how many of the listed groups the currently logged-in user is a member of.

To also test for nested permissions use VBScript or PowerShell Get-adGroupMember.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *