Combining multiple WMI Queries for Single Step in Task Sequence?

Hi there,
since i couldn't find an answer on google i try to find the information here:
i would like to use a multiple wmi query in a single step in task sequence.
hat means i want to query fist if the Computer is a Laptop or not and then if yes, if it is from HP  Manufacturer.
To find out if Machine is a Laptop i use the following wmi query:
Select * from Win32_Battery WHERE (Batterystatus <> 0)
To find out if the Machine is from Manufacturer HP i use the following wmi query:
Select * from Win32_ComputerSystem WHERE Manufacturer LIKE "%HP%"
my question: is it possible to combine those 2 queries?
Like IF this is a Laptop AND IF it comes from HP, then install this type of software package?
Thanks for your answers!

unfortunely this did not work.
i try to install specific software for all HP Laptops:
but this software won't get installed on any HP Laptop. Message according to the logfile
"The task sequence execution engine skipped an action because the condition was evaluated to be false"
If i remove one of the WMI-Queries Installation works successfully.
Can anyone point me what i might do wrong here?

Similar Messages

  • How to Combine Multiple Physical Queries

    Hi All,
    I have a big reports with over 70-80 columns in Answer. This is not a Pivot report. Now it is generating 3 physical queries .
    I need to merge this 3 queries into a single query. But it seems very hard to implement.
    Couple of points:
    1. Report is generating 3 physical queries. All queries are GROUP BY queries and each of them giving different count separately
    2. If we find a way to combine. The result would be different from Answers Report Result (This is my assumption)
    3. How Answer is combining the results from 3 queries and showing us the result?
    Any input or thought is high appreciated.
    I'm totally stuck in there. Tried different ways. But is there any solution for this that I'm not able to think?
    Pls Help
    Thanks in Advance
    Regards
    Sudipta

    Hi Kranthi,
    Thanks for you reply.
    I need to combine multiple report queries into one and give it to ETL guys. I don't have to do anything in Answers. This is my requirement.
    I'm good in SQL. So I tried to combine like the following. Taking a small scenario.
    In this case, Anlytics is generating following 2 queries:
    Query 1:
    select sum(x), [Fact column]
    sum(y), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    Query 2:
    select sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    I'm trying to combine it:
    Query 1:
    select sum(x), [Fact column]
    sum(y), [Fact column]
    sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from
    (select sum(x), [Fact column]
    sum(y), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    ) q1,
    select sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    ) q2
    where
    q1.column1=q2.column1 and
    q1.column2=q2.column2 and
    q1.column3=q2.column3
    But i think it is not the correct way may be, as i'm getting a bit different count. So the where conditions are not matching for the 2 queries above.
    Any thought on this?
    Thanks
    Sudipta

  • Hiding filenames when combining multiple files into a single .pdf

    I'm fairly new to this Acrobat X. I'm trying to assemble my portfolio to distribute to employers but I cannot seem to get rid/hide the filenames in the final pdf file. I was using the option to 'combine multiple files into a single pdf' because I was compiling images and documents to a single readable pdf file. I got all that done but once I open it, I'd see that each page would still contain the original file names rather than page numbers - which I prefer not to have employers see for the sake of tidiness (and I refuse to use the Adobe portfolio because it's not really efficient on space or design. I prefer a simple page-by-page pdf). So I was wondering if anyone can tell me how to hide my file names, change them into page numbers or getting rid of them all together so the 'Table of Contents' in the pdf preview mode would not show anything, I would really much appreciate it.
    -Ss

    Well, when the .pdf is in the final, deliverable form; I open it in Mac preview mode and the sidebar is always extended showing a 'table of contents' rather than having each document in the pdf file have a number designating a page name, it shows each individual filename the pdf is composed of. Not too sure about bookmark, though. Thanks for the reply!
    If you want, I can send the file to you.

  • Combining multiple lists into a single list

    Hi, 
    I have created 5 different lists within the same sharepoint site. These lists have some common fields among them for example each list has same fields such as "Country", "Unit", "Review Name" etc. I now want to create a single
    list that will have show only the common fields present in each list. Could you please advise if this can be done and if so how?
    Thanks, Aarti

    To have a full fledged synchronization between 5 lists will be very complicated.
    If the 6th list is a read-only / view only, I would recommend you to create Lists 1, 2,3,4 and 5 as a custom content type.
    Then you can put a Content Query Web Part that filters out your custom content type and combines the content from the three lists.
    or create a  workflow to update the data when new item is added in other lists
    Check the similar post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2480cdbe-acb4-434f-9866-cf716cad0994/combining-multiple-lists-into-a-single-list?forum=sharepointadminlegacy
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/5a853466-7480-438a-b32d-3ad6d34347ef/combine-lists?forum=sharepointdevelopment

  • How to delete multiple data domains with single step ?

    how to delete multiple data domains with single step ?

    You can go to your Endeca-Server domain home e.g.($WEBLOGIC-HOME$/user_projects/domains/endeca_server_domain/EndecaServer/bin)
    run
    [HOST]$ ./endeca-cmd.sh list-dd
    default is enabled.
    GettingStarted is enabled.
    endeca is enabled.
    BikeStoreTest is enabled.
    create a new file from the output just with the domains that you want to delete and then create a loop
    [HOST]$ vi delete-dd.list
    default
    GettingStarted
    endeca
    BikeStoreTest
    [HOST]$ for i in $(cat delete-dd.list); do; ./endeca-cmd.sh delete-dd $i; done
    Remember that this can not be undone, unless you have a backup.

  • Append or combine multiple IDOCs into a single IDOC file

    Hi All,
    We are implementing multiple new payment types that will generate IDOC files for us to send to the bank.  To keep the cost to the minimum, the requirement is to combine multiple IDOCs to a single file.
    I'd like to know the most efficient way to complete this task.  Also, I am new to this forum, please let me know if I need to include additional information.
    Your help will be deeply appreciated.
    Thank you,
    Joanne T.

    Hi Milind,
    One way you can do this is generate each report in PDF or Postscript, and then use Adobe Acrobat Distiller to combine the files into one PDF document.
    Regards,
    Stewart

  • Multiple webdynpro applications for single webdynnpro component

    I am working on a object which have multiple webdynpro applications for single webdynnpro component.How to assign a different functionality to each application bcoz when we right click on webdynnpro component and select create webdynpro applications ,it just creates a application how so we assign diff functionality to each of them .Also in the parameter tab of the webdynpro applications ,there is a diff config id mentioned for each application.what is its relavance .
    Rgds,
    Praveen

    Hi Saravanan,
    I need to modify it from the portal end, not at the application level.
    I need some configuration steps which specifies how to modify the Detail Navigation in PPM. Using SPRO we can do some configuration, i wanted to know whether its possible from portal end as well.
    Regards
    Shivas Bhan

  • Can we combine multiple data sources in single report?

    <span style="font-size: 10pt; font-family: Verdana">Can we combine multiple data sources in single report?</span>

    If you can&#39;t do this at the Metalayer (BVs or Universe) - then subreports and shared variables are the method for CR to use multiple datasources in the same report.

  • Combining multiple deliveries in to single invoice in exports

    Dear All,
    While combining multiple deliveries in to single invoice in exports process,  the invoce is getting split due to different header data.how to over come from this problem because this is client requirement.
    Split due to different header data
    Name                                     $000000001           $000000002
    Number of foreign trade data i   0000000610           0000000612
    Regards,
    Siddarth

    Hi..
    1)In VTFL-Header- Maintain B in redertime export field.
    2)In VTFL Item level for your item category make sure you have maintained Data VBRK/VBRP as 003.
    Save.
    Try again creating invoice.
    Regds
    MM

  • Combining Multiple CD Tracks into Single MP3?

    Hi all,
    Does anyone know how, in burning tracks from a CD using iTunes (or any other program, for that matter), I could combine multiple tracks into a single MP3 file? I have a particular scene from a Wagner opera that spans multiple tracks, and I'd love to be able to get it into a single file!
    Thanks for your help.

    Have you looked at the "Join CD Tracks" option in iTunes Advanced menu for combining tracks when you are importing? Adding songs from CDs to your library

  • Is there a way to combine multiple pages into a single document?

    In the program "Pages," is there a way to combine multiple pages in a single document?

    Jean Louis Gassee, who used to be a senior Apple executive, wrote on Apple's bad approach to the latest iWork suite:
    https://discussions.apple.com/message/25209121#25209121
    Peter

  • Workflow call for Single Step Release Cancellation in PO

    Dear All,
    I want to start warkflow for "Single Step Release Cancellation" of PO at header level (not for Rejection button), but there is no event available for this in BUS2012. How can I perform this? Is there any enhancement that is called after record updation in database (after post)?
    Regards
    Nadeem

    Hi,
    In CDHDR Table while you performing the Transaction are you getting an Entry.
    If you got it you have to configure in SWEC.
    Check this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80ddeba4-e780-2b10-7bb2-fc7a33efabbd].
    Regards,
    Surjith

  • Multiple contact persons for single vendor--LSMW

    Hi experts,
        i want to upload multiple contact persons for single vendor. using lsmw direct input method or recording method is it possible..if possible can u let me know the procedure.
    Thx in advance,
    Neelu

    Hi
    in our company v wil upload contact person details in Sales Data......
    so its not possible to upload more than one contact person for vendor....
    can u tell me wr u people wil enter the contact person details?
    Regards
    Smitha

  • Multiple storage locations for single material - ECC 6.0

    Hi
    Can anyone let me know, how one can map multiple storage loctions for single material?
    regards
    Sanjay

    hello,
    Go to SPRO --> IMG --> Materials Management --> Inventory Management and Physical Inventory --> Plant Parameters.
    Tick Create storage locations automatically. System will extend the material to the storage location maintained in the transaction.
    Nikhil

  • How to select domain OU for "Apply Network Settings" task sequence step, based on the ip address.

    We are finally getting ready to migrate from SCCM 2007 to 2012 R2.
    Our current setup has 5 site servers with five OSD setups with boot media and Windows 7 task sequences.
    I want to move all that to one site with a single OSD W7 task sequence.
    The current, "apply network settings", step adds the workstation to one of five different  OUs. The same with the "apply windows settings" step, we have five local admin passwords for five regions around the state.
    I thought I might run five versions of each step and add a condition to each one that would only run if the machine was on the right subnet. Or the right Boundary group or maybe the right active directory site.
    Currently I'm creating five boundary groups that I hope to detect by running a power script get-CmBoundaryGroup. Then apply the results maybe as a task sequence variable in the task steps options/Add Conditions.
    Anybody have a better approach. Or alternate plan.

    Are you integrated with MDT? If so, you can use customsettings.ini to put machines into specific OUs based on the DefaultGateway.
    See these links for ideas:
    https://scriptimus.wordpress.com/2011/05/10/mdt-2010-joining-a-domain/
    http://deploymentbunny.com/2012/04/21/back-to-basic-customsettings-ini-explained/
    Jeff

Maybe you are looking for

  • WIJ 20002 If you cannot reconnect to the server, close Web Intelligence

    Unexpected error. If you cannot reconnect to the server, close Web Intelligence and start again. (WIJ 20002), we are getting this error whenever we try to create a new report using WebI. Specific observations are this happens mainly with IE7 users. I

  • Error Message 0058

    Hi, While creating travel request through TRIP, I am getting error message :E RU DOES NOT EXIST- CHECK IN THE ENTRY"

  • Upgrade Hard Drive

    Hello, Imac5,1 Intel core 2 Duo, 2.1GHz 20inch display. I need to upgrade my hard drive (current 250 GB) If I replaced it with Seagate 750 GB , or 500 GB Is there an issue with over heating the computer? Thanks in advance

  • Keyboard problems in xorg/gnome

    has anyone noticed any weird keyboard behavior recently? i just updated everything last night and started getting crazy keyboard actions. the layout is correct, but my typing is really garbled. letters appear out of order or keypresses are skipped ov

  • About Database Design

    Hello All, I am using Oracle 11g R2 SOE. What is the best practice for Real Estate Data Model ? This one : http://www.databaseanswers.org/data_models/real_estate_properties/index.htm Or As I got, In this thread {thread:id=2521579} I was advised to st