0 votes

Hello,

I noticed that if you target the same scope with more than one property pattern, the oldest one will apply for conflicting attributes.

As I am doing some inheritance (for some sub scope I do have conflicting property pattern) this is not really convienient. It would be great if the property pattern could be applied like GPO, the closest to the object object wins.

Example:

Property pattern A
DisplayName is required
Name must match [a-z]
Scope: OU=Test

Property pattern B
DisplayName is not required
Scope: OU=Demo,OU=Test

If you create A before B, the displayname will be required for object created in OU=Demo,OU=Test instead of not being required.

In one of my PowerShell script I wanted to do a modulo, but as the operator is %, which is used for replacement by adaxes. Do you have a workaround for this?

Thank you

by (750 points)

1 Answer

0 votes
by (216k points)

Hello,

As to the Property Patterns issue, we already have a similar request in our TODO list. The issue of selecting among conflicting Property Patterns will be resolved in one of the future releases.

As to the modulo operator, whenever you need a percent sign (%) in a PowerShell script executed by Custom Commands, Business Rules or Scheduled Tasks, just use a double percent sign (%%), for example:

$myValue = 10%%4
0

Thanks, as always it is very helpful!

0

Hi

What is the status on this issue?

I am using the double percentage syntax for modulo, but this causes a error popup when I try to save, which says:

The script contains errors.

Would you like to continue anyway?

The script do work if click "Ok" and save with the error, but having to repeatedly click "Ok" one extra time every time I change something in the script quickly becomes tedious. But that is not a particularly significant problem, what might cause actual trouble is that this might mask actual errors.

This is the error message btw:

You must provide a value expression on the right-hand side of the '%' operator.

And this is the line of code causing this:

$remainder = $number %% $chars.Length

0

Hello Martin,

What is the status on this issue?

The status has not changed.

I am using the double percentage syntax for modulo, but this causes a error popup when I try to save

The issue was fixed in Adaxes 2018.1.

0

Ok, thank you for the reply.
We are currently using version 2017.1.

Related questions

0 votes
1 answer

Hello Again, We are experiencing a few issues with Exchange 2003: - When the primary mail address is changed, the mail attribute is not updated I could workarround ... uncommited data would solve this issue and add flexibility. Thank you in advance Pierre

asked Sep 13, 2013 by Pierre (750 points)
0 votes
1 answer

Dear support, Property patterns for date are currently barely usable. You can define that the value must be: - One of the following values only - Must not contains the ... but it would look cleaner if the property pattern could handle that natively. Cheers !

asked Mar 8, 2019 by Pierre (750 points)
0 votes
1 answer

It would be good to have a selectable column for the tasks schedule pane. This would allow us to easily show tasks scheduled dates and give us the ability to sort by the ... case it would be good to sort all of these password resets by their scheduled date.

asked 2 days ago by Moodie007 (60 points)
0 votes
1 answer

the script repo examples are almost entirely written in ADSI, however powershell is now far more widely used, is it possible to have all scripts written in both ADSI and powershell.

asked Jan 5 by i*windows (260 points)
0 votes
1 answer

I have a specific computer property pattern for three different types of computers, which live in three different OUs and are in three different business units. I will have ... How do I enforce a property pattern for a specific business unit at creation time?

asked Jul 17, 2023 by bennett.blodinger (60 points)
3,356 questions
3,055 answers
7,799 comments
545,171 users