Trying to filter the result of get-qadgroup

hello , 
I'm trying to filter the results of a simple get-qadgroup command, to only list groups that have a specific OU as part of the DN, but I dont understand why my filter is not working . Any pointers or tips would be greatly appreciated. 
get-qadgroup -sizelimit 0 | Where-Object {$_.DN -contains "OU=service"} | ft name,DN

got it .. i changed it to -like and added the * before and after the OU=Service 
get-qadgroup -sizelimit 0 | Where-Object {$_.DN -like "*OU=service*"} | ft name,DN

Similar Messages

  • My computer recently froze whilst updating Itunes, and has subsequently removed Itunes from my computer. When i have tried to reinstall the programme, i get the following error message "Invalid Drive:G:\" any ideas?

    My computer recently froze whilst updating Itunes, and has subsequently removed Itunes from my computer. When i have tried to reinstall the programme, i get the following error message "Invalid Drive:G:\" any ideas?

    Try the following user tip:
    "Invalid drive X:\" install errors

  • How can i pass a parameter to the query to filter the result of this lookup

    Hello,
    i'm developping a web application with JDeveloper 10.1.2 and JHeadStart.
    i realy need to know how can i filter the lookup (LOV) query result.
    in other word, when i click on the lookup, it show all the row that exist in may data base table.
    what i want is how can i pass a parameter to the query to filter the result of this lookup ?
    Thank you

    Hi,
    have a look if this helps
    http://oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
    Frank

  • Apple ipad2 is recognized bei itunes in "wartungszustand". when i click reset on itunes and itunes tries to reset the ipad i get the information not possible with code 3194

    Apple ipad2 is recognized bei itunes in "wartungszustand". when i click reset on itunes and itunes tries to reset the ipad i get the information not possible with code 3194

    See if this helps : http://support.apple.com/kb/TS3694#error3194

  • Filter the results set for custom iviews in SAP MDM

    We have a scenario where based on the user name/user role we want to filter the results retrieved by an search result iview developed for accessing data from SAP MDM Repository.
    E.g.
    We have a lookup table called Plants which contains master data pertaining to  manufacturing plants.
    The portal user P00100xxyy is responsible for maintaining master data for a plant 1101. However, the plant lookup contains data for other plants as well.
    We would like to prevent the user P00100xxyy to see/modify data for other plants in the table.
    We have explored the core MDM functionality of security/constraints. It does not provide row level granularity and we are hoping that the iview approach can help us achieve row level filters.

    Hi Rajni thanx for ur prompt reply
    The actual problem is that :
    we have approx near about 100 Account Group, so it would become very complex to replicate same condition 100 times
    AND
    these account group may keep on increasing so even maintenance point of view it would be hard to maintain.
    can u tell me some other way to do it, i mean is there any other feature by which we can perform validation in MDM.
    Regards
    Kuldeep

  • I have created a DVD via iMovie and burned several copies. When played the DVD's will stop and display a message SKIPPING DAMAGED Part. It is not the DVD. When trying to export the project, I get an error message.

    I have created a DVD via iMovie and burned several copies. It is a large file. When played the some DVD's will stop and display a message SKIPPING DAMAGED Part but will not resume. Some work fine.  It is not the DVD. I have burned from several batches. When trying to export the project, I get an error message with the following message: The project could not be prepared for publishing because an error occured (-108).

    TV video typically is copyrighted content.  We'd be breaking several rules trying to help you.  Good luck!

  • I have been running elements 12 for a few months now....today when I tried to open the editor I get " Visual C  C  runtime error. I can open the organizer but not the editor

    I have been running elements 12 for a few months now....today when I tried to open the editor I get " Visual C  C  runtime error. I can open the organizer but not the editor

    I'm keen to know if you get a response to this.  I've been running Elements 12 for a year now, and suddenly my Editor is not working.  I'm running Windows 8.1 and just get a message that says "The Editor is not working".    Not very helpful.

  • Hi, I have Mac with Snow Leopard and was trying to purchase Lion , so I can move to I cloud, when trying to buy the app I get a message that a minimum 2gb of memory is required. I went check the hard disck info and it says available memory 20gb :-(

    Hi, I have Mac with Snow Leopard and was trying to purchase Lion , so I can move to I cloud, when trying to buy the app I get a message that a minimum 2gb of memory is required. I went check the hard disck info and it says available memory 20gb :-(

    Apple Logo, left hand side of the menu bar, About this Mac. It should be right there. If not then More Info, Sys Info.
    But it would seem you don't have 2GBs installed and more then likely both RAM slots are already filed. So you just need to buy more RAM in a pair. That could be 2 1GBs chips or if your Mac can have more then that then 2 2 GB chips or 2 4GB chips.
    Get your model # and go to Crucial.com and use their memory search to find out how much your Mac can have installed and the price for it. I suggest you install as much as it can take. Cost is very low on RAM these days.

  • I've got a iPod classic 80g I've got loads of pictures on there and I want to get them off. I've tried something where the files I get off come up as thumbnails which I can't open. Is there any way of getting them off and viewing them as a normal photo?

    I've got a iPod classic 80g I've got loads of pictures on there and I want to get them off. I've tried something where the files I get off come up as thumbnails which I can't open. Is there any way of getting them off and viewing them as a normal photo?

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • After installation trying to start the portal but get credential error

    Hi
    I download the SAP Portal 7 and installed it as typical installation on Win XP. During the install it was asked from the wizard to put the master password. I did it and the installation was successfully finisched. Trying to start the server from the administration console i was asked to authenticate and put the username and password. After typing of the credential data i get in a message box: "invalied credential, start faild: 2"  and the start of the server fail. I retyped and even reinstall the Portal 2 times to be sure that i do not make a mistake by typing the master password but each time i get the same error!!!!!
    I installed it later again as custom installation and step by step put all neccessary passwords and the result was the same
    Please help to resolve this problem and get the portal a start
    Thank you for your help

    Hi
    Once you power on your unit keep tapping the F10 key go to Diagnostics menu Run the Hard drive & Memory test in case any test fails you need to replace the part. If both the test passes please let me know.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Error while trying to visualize the results from algorithms (connect with Rserver)

    Hello all, I'm trying to execute Apriori to create a relation purchase between products.
    I execute the algorithm and it work perfectly, but when I change the view to change the results, it appears the following error:
    Does anyone knows what might be happening?
    Regards

    Hi Jugren,
    Good to know you were finally able to run the algorithm .
    Regarding the error that you are getting, I too got a similar one and I followed the steps below.
    You need to maintain some parameters in the file indexserver.ini and xsengine.ini if using XSJS
    Maintain the below parameters:
    cer_timeout default is 300 seconds. Increase it to some 3000 secs.  This parameter is particular important, since it defines the maximal run time allowed for a single R function execution.
    cer_rserve_addresses Has to be set as follows "host1:port1" where host and port are the places where your R-Serve is installed
         ○ 
    cer_rserve_maxsendsize: maximum size of a result transferred from R to SAP HANA (in Kbytes). Make sure its 0 (no limit)
    It should work for you as well.

  • Using the result of Get-ADOrganizationalUnit into an array.

    Hello all!
    I'm hoping you can help me with the following challange. What I want to accomplish:
    I'm building a PowerShell script that will parse all the servernames from multiple OU's through the RDCman Set-Rdg script build by timdun @
    http://blogs.msdn.com/b/timid/archive/2013/03/25/rdcman-config-files-rdg.aspx. I'm doing this on a OU basis because this will give an better overview (treeview) in RDCman.
    So far I can accomplish this by naming each OU individually (see: $ouA, $ouB, etc). See the following script:
    $domain = "dc=domain,dc=subdomain,dc=address,dc=com"
    $ou1 = "FABRIC"
    $ou2 = "Servers"
    $outputfile = "c:\temp\hostnames.txt"
    Import-Module ActiveDirectory
    $ints = @($ouA, $ouB, $ouC, $ouD, $ouE, $ouF, $ouG, $ouH, $ouI, $ouJ, $ouK, $ouL, $ouM, $ouN, $ouO, $ouP, $ouQ, $ouR, $ouS)
    foreach ($i in $ints){
    $servername = Get-ADComputer -SearchBase "OU=$i,OU=$ou2,OU=$ou1,$domain" -Filter '*' | Select -Expand DNShostname
    $servername > $outputfile
    Get-content $outputfile | c:\temp\Set-Rdg.ps1 -Pattern '(..)' -Taxonomy $domain, $ou1, $i -nobackup
    To the question: I'd like to automate this process. I used the command Get-ADOrganizationalUnit command to give me a list of sub OU's.
    $oucollection = Get-ADOrganizationalUnit -LDAPFilter '(name=*)' -SearchBase "OU=$ou2,OU=$ou1,$domain" -SearchScope OneLevel | FT Name
    The result is als follows:
    Name
    OU1
    OU2
    OU3
    OU4
    etc
    My question is: how to rebuild the result from above so that I can use this in $ints (see script) so that i don't have to name each OU individually...
    Many thanks in advance!

    Hi j-tt,
    this should certainly work. However ... if instead of Name you select the distinguishedName, you could use the whole dn as searchbase, instead of the construct you are currently using. Here's an Example after some slight rewrite:
    # Import the Active Directory Modules
    Import-Module ActiveDirectory
    # Grab all sub-OUs of the Search-Base, then retrieve their DistinguishedNames and Names
    Get-ADOrganizationalUnit -Filter "*" -SearchBase "OU=Servers,OU=FABRIC,dc=domain,dc=subdomain,dc=address,dc=com" -SearchScope OneLeve | Select Name, DistinguishedName | ForEach{
    # Save OU into Variable
    $OU = $_.Name
    # For each OU found, get all contained computers, extract their DNSHostnames and pass those into the script
    Get-ADComputer -SearchBase $_.DistinguishedName -Filter "*" | Select -ExpandProperty DNSHostname | c:\temp\Set-Rdg.ps1 -Pattern '(..)' -Taxonomy "dc=domain,dc=subdomain,dc=address,dc=com", "FABRIC", $OU -nobackup
    I'll admit I might have gone a bit wild with the pipelines here :)
    Cheers,
    Fred
    Edit: Fixed my shortened Version to include the Taxonomy parameters
    There's no place like 127.0.0.1

  • Error "Data receive failed [Read timed out]" while trying to see the results from an algorithm

    Hello all,
    I finally got my PA running almost perfectly with HANA online mode.
    I tried to execute Apriori at a sample from my data, and then visualize the results. But after more then 2 hours waitting it to open, it gave me this error:
    Does anyone knows what it means?
    I have already changed the time out for 3000 (it was 300 originally).
    I thing it's pretty strange because I filtered to analyse only something about 200 thousand lines!
    Can anyone help me with that?
    Regards and thanks

    There is far too much whitespace in that code.
    Anyways, some comments.
    void act(BufferedReader src,String line) throws IOException // counting characters
       char[] arrayOfChars = line.toCharArray();
       for ( int i=0; i<(line.toCharArray().length);i++ ) { // length of the line
       ...Why are you calling toCharArray again? You already have a reference to the array.
       for ( int a=0; a<=freqsorted.length; a++){
          temp = new int[(freqsorted.length)+1];
          if(freqsorted[a]<freqsorted[a+1]){
             temp[a]=freqsorted[a];
             freqsorted[a]=freqsorted[a+1];
             freqsorted[a+1]=temp[a];
          System.out.println(freqsorted[a]);
       }Array indices go from 0 to array.length - 1. Your indices go from 0 to length + 1, where are you expecting to get those 2 extra elements from?

  • How to restrict / filter the results of a VO depending on dynamic value ?

    Hello,
    Under JDeveloper 11.1.1.3.0 I have some tables / views containing data related to several users.
    I have the VO in the Model project to define the queries.
    The problem for me is to filter "automatically" the results of these queries depending on the user logged in the application. I have its Userid which is a part of the primary keys of the tables I would like to query.
    I made a Search Form based on criteria but if I add the Userid in the criteria it adds the field on the search form, and I don't want this since I know the value and don't want it to be changed.
    Where can I do such this stuff ?

    After dropping the VO as search form, open the panelFormLayout in the structur window, select the fields you don't want the user to change and either hide them (visible="false") or delete the whole element.
    Timo

  • How to filter the result by using a Quarter fields

    How can i fiter the output by using the quarter field for example I want to display the output for letting date 07060801 and quarter 1(Q1-2007) thanks
    SELECT tab.description, tab.itmenum, tab.units, tab.countyname, tab.datelet,'Q'||tab.Quarter,
           tab.contid, tab.vendor, tab.vendorname, tab.quantity, tab.EngineersPrice ,
            (tab.EngineersPrice*tab.quantity) EngineersTotal, tab.vendorsPrice,
           (tab.quantity * tab.vendorsPrice) VendorsTotal
      FROM (SELECT   INITCAP (i.idescrl || '  ' || e.isupdes) description,
                     e.isupdes, i.idescrl, SUBSTR (e.eiitem, 1, 4)|| '.'|| SUBSTR (e.eiitem, 5, 9) itmenum,
                     e.eiitem, func_get_unit_name (iunits) units,
                     INITCAP (func_get_county_name (p.ccnty1)) countyname,
                     b.datelet,TO_CHAR(b.datelet, 'Q-YYYY') Quarter, p.contid, d.vendor, l.CALL, g.csecnum, e.iplineno,                         
                     SUM (e.iqty) quantity,
                     (TRIM (d.vendor) || ' : ' || INITCAP (v.vnamel)) vendorname,
                           (SELECT br.bidprice
                        FROM bidtabs br
                             --------------------Select Letting Dates-------------------------------
                       WHERE br.letting  between '&lettingDatePlease' and  '&lettingDatePlease2'
                         AND br.lineflag = 'L'                                   
                         AND br.iplineno = e.iplineno
                         AND br.CALL = l.CALL
                         AND br.vendor = d.vendor) vendorsPrice,
                         (SELECT DISTINCT pi.price
                                 FROM propitem pi
                                WHERE pi.contid = p.contid
                                         AND pi.lineflag='L'
                                         AND trim(pi.iplineno) <> ' '
                                  AND trim(pi.iplineno) = trim(e.iplineno)) EngineersPrice
                FROM itemlist i,
                     estitem e,
                     estcatg g,
                     propproj x,
                     proposal p,
                     letprop l,
                     bidlet b,
                     bidders d,
                     vendor v
               WHERE p.contid = x.contid
                 AND x.pcn = g.pcn
                 AND e.pcn = g.pcn
                 AND e.cn = g.cn
                 AND i.item = e.eiitem
                 AND i.ispecyr = p.cspecyr
                 AND e.iplineno <> ' '
                 AND e.eiitem <> '2550601/01000'
                 AND e.eiitem <> '2565601/00031'
                 AND e.eiitem <> '2565601/00033'
                 AND e.eiitem <> '2402601/01000'
                    -----Select Item Number----------
                 AND e.eiitem = '&itemNumberPlease'
                 AND l.lcontid = p.contid
                 AND l.letting = b.letting
                 AND l.letting = d.letting
                 AND l.CALL = d.CALL
                   -- AND l.LETSTAT='A'---------------------why 6/22 is not included----------------------------work with this-------------------------
                 AND d.vendor = v.vendor
                    ------Select Letting Dates--------
                 AND b.letting between '&lettingDatePlease' and  '&lettingDatePlease2'
            GROUP BY p.contid,
                           d.vendor,
                     g.csecnum,
                     e.iplineno,
                     SUBSTR (e.eiitem, 1, 4) || '.' || SUBSTR (e.eiitem, 5, 9),
                     b.datelet,
                     l.CALL,
                     e.eiitem,
                     (i.idescrl || '  ' || e.isupdes),
                     func_get_unit_name (iunits),                
                     iunits,
                     p.ccnty1,
                     i.idescrl,
                     e.isupdes,
                     i.idescrl,
                     v.vnamel,
                     e.isupdes)  tab
    DESCRIPTION     ITMENUM     UNITS     COUNTYNAME     DATELET     'Q'||TAB.QUARTER     CONTID     VENDOR     VENDORNAME     QUANTITY     ENGINEERSPRICE     ENGINEERSTOTAL     VENDORSPRICE     VENDORSTOTAL
    Mobilization        2021.501/00010     LUMP SUM     Hennepin     3/30/2007     Q1-2007     060048              ALS0010            ALS0010 : Ames / Lunda / Shafer (Jv)     1     11376150     11376150     14357900     14357900
    Mobilization        2021.501/00010     LUMP SUM     Hennepin     3/30/2007     Q1-2007     060048              MP0001             MP0001 : Mccrossan/Pcl (Jv)     1     11376150     11376150     15600000     15600000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              C320               C320 : Central Specialties Inc     1     130459     130459     637860     637860
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              D420               D420 : Duininck Brothers Inc     1     130459     130459     362000     362000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              H151               H151 : Hardrives Inc     1     130459     130459     516000     516000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              H438               H438 : Hoffman Construction Company     1     130459     130459     255000     255000
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              K0037              K0037 : Knife River Corporation - North Central     1     130459     130459     290953.37     290953.37
    Mobilization        2021.501/00010     LUMP SUM     Wright     5/18/2007     Q2-2007     070002              M0027              M0027 : Midwest Contracting Llc     1     130459     130459     285000     285000

    Hi gourous,
    I am sorry, my question is a little bit more complex. I hope I may repost here, without opening another thread. Thank you for your understanding.
    The EQUIPE_ID column of the table refers to a team. This id is returned by a select list named :P60_EQUIPE_ID which select all the EQUIPE_ID available. Then if one choose a team in this select list, the choosen EQUIPE_ID is returned. If nothing is selected in the select list, then a null value is returned.
    The AGENT_ID refers to a person. This id is returned by a select list named :P60_AGENT_ID, which returns all the members of the previously selected EQUIPE_ID. If nothing is selected, then a null value is returned.
    A team may have several persons belonging to that team.
    I would like that if a TEAM is selected, without selecting an agent in the :P60_AGENT_ID select list (returning a null value in this case), then all the people belonging to that theam will be retrieved by the select QUERY of a report.
    Then one could refine the query by selecting a person in the :P60_AGENT_ID select list in order to view only the people of that team in the report.
    To resume :
    IF EQUIPE_ID is NULL -> all the teams and all the persons are displayed in the report.
    IF EQUIPE_ID is NOT NULL and :P60_AGENT_ID is NULL -> All the people of that selected team appears on the report
    IF EQUIPE_ID is NOT NULL and :P60_AGENT_ID is NOT NULL -> The report displays only the results of the query for that person of that team.
    Thank you for your kind help !

Maybe you are looking for