Set-LapsADComputerSelfPermission : The search filter is invalid.

Anonymous
2023-11-22T16:18:33+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.

Windows for business | Windows Server | Directory services | Active Directory

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-11-23T02:28:41+00:00

    Hello create_share,

    Thank you for posting in Microsoft Community forum.

    Did you run Update-LapsADSchema first?

    If so, is the Test (Set-LapsADComputerSelfPermission -Identity Test) an Organizational Unit (OU) name with Computer devices?

    *Secondly, how to enable permissions for an OU having a space in it? For Example "Desktops HO"?*A: You can try to use as below

    Set-LapsADComputerSelfPermission -Identity "Desktops HO" Or Set-LapsADComputerSelfPermission -Identity "OU=Desktops HO,DC=domain,DC=com"Get started with Windows LAPS and Windows Server Active Directory | Microsoft Learn ****

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-11-23T23:39:11+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 problem or something else because then it accepted the below command

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

    Thanks.

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-11-24T01:19:04+00:00

    Hello create_share,

    Good day!

    I am so glad that the problem was resolved.

    If the answer is helpful, please click "accept answer".

    Have a nice day!

    Best Regards,
    Daisy Zhou

    0 comments No comments