Get-ADGroup does not return anything if search string is stored in a variable

Welcome Forums General PowerShell Q&A Get-ADGroup does not return anything if search string is stored in a variable

Viewing 1 reply thread
  • Author
    Posts
    • #227224
      Participant
      Topics: 2
      Replies: 4
      Points: 50
      Rank: Member

      This one has me flummoxed. Here is what i am doing.

      1. Save search string in a variable

      2. Query using Get-ADGroup cmdlet, does not return anything

      3. If i run Get-ADGroup using the exact search string, result obtained.

      What am i doing wrong ?

      • This topic was modified 8 months, 2 weeks ago by Prakash Jha.
    • #227257
      Participant
      Topics: 10
      Replies: 2480
      Points: 6,537
      Helping Hand
      Rank: Community MVP
Viewing 1 reply thread
  • The topic ‘Get-ADGroup does not return anything if search string is stored in a variable’ is closed to new replies.