The search filter is invalid (Windows Laps)

create share 676 Reputation points
2023-11-22T16:17:19.7333333+00:00

Hi,

I have enabled Windows Laps in AD but when I try to run the below command

Set-LapsADComputerSelfPermission -Identity Test

I am getting "Set-LapsADComputerSelfPermission : The search filter is invalid."

Secondly, how to enable permissions for an OU having a space in it? For Example "Desktops HO"?

Thanks.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,962 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Phil Dormann 15 Reputation points
    2023-11-23T15:54:31.93+00:00

    For me it worked to use the distinquished name of the OU for example:
    Set-LapsADComputerSelfPermission -Identity "OU=Company,DC=exoip,DC=local"

    You can find this if you right click the OU you want to use LAPS for and click on properties. There you have to go on attribute editor. The first thing there should be the distinquished name. Maybe this helps you if not I dont know another solution.

    3 people found this answer helpful.
    0 comments No comments

  2. create share 676 Reputation points
    2023-11-23T23:40:32.22+00:00

    The problem was resolved after I applied the Group Policy on the main domain container instead of the OU. Not sure if this was the actual reason or something else because then it accepted the below command

    Set-LapsADComputerSelfPermission -Identity "OU=Desktops HO,DC=domain,DC=com"

    Thanks.

    0 comments No comments

  3. DaleatEMS-0938 0 Reputation points
    2024-10-03T18:59:47.2+00:00

    found that it was necessary to wrap the -Identity value in "" much like shown in the above successful examples - my early failed attempts lacked only that

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.