Assistance adding ADGroupMember for multiple variables

Zack,

welcome to the forums.

when you post code, error messages, sample data or console output format it as code, please.

Here you can read how that works: Guide to Posting Code.

You can go back and edit your existing post. You donโ€™t have to create a new one. :wink:

Thanks in advance.

This:

if(($Office -eq 'Location1') -and ($EmployeeType -eq 'Contractor' -or 'Intern' -or 'Temp')){

cannot work!! :wink:

If you want to combine multiple comparisons you have to compare each individual option to the variable explicitly. Like this:

if (($Office -eq 'Location1') -and ($EmployeeType -eq 'Contractor' -or $EmployeeType -eq 'Intern' -or $EmployeeType -eq 'Temp')) {