Create a dynamic group by email address (not includes 2nd email address)
I've created a dynamic group from powershell as below, but it also shows the user who's the 2nd email address is @abc.com.
So how can exclude the user has 2nd email address from the group?
New-DynamicDistributionGroup -Name "ACB All Users Dynamic Group" -OrganizationalUnit xyz.lftltd.net/HKG/Groups -RecipientContainer lftltd.net -PrimarySmtpAddress
[email protected] -RecipientFilter {(EmailAddresses -like
'*@abc.com') -and (RecipientType -eq 'UserMailbox') -and (CustomAttribute9 -ne 'Resigned') -and (Title -ne 'System Mailbox')}
Many thanks.
Hi Timothy,
Besed on my test, to filter the recipients based on the second emailaddresses seems difficult, because there is a limit to the syntax of RecipientFilter, it's hard for me to divide the results of the property emailadresses and filter
the recipient based on the first one.
In addition, to get all the recipients from the dynamic group, please refer to the script below:
$ddg = Get-DynamicDistributionGroup ITUsers
Get-Recipient –RecipientPreviewFilter $ddg.RecipientFilter
And we can usually filter the emailaddress from get-emailbox like this:
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Similar Messages
-
How to create a dynamic group to fetch "Managers" for members of another group?
Hi
We have a request to created 2 dynamic group. One group with all india employees and another group will managers of all india emnployees [Manager who may be out of india as well].
We created first group. But 2nd group failed for below filter
"/Person[ObjectID = /*[ObjectID = '9b3009a1-0e24-4d43-bc9e-9f7a46910f0d']/ComputedMember]/Manager"
We could get appropriate results while running the query from powershell script. But failing when trying to update the group filter.
We are getting below error while creating this criteria\dynamic group
Please help provide solution.
Microsoft.ResourceManagement.Service: System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Microsoft.ResourceManagement.FilterEvaluation.Language.MembershipCondition.Create(QueryFilter queryFilter, Int32[]& membershipConditions)
at Microsoft.ResourceManagement.ActionProcessor.FilteredResourceActionProcessor.FilteredResourceActionProcessHelper.DoPreProcessRequest(RequestType request)
at Microsoft.ResourceManagement.ActionProcessor.FilteredResourceActionProcessor.PreProcessRequestFromAttribute(RequestType request)
at Microsoft.ResourceManagement.ActionProcessor.ActionDispatcher.PreProcessRequestFromAttribute(RequestType request)
at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(CreateRequestDispatchParameter dispatchParameter)
at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(UniqueIdentifier requestor, UniqueIdentifier targetIdentifier, OperationType operation, String businessJustification, List`1 requestParameters, CultureInfo locale, Boolean
isChildRequest, Guid cause, Boolean doEvaluation, Nullable`1 serviceId, Nullable`1 servicePartitionId, Boolean maintenanceMode, String synchronizationSequenceIdentifier)
at Microsoft.ResourceManagement.WebServices.RequestDispatcher.CreateRequest(UniqueIdentifier requestor, UniqueIdentifier targetIdentifier, OperationType operation, String businessJustification, List`1 requestParameters, CultureInfo locale, Boolean
isChildRequest, Guid cause, Boolean doEvaluation, String synchronizationSequenceIdentifier)
at Microsoft.ResourceManagement.WebServices.ResourceManagementService.Create(Message request)
Aswathy Raj<Going through old threads>
Look at the Unsupported Filter Definitions list here:
http://blog.msresource.net/2011/10/06/set-and-group-criteria-filters/
http://technet.microsoft.com/en-us/library/ff356871(v=ws.10).aspx
David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html -
I am trying to use Panorama for the first time. I can successfully create a tab group, but Firefox does not remember it. When I view a new web page and try to use "add to group" I am redirected to the app tab I created for Google Calendar. I am using Windows 7 64x with Firefox as my default browser.
Are there any know issues with the apps tap and Panorama?I have a somewhat related problem running FF7 on WinXP32, specifically concerning your ''I can successfully create a tab group, but Firefox does not remember it.''
When I reopen FF, I find FF
* ''sometimes'' does not remember all tab groups.
* ''often'' seems to move at least 1 tab from one group to another.
''kursiver Text''
I am new to using this tab grouping feature, and I have not identified a specific and consistent misbehavior yet. -
Create Dynamic groups with multiple criteria
Hello,
I want to create a dynamic group of sql computers in a particular domain.
What should be the criteria?
System creates this:
((object is windows computer and (dns domain name equals contoso.com) and true) OR (object is SQL computers and (display name matches wildcard *) and True))
How can I set to below?
((object is windows computer and (dns domain name equals contoso.com) and true)
AND (object is SQL computers and (display name matches wildcard *) and True))
ThanksUse
the link that Blake already supplied to the site of Jonathan and use this XML part.
Replace the XXXXXXXXXX of course with the name of your class/group. Don't forget to add a reference to the SQL Server Core Library Management Pack.
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$MPElement[Name="XXXXXXXXXX"]$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</RelationshipClass>
<Expression>
<Contains>
<MonitoringClass>$MPElement[Name="MicrosoftSQLServerLibrary!Microsoft.SQLServer.DBEngine"]$</MonitoringClass>
<Expression>
<RegExExpression>
<ValueExpression>
<HostProperty>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<Property>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/DNSName$</Property>
</HostProperty>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>domain.(dev|net)/Pattern>
</RegExExpression>
</Expression>
</Contains>
</Expression>
</MembershipRule>
</MembershipRules>
</Configuration> -
Hi,
I'm trying to get a dynamic group working with the oracle directory server enterprise edition 11.1.1.5.0 .
I've created a dynamic group like this:
dn: cn=employees,ou=groups,dc=example,dc=com
cn: employees
objectclass: top
objectclass: groupOfURLs
ou: groups
memberURL: ldap:///ou=people,dc=example,dc=com??sub?(uid=*)
but when I check for the membership, I'm just getting the dn of the user with uid = "me", but nothing else.
ldapsearch -h localhost -p 389 -D "cn=Directory Manager" -w password \
-b dc=example,dc=com "(uid=me)" isMemberOf
There was a similar question like that in the forum, but no useful answer.
Does anyone know how dynamic groups work correctly?
best regards, solst_iceHi,
Ismemberof is supported for static groups only in DSEE. Dynamic group are group definition that client apps can retrieve but there is no built-in membership evaluation in the core server.
You might want to consider Oracle Unified DIrectory that support ismemberOf for static and dynamic groups
See http://docs.oracle.com/cd/E37116_01/index.htm and Managing Users and Groups - 11g Release 2 (11.1.2)
Regards,
-Sylvain -
Alert Subscriptions - creating subscriptions for groups of computers and alerts from monitors
I've run into something kind of odd.
We want to "tone down" some of our alerts. Let me explain.
We monitor, roughly, 300 servers. We created an alert subscription to notify us of alerts for the monitor "Computer Not Reachable".
We found that we often received false positives. I made sure our check interval was 60 seconds and the heartbeat was set to 3 missed heartbeats and then set the delay to a period of time.
That worked. However, we wanted to change the delay based on the server "group". Example: Production group and Test Group. For production, delay 5 minutes, Test, delay 30 minutes.
As soon as tried to add the group criteria to the alert subscription, notifications ceased to function for those alerts. The alerts still occurred, but the notifications were never delivered.
So, I created new subscriptions and new groups as a test. Each time, if I included a group in the criteria, the alert notification failed.
Example:
Condition: Raised by any instance in a specific group. Checked, group name: Test
Condition: created by specific rules or monitors. checked, monitor: "Computer Not Reachable"
Subscriber: [email protected]
Channel: smtp channel set up to a relay
Alert Aging: 30 minutes (have set this as low as 5 minutes and send without delay).
In each case, if I remove the condition of group, the notification is sent.
Why would this behavior occur?Thanks Scott. I've tried this both with the computer object and the health service watcher object.
What I'm doing is trying to create a dynamic group based on OU. So, right now, the groups include the computer objects. If I view group members, the group membership does populate ok with all of the machines from the targeted OU's for the dynamic
membership.
This is an example of the dynamic membership conditions I'm trying to create:
( ( Object is Windows Server AND ( Organizational Unit Equals OU=Test,OU=Servers,DC=domain,DC=local ) OR ( Organizational Unit Equals OU=Development,OU=Servers,DC=domain,DC=local) ) AND ( Object is Health Service Watcher AND ( Display Name Greater than empty
value ) AND True ) )
However, I'm noticing that the dynamic membership includes health service objects from all windows servers from all OU's and ignores the OU membership conditions. But, I don't think that has anything to do with the failed notifications.
I could be wrong.
I've also tried the following with the same problem:
( ( Object is Health Service Watcher AND ( Health Service Name Greater than empty value ) AND True ) AND ( Object is Windows Server AND ( Organizational Unit Equals OU=Test,OU=Servers,DC=domain,DC=local ) OR ( Organizational Unit Equals OU=Development,OU=Servers,DC=domain,DC=local
Both of the above groups populate both the computer and health service objects when viewing the members of the group with the problem being it adds all health server objects instead of limiting it to the OU's specified.
So, that lead me to a dynamic group membership of:
( Object is Windows Server AND ( Organizational Unit Equals OU=Test,OU=Servers,DC=domain,DC=local ) OR ( Organizational Unit Equals OU=Development,OU=Servers,DC=domain,DC=local ) )
This is what I have now (this morning) after adding the condition for the class.
So, for the alert subscription rules, I added the group and the class and the monitor name:
Condition: Raised by any instance in a specific group. Checked, group name: Test
Condition: Raised by any instance of a specific class: Health Service Watcher
Condition: created by specific rules or monitors. checked, monitor: "Computer Not Reachable"
Subscriber: [email protected]
Channel: smtp channel set up to a relay
Alert Aging: 30 minutes (have set this as low as 5 minutes and send without delay).
But, again if the group condition is present, the alert subscription doesn't work.
So, I suppose what I need to do is find a way to ensure I can build a group that includes health service objects from computer objects reside within specific OU's. Perhaps I'm going about the dynamic membership conditions incorrectly?
Thanks
Ted -
Newbie Dynamic Group by clause
Example
create table test( awhite numeric(6,0)
, DMonth numeric(2,0)
, Goalnumber numeric(2,0)
, Objnumber numeric(2,0));
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(5,6,1,1);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(8,6,1,2);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(12,6,2,1);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(16,10,2,1);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(4,10,2,1);
===========================
I need this to be ONE query with a parameter
Select SUM(Awhite) SWhite
,DMonth
,CASE WHEN &groupbyobj<2 THEN
to_number('99')
ELSE
Goalnumber
END Goalnumber
,CASE WHEN &groupbyobj<3 THEN
to_number('99')
ELSE
Objnumber
END Objnumber
FROM Test
GROUP BY Goalnumber,Objnumber,DMonth
============================
So when the groupbyobj=3, I want the output to look like
SWHITE DMONTH GOALNUMBER OBJNUMBER
5 6 1 1
8 6 1 2
12 6 2 1
20 10 2 1
==============================
So when the groupbyobj=2, I want it grouped by GOALNUMBER
SWHITE DMONTH GOALNUMBER OBJNUMBER
13 6 1 99
12 6 2 99
20 10 2 99
So when the groupbyobj=1, I want it grouped by DMonth
SWHITE DMONTH GOALNUMBER OBJNUMBER
25 6 99 99
20 10 99 99
I ADDED the above "99" to the output above. I could not get my query to output that.
QUESTION- How can I create A DYNAMIC Group by clause based on the parameter
(Groupbyobj) Selected?
TIA
Steve42I noticed I got the numbers 1 until 3 just the other way round, so here is a new version.
SQL> var P_GROUPING_SET number
SQL> exec :P_GROUPING_SET := 1
PL/SQL-procedure is geslaagd.
SQL> select sum(awhite) swhite
2 , dmonth
3 , nvl(goalnumber,99) goalnumber
4 , nvl(objnumber,99) objnumber
5 from test
6 group by dmonth
7 , rollup(goalnumber,objnumber)
8 having case grouping_id(goalnumber,objnumber)
9 when 0 then 3
10 when 1 then 2
11 when 3 then 1
12 end = :P_GROUPING_SET
13 /
SWHITE DMONTH GOALNUMBER OBJNUMBER
25 6 99 99
20 10 99 99
2 rijen zijn geselecteerd.
SQL> exec :P_GROUPING_SET := 2
PL/SQL-procedure is geslaagd.
SQL> select sum(awhite) swhite
2 , dmonth
3 , nvl(goalnumber,99) goalnumber
4 , nvl(objnumber,99) objnumber
5 from test
6 group by dmonth
7 , rollup(goalnumber,objnumber)
8 having case grouping_id(goalnumber,objnumber)
9 when 0 then 3
10 when 1 then 2
11 when 3 then 1
12 end = :P_GROUPING_SET
13 /
SWHITE DMONTH GOALNUMBER OBJNUMBER
13 6 1 99
12 6 2 99
20 10 2 99
3 rijen zijn geselecteerd.
SQL> exec :P_GROUPING_SET := 3
PL/SQL-procedure is geslaagd.
SQL> select sum(awhite) swhite
2 , dmonth
3 , nvl(goalnumber,99) goalnumber
4 , nvl(objnumber,99) objnumber
5 from test
6 group by dmonth
7 , rollup(goalnumber,objnumber)
8 having case grouping_id(goalnumber,objnumber)
9 when 0 then 3
10 when 1 then 2
11 when 3 then 1
12 end = :P_GROUPING_SET
13 /
SWHITE DMONTH GOALNUMBER OBJNUMBER
5 6 1 1
8 6 1 2
12 6 2 1
20 10 2 1
4 rijen zijn geselecteerd. -
ZCM 11.2.3a dynamic groups summery incorrect
Hi there
When creating a dynamic group for Agent version = 10.3.1.34138 (example)
I click the preview and it shows me 20 members.
Going to each of those devices in the preview list shows me the correct agent version as per the filter. (10.3.1.34138)
However after applying and looking at the "members displayed in the Summary" tab, it shows 5000 odd members.
I have tried this with a few dynamic groups and changed the agent version.
I know it will only show the first 200 in the preview tab, but even when there are a few (50 members),
after applying or resetting and looking at the Summary, a completely different no is displayed.
Any ideas. - Don't recall having this with ZCM 11.2 We are on 11.2.3a at the moment.
Thanks
MarkOriginally Posted by markvh
Hi there
When creating a dynamic group for Agent version = 10.3.1.34138 (example)
I click the preview and it shows me 20 members.
Going to each of those devices in the preview list shows me the correct agent version as per the filter. (10.3.1.34138)
However after applying and looking at the "members displayed in the Summary" tab, it shows 5000 odd members.
I have tried this with a few dynamic groups and changed the agent version.
I know it will only show the first 200 in the preview tab, but even when there are a few (50 members),
after applying or resetting and looking at the Summary, a completely different no is displayed.
Any ideas. - Don't recall having this with ZCM 11.2 We are on 11.2.3a at the moment.
Thanks
Mark
I don't believe the display results are always in order, it's kinda like LDAP where it returns the first X that it finds, so the results may be different every time. (the preview portion).
At least that's what it does here (the group total is correct, but the preview/display is not in order alphabetically or anything and randomly changes) -
Dynamic group membership biased on service
I need to create a dynamic group for systems with the DFS service installed BUT not if DFS is there as part of AD replication.
Any suggestions for a formula?
tconnersHi Tconners,
I am not so good in AD DFS But,
Do you have the DFS management pack installed on your SCOM ?
If yes does it not creating any group from the MS recommended management pack like Active directory creates one and pulls all the Domain controllers in the
group.
http://www.microsoft.com/en-us/download/details.aspx?id=14669
Also look at this
http://blogs.technet.com/b/operationsmgr/archive/2010/02/03/now-available-the-dfs-namespaces-management-pack-for-system-center-operations-manager-2007.aspx
Gautam.75801 -
Dynamic group spark with scroller component
Hi,
I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
Many Thanks in advanceHi,
I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
Many Thanks in advance -
Dynamic group spark with scroller
Hi,
I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
Many Thanks in advanceHi Shailendra, the articles below should provide some guidance on how to go about this:
http://www.systemcentercentral.com/creating-dynamic-computer-groups-using-regular-expressions-in-opsmgr/
http://social.technet.microsoft.com/wiki/contents/articles/7205.operations-manager-dynamic-group-examples.aspx
https://technet.microsoft.com/library/hh212842.aspx
If you've found this post helpful, please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
MrChiyo | My blog: Technical | Twitter: MrChiyo -
I create 5 Dynamic Group and 1 Universal Distribution Group. I add 5 Dynamic Group in 1 Universal Distribution Group. If i view members in every all correct, but if i run in powershell Get-DynamicDistributionGroup/Get-Recipient -recipientPreviewFilter
- i view all users in domain with mailbox. How fix this?Hi,
Do you mean that you can use EAC to view members in 5 dynamic distribution groups respectively and the preview shows correct users, but shows wrong when using EMS?
Please use the following command in EMS to preview the list of members of your dynamic distribution group:
To view Group1:
$Group1 = Get-DynamicDistributionGroup "Group1"
Get-Recipient -RecipientPreviewFilter $Group1.RecipientFilter
To view Group2:
$Group2 = Get-DynamicDistributionGroup "Group2"
Get-Recipient -RecipientPreviewFilter $Group2.RecipientFilter
Please check the results with the preview in EAC:
1. In the EAC, navigate to Recipients > Groups.
2. Select a dynamic distribution group.
3. In the details pane under Membership, the number of people who received the last message sent to the dynamic distribution group is displayed.
Regards,
Winnie Liang
TechNet Community Support -
Getting all SQL servers in one dynamic group
Since the release of the SQL 2014 MP there are now 2 SQL server MP's, 1 just for 2014 and one that covers 2005,2008 & 2012. Does anyone know a way to create a dynamic group that includes all servers that have any SQL install on?
Hi,
Look at these posts:
http://scug.be/jan/2013/01/23/scom-excluding-items-from-a-group-based-on-hosted-roles/
http://blog.tyang.org/2015/01/18/creating-opsmgr-instance-group-computers-running-application-health-service-watchers/
Natalya
### If my post helped you, please take a moment to Vote as Helpful and\or Mark as an Answer -
Dynamic Group By Hardware Type
I don't think this is possible but I'll ask anyways. I want to create a dynamic group that looks to see if a workstation has a dvd rom drive. I am wanting to do this so I can associate dvd player software to the group.
Thanks,
MikeMshicks,
no, and I don't even see that in the 11.2 beta - there's no harm in
asking at http://support.novell.com/enhancement but obviously it
wouldn't be happening any time soon... :(
Shaun Pond -
Dynamic Group pull from static group
We've been restructuring our distribution groups to utilize dynamic groups for some areas. We're finding this minimizes the amount of confusion and management we have to perform on the groups.
What I'd like to know is if it is possible to create a dynamic group that pulls from a static group. An example, we have a static group made up of all members of a specific group. What I'd like to accomplish, is to create a dynamic group that
would pull from members from this group based on their Job Title. Example: Static Group members with Title PartnerAccording to this document, MemberOf is a filterable property. You're welcome to give it a try.
https://technet.microsoft.com/en-us/library/bb738157(v=exchg.150).aspx
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Maybe you are looking for
-
The old links refered to in threads before the change over do not work. Is this just another example of poor design of a deadend street, or is there a work around?
-
Dual processor / performance
Hello world! Is anyone running a dual processor or dual core procesor with a jmf application or even JMStudio? on Windows or Linux. Could you tell us 1) The sort of performance gain you get compaired to single cpu 2) The type of cpu you use 3) Do you
-
Limiting content-list height of choicebox
I want to limit the list-height of the choicebox for example to select an year from the choice box the list-height goes beyond the screen so how to limit the content-list height of the choice box?? Edited by: user10439924 on Jun 19, 2011 2:33 AM
-
Best combination of technologies for Java db-supported web application?
Hi everyone! I was given the task to develop a Java database-supported web application and am now wondering what combination of technologies would best fit my requirements. Basically, I am supposed to transform an "Excel-based" application into a Jav
-
Paypal is duplicating on EVERY photo in my galery - help!!! Please!!!
I am a photographer looking to sell my photos through the web site I created on IWeb using Paypal. Here is my problem, I will give you an example: Your at my home page. You choose the Gallery/Web Page "Belgium" Inside "Belgium" you pick the gallery n