AD restoration powershell command

Welcome Forums General PowerShell Q&A AD restoration powershell command

Viewing 2 reply threads
  • Author
    Posts
    • #209109
      Participant
      Topics: 12
      Replies: 21
      Points: 135
      Rank: Participant

      Running the below command gives me no output, when I actually tested and ensure that id is present. I am logging in with domain admins right, so that is not the issue. Am I missing anything

      Get-ADObject -filter ‘isdeleted -eq $true -and Name -like “test”‘ -IncludeDeletedObjects

    • #209415
      Participant
      Topics: 24
      Replies: 172
      Points: 557
      Helping Hand
      Rank: Major Contributor

      try this

      Get-ADObject -filter {isdeleted -eq $true -and Name -like “*test*”} -IncludeDeletedObjects
    • #210117
      Participant
      Topics: 12
      Replies: 21
      Points: 135
      Rank: Participant

      try this

      Get-ADObject -filter {isdeleted -eq $true -and Name -like “*test*”} -IncludeDeletedObjects

      thanks this works…and I have to run powershell in admin mode.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.