Hi All i am using the below query but still i am getting in output IT manager which i am not supposed to, experts guide me

Hi All i am using the below query but still i am getting in output IT manager which i am not supposed to, experts guide me

Hi,
Thanks for your question.
((description -notlike 'System Administrator') -or (description -notlike 'IT Manager'))
You need to replace the "-or" with "-and".
If you use "-or", it will only match one of two conditions.
Best regards,
Young Yang
what the reasone for this fake discussion?
question was solved long time ago
Hi,Very happy to get your reply.
Because this is a newly created section, we aim to enliven the atmosphere of the forum and try to help some new users how to post, and share some previous examples.
YoungYang, is the any plans for migration Technet/MSDN topics here? Many disscussions is only one unique place where can be found solutions for odd problems
So if forum will be just turned off lots of them will be lost
Oh,yes.You can refer to the information in the link, I believe they will give you the answer.
https://social.technet.microsoft.com/Forums/en-US/3069af6c-e7ef-4ce1-8232-d15654fa2cc5/announcement-8220windows-powershell8221-forum-will-be-migrating-to-a-new-home-on-microsoft?forum=winserverpowershell
28 people are following this question.