syntax01: It's OK.
syntax02: It seems Start-ComplianceSearch "RemoveMessage_John"
will not be reported as error but in my test it's not starting the search, use Start-ComplianceSearch -Identity "name"
instead.
syntax03: An easy method is to manually add them to a group(GroupA) in ECP and run syntax1 with "-Exchangelocation GroupA", which should work for 20 users.
Or you write a script to add group members, for example: Import-CSV FileName.csv | ForEach {Add-DistributionGroupMember -Identity "GroupName" -Member $_.Name}
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.