How to build query which list only active PC's

Hi guys,
I have to install SCCM client on many devices in my enviroment. Unfortunately, SCCM has found amny devices which still have accounts in AD but are not used for looong time. I would like to list only devices, which hasen't installed SCCM client yet but are
active in my enviroment. 
That is possible? If yes, that will be glad to hear how build this query.
Thank you.

If you don't want those not used devices, why don't you stop discovering them. In the
Active Directory System Discovery there is a tab Options
in which you can configure to not discover computers account that have not been used.
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude

Similar Messages

  • How can I get a list of active savepoints for the current session?

    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"
    So how can I get a list of active savepoints for the current session?
    Could you please also let me know if there is any better way to debug this issue.
    Appreciate any quick response as the issue is very critical.
    Thanks,
    Soma

    user776523 wrote:
    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"It sounds like there's an execution path in the code where the SAVEPOINT is never issued.
    There is no way to get a list of active savepoints. Is this your code or a "canned" procedure? If it is your code you can go through the code looking for answers, possibly tracing execution using DBMS_OUTPUT.PUT_LINE or writing messages to a log table. If its a "canned" procedure you may need to open an SR with Oracle

  • How can I determine which machines have activated Adobe Acrobat Standard 9?

    How can I determine which machines have activated Adobe Acrobat Standard 9?

    Hi jrector3,
    You need to go to the respective machines and launch Acrobat and check if it prompts for serial number.
    You can also go to the help menu and check if 'Deactivate' option is highlighted.
    Regards,
    Rave

  • How to find out which lists are using email enabled feature in my SP 2010? Any script? Anything else?

    Hi there,
    How to find out which lists are email enabled in my SP 2010?
    Any script? Anything else?
    Thank you.

    Hi frob,
    check this script that is stated on this link
    $SPwebApp = Get-SPWebApplication "http://migration.Company.com"
    <# If it is MOSS 2007, You can use:
    $SPWebApp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup(http://sharepoint.com)
    To get SPWebApplication Object
    #>
    #create a CSV file
    "E-Mail,List,Site" > "EMail-Enabled.txt" #Write the Headers in to a text file
    foreach ($SPsite in $SPwebApp.Sites) # get the collection of site collections
    foreach($SPweb in $SPsite.AllWebs) # get the collection of sub sites
    foreach ($SPList list in $SPweb.Lists)
    if ( ($splist.CanReceiveEmail) -and ($SPlist.EmailAlias) )
    # WRITE-HOST "E-Mail -" $SPList.EmailAlias "is configured for the list "$SPlist.Title "in "$SPweb.Url
    $SPList.EmailAlias + "," + $SPlist.Title +"," + $SPweb.Url >> EMail-Enabled.txt #append the data
    http://www.sharepointdiary.com/2011/06/find-all-incoming-email-enabled-lists.html
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • How can I get a list of active users on an AS Java platform on a cluster?

    Hello Experts,
    I have an AS Java NetWeaver CE v7.1 EhP1 SP3 system and it's running in a cluster.  Do you know how I can get a list of all users that are currently logged in or whom have active sessions on each application server instance?
    Thanks,
    Sam

    > I don't know how to get classes used by VA for this tab.
    I wouldn't make any development investments based on classes for the VA anymore...
    Considering that not only Salvatore himself, but also the JControl might decide for itself that the system needs a hard shutdown and restart.. a possibly better solution would be to use a redirect. If the message server does does not respond or does not find any DIs or not the one which your previous session state was for, then redirect to a page with a meaningfulll message (and apology on it.
    Just a thought,
    Cheers,
    Julius

  • How to find out which list is associated with specific incoming email address

    Hey Guys,
    I've a received a request today from a user asking me which list was setup with a specific incoming email address.
    Is there a way to find out which list is associated with an email address?
    Thanks

    OK after a bit of research I found a way to achieve this.
    I simply looked up the email address in ADUC, then did a search in SP with the display name. I could locate the list and manually confirm it was configured with the incoming email address I was looking for.
    I also found the below script on Stackoverflow, but got "The 'using' keyword is not supported in this version of the language." when I tried to run it. Any idea how to fix that? I'd like to have a script to link a library to an email address istead of the
    manual approach described above.
    http://stackoverflow.com/questions/4974110/sharepoint-how-do-i-find-a-mail-enabled-list-if-i-only-have-the-email
    $SiteCollection = ""
    $EmailAddress = "" # only the part before the @
    # Load SharePoint module if not done yet
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
    cls
    using System;
    using Microsoft.SharePoint;
    namespace FindListByEmail
    class Program
    {a
    static void Main(string[] args)
    string siteUrl = $SiteCollection;
    string email = $EmailAddress;
    using (SPSite site = new SPSite(siteUrl))
    foreach (SPWeb web in site.AllWebs)
    try
    foreach (SPList list in web.Lists)
    if (list.CanReceiveEmail)
    if (list.EmailAlias != null && list.EmailAlias.Equals(email, StringComparison.InvariantCultureIgnoreCase))
    Console.WriteLine("The email belongs to list {0} in web {1}", list.Title, web.Url);
    Console.ReadLine();
    return;
    finally
    if (web != null)
    web.Dispose();

  • How identify the query which cause a SERVERERROR?

    Hi,
    Can I identify the query which called the trigger SERVERERROR?
    I need this because we have a error in our log, and we can not identify the cause.
    Thanks,
    Everson

    Michaeles,
    The problem is here:
    for i in 1 .. ora_sql_txt (v_sql_text)
    Take a look in my trigger code.
    CREATE OR REPLACE TRIGGER "LOG_ERRORS" AFTER SERVERERROR ON DATABASE
    declare
    v_osuser VARCHAR2(30);
    v_machine VARCHAR2(64);
    v_username VARCHAR2(30);
    v_program VARCHAR2(64);
    v_error VARCHAR2(1000);
    v_sql_text ora_name_list_t;
    v_sql CLOB;
    v_test varchar2(4000) := 'A';
    BEGIN
    select osuser, machine, program, username into v_osuser, v_machine, v_program, v_username
    from v$session
    where audsid = userenv('SESSIONID') and rownum =1;
    v_test := v_test||'B';
    begin
    for i in 1 .. ora_sql_txt (v_sql_text)
    loop
    v_test := v_test||'C';
    v_sql := v_sql || v_sql_text (i);
    end loop;
    v_test := v_test||'D';
    exception
    when others then
    v_test := v_test||'E';
    v_test := v_test||'F'||substr(sqlerrm,1,100);
    end;
    v_test := v_test||'G';
    v_error := DBMS_UTILITY.FORMAT_ERROR_STACK;
    insert into everson.log_erros_bd(data,osuser,machine,username,program,erro,sql)
    values(sysdate,v_osuser,v_machine,v_username,v_program,v_error||'-'||v_test,v_sql);
    exception
    when others then -- null;
    insert into everson.log_erros_bd(data,osuser,machine,username,program,erro,sql)
    values(sysdate,'ERRO '||v_osuser,v_machine,v_username,v_program,DBMS_UTILITY.FORMAT_ERROR_STACK,v_test);
    END;
    The v_test variable is only for debug, and after the error it contains:
    ORA-04043: object mensagem does not exist
    -ABEFORA-06502: PL/SQL: numeric or value error
    ORA-04043: object mensagem does not existG
    How you can see, the v_test jump to 'B' to 'E', jumping the debugs in loop, 'C' and 'D', and in exception I get the message 'ORA-06502: PL/SQL: numeric or value error'.
    Any idea?

  • A handy query which lists all important DG related init parameters

    Version : 11.2/10.2
    Do you guys have a handy query which I could run at Primary and Standby sites which will lists all important
    Data Guard related init parameters.
    Something like below but a query that list important Dataguard related init.ora parameters
    col name format a35
    col display_value forma a20
    set pages 25
    SELECT name, display_value FROM v$parameter WHERE name IN ('db_name',
    'db_block_size','undo_retention',
    'shared_servers',
    'memory_target','sessions',
    'processes',
    'session_cached_cursors',
    'sga_target',
    'pga_aggregate_target',
    'compatible',
    'open_cursors',
    'nls_date_format',
    'db_file_multiblock_read_count',
    'cpu_count',
    'cursor_sharing')ORDER BY name;

    Yes more parameters from Mseberg..
    Adding one more important parameter LOCAL_LISTENER which plays a big role in dataguard with RAC too..
    sys@ORCL> SELECT name, display_value FROM v$parameter WHERE name IN ('db_name','db_unique_name','log_archive_config','log_archive_dest_2','log_archive_dest_state_2','fal_client','fal_server','standby_
    file_management','standby_archive_dest','db_file_name_convert','log_file_name_convert','remote_login_passwordfile','local_listener') order by name;
    NAME                           DISPLAY_VALUE
    db_file_name_convert
    db_name                        orcl
    db_unique_name                 orcl
    fal_client
    fal_server
    local_listener
    log_archive_config
    log_archive_dest_2
    log_archive_dest_state_2       enable
    log_file_name_convert
    remote_login_passwordfile      EXCLUSIVE
    standby_archive_dest           %ORACLE_HOME%\RDBMS
    standby_file_management        MANUAL
    13 rows selected.
    sys@ORCL>

  • WMI Query to retrieve only active IPv4 address

    My turn to ask a question. I am running BGInfo for all workstations but at this stage want to only return the Active IPv4 address. I have a custom WMI query set up in BGInfo:
    SELECT IPAddress FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'True'
    This will return both IPv4 and v6 addresses. Without disabling IPv6 on my client workstations, is there a way I can get the query to return only the IPv4 address? Or should I instead create a custom vbscript in BGInfo to get the v4 address.
    Cheers
    Jeremy

    You'd need to nose through the results and reject any IPv6 addresses.
    This sample assumes IPv6 addresses always contain a ":" in the
    string...
    strMsg = ""
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:\\" & strComputer &
    "\root\cimv2")
    Set IPConfigSet = objWMIService.ExecQuery _
    ("Select IPAddress from Win32_NetworkAdapterConfiguration WHERE
    IPEnabled = 'True'")
    For Each IPConfig in IPConfigSet
    If Not IsNull(IPConfig.IPAddress) Then
    For i = LBound(IPConfig.IPAddress) to
    UBound(IPConfig.IPAddress)
    If Not Instr(IPConfig.IPAddress(i), ":") > 0 Then
    strMsg = strMsg & IPConfig.IPAddress(i) & vbcrlf
    Next
    End If
    Next
    Wscript.Echo strMsg
    HTH
    Nomadtales wrote:
    >
    >
    >My turn to ask a question. I am running BGInfo for all workstations but at this stage want to only return the Active IPv4 address. I have a custom WMI query set up in BGInfo:
    >
    >
    >SELECT IPAddress FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'True'
    >
    >
    >
    >
    >This will return both IPv4 and v6 addresses. Without disabling IPv6 on my client workstations, is there a way I can get the query to return only the IPv4 address? Or should I instead create a custom vbscript in BGInfo to get the v4 address.
    >
    >
    >
    >Cheers
    >
    >
    >
    >Jeremy
    Ha®®y

  • How to Print To-Do list only?

    I've tried: File, Print, 3rd pop-up menu choose i-Cal, select To-Do list ONLY. The calendar prints too. How can I exclude printing of the calendar? my to- do list is long and wont fit on the page. Do I also need to decrease text size?

    Firefox does not have a contacts list. Any contacts list will be part of a website that you are using, you need to contact the support for the site to see if they have an option to export the contacts.

  • POWL: Hiding query from list of active queries in eRec workcenter dashboard

    Hi All,
    We are implementing SAP eRecruitment (EHP4) based on web dynpro ABAP. eRecruitment has work overview page (Recruiter role), which has two iviews (Search and Dashboard). Dashboard iview has two sections: Active Queries (Link Matrix) and Requisitions List. This is configured using POWL_UI_COMP. Query categories are: Requisitions, Postings, Applications, My Tasks and TRM.
    Requisitions categories has 5 queries: My open Requisitions, Open Team Requisitions, Open Application Groups, My Draft Requisitions, and All Requisitions.
    My requirement is to hide 2 of the 5 queries (Open Team Requisitions, Open Application Groups). I have tried activating/deactivating options in POWL_Query(r) transactions. Can you please let me know how to achieve this?
    Thanks,
    Shyam

    HI
    POWL_QUERYR is the required transaction for deactivating a query
    delete the entry for the required transaction there.
    and also Run POWL_D01 report for application id you want to hide.

  • How to end Promotion which is currently activated

    Hi
    My scenario is promotion already  running in stores for the period of  01.02.2010 to 30.04.2010, now i need to end the promotion. What i did was,  i went to the WAK5  and deactivated the promotion wef from tomorrow (05.02.2010) for the same promo no. which i activated earlier. What happened in the background was it deleted the condition record ( didn't set the deletion indicator)  and no conditon record exists in VK12 against  condition type VKA0 and when i generated idoc only sales price was going and no promo pricing is going because of no condition record for the promo.
    POS system need information about deactivation of promotion for the same promotion no.
    How you  handled this scenario? or any other method to end the promotion? 
    Pl suggest.
    Best Regards
    Swami

    Hi
    Which Idoc are you using?
    if you are using WBBDLD Idoc, there is a change segment to be activated in the IMG of assortment list profile which will sent the deleted information in E1WBBCH segment.
    hope this helps
    Suhail Shaik

  • How to build forms which retrieve multiple records

    Hi everyone,
    I am newbie to APEX.I have a question in FORM building in APEX.In oracle FORMS(6i) has the capability to search with any fileld on it . there is
    an option to search
    data with the id or department or name field.If it retrieves more than one record there
    is navigation controls to move from one record to another.
    Can we build same kind of FORMS in APEX .I didnt find any wizard to build such kind of
    FORM which has both inserting and querying capability.
    I found one option for that in apex (FROM with report).In the report section i can query
    for the records and link to FORM which populates all the data in the FORM. Is that the
    only option do we have in APEX to build the forms which gives multiple records as
    output.
    anyone plz help me in solving this
    thank u

    can anyone please help me in solving this issue,
    Is it possible to build such kind of forms with retrieves multiple records in APEX.
    Thanks

  • How to build query to give daily balance across bank accounts? (to then plot in a graph)

    How would one build a query to give daily balance across bank accounts? (to then plot in a graph)
    Assumptions:
    * There is a table TRANSACTIONS which includes columns TRANS_DATE, AMOUNT and BANK_ID. It does NOT include a column for balance. So current balance for a bank account is the sum of the AMOUNTs for that BANK_ID for example. Balance on date XX will be the sum
    of all AMOUNTS for that BANK_ID for all TRANS_DATE's prior and including the date XX.
    * There is not necessarily transactions on every day for each bank
    * Table BANKS which has BANK_ID and TITLE
    Would like a query that gives: Supply StartDate and EndDate for the query:
    Date Bank1Balance Bank2Balance Bank3Balance TotalBalance
    1/1/15 $100 $200 $100 $400
    1/2/15 $200 $200 $100 $500
    etc

    You'll find examples of queries for computing balances in various contexts in Balances.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    The queries in this little demo file return balances per transaction, however, whereas you appear to wish to return balances at close of business per day.  This can easily be done by means of a subquery which sums all transactions to date.  To return
    balances for all dates regardless of whether or not any transactions have been undertaken on the day, an auxiliary calendar table can be introduced into the database to plug the gaps,  The Calendar.zip file in my same OneDrive folder has means of generating
    such a table.
    With the introduction of an auxiliary calendar table into the database a query can then be written to return the balance per customer at close of business per day over the period 2009 - 2012 covered by the data in the Transactions table:
    SELECT CustomerID, Firstname, LastName, calDate,
       (SELECT SUM(TransactionAmount)
         FROM Transactions
         WHERE Transactions.CustomerID = Customers.CustomerID
         AND Transactions.TransactionDate <= Calendar.calDate) AS Balance
    FROM Calendar,Customers
    WHERE calDate BETWEEN #2009-01-01# AND #2012-12-31#
    ORDER BY CustomerID, CalDate;
    Rows for each customer/date are returned by means of the Cartesian product of the Calendar and Customers tables (the latter analogous to your Banks table), and the subquery returns the balance at close of each day by correlating the Transactions table with
    the Customers and Calendar tables, returning the sum of all transactions per customer up to and including the date in question.  In this example credit and debit transactions are expressed as positive and negative values in a single column of course,
    but where separate credit and debit columns are used its merely a case of summing (Credit-Debit), as done in some of the examples in my demo.
    To return the data in a horizontal format per date I'd suggest the use of a report which returns one row per date, and within it a multi-column subreport in across-then down column layout, linking the subreport to the parent report on the date columns.
    Ken Sheridan, Stafford, England

  • How to build "Query by example" Report?

    I want to create a report which allows user to select which columns to return.
    It is similar to "Query by example" form. Have someone done that before and share me the PL/SQL how to do that?
    Thanks in advance.

    I got the answer, u need to set table.setFilterModel("") and refresh panel collection which contains this table
    whenever u need to make "Query By Example" button of panel collection invisible.

Maybe you are looking for