0

I am creating a script to check if there is no match in the name of the pc's in my csv file (source) and the AD and recover the names of pc's that do not match with the AD in order to extract them in a csv file.

But also to do in the other direction, that is to say to check the names of the pc contained in the AD which do not have any correspondence with the csv file and to extract the whole in the same csv file.

In order to update our inventory and to make a more precise follow-up of the PCs.

I tried with the like and notlike parameters but it doesn't output what I want, either I get the name that matches between the AD and the csv file or I get the entire contents of the csv file.

Remi
  • 1
  • 1
    Please post the code that is failing so others can review it - otherwise any responses you get will be just guesswork. – boxdog Dec 07 '22 at 17:05
  • @boxdog, I second the comment, but I don't want to discourage the community from asking questions, see this answer, https://stackoverflow.com/questions/51405381/matching-strings-in-powershell . And provide the code you're developing. – MZM Dec 07 '22 at 17:15

0 Answers0