The missing double quotes are causing an exception. Please add the double quotes to LAPS script. `foreach ($comp in (Get-ADComputer -SearchBase "$CustomProperty.SearchBase$" -filter *))`
The missing double quotes are causing an exception. Please add the double quotes to LAPS script.
foreach ($comp in (Get-ADComputer -SearchBase "$CustomProperty.SearchBase$" -filter *))