Shell Query assistance please

Hey guys and gals,
I'm new here and would like some assistance.  I work for a company as an entry level support tech.  I create emails and update distribution lists ect..  I'm by no means an exchange guru.  We have a client that likes to have his employees
emails forwarded to him.  But now he wants to know who is forwarded to him now.  I have no clue how to find this out.  So i did some research and i came up with the shell script
Get-Mailbox | Where {$_.ForwardingAddress -like John} | Select Name, ForwardingAddress, DeliverToMailboxAndForward
Of course it doesn't come back with anyhting.  I'm assuming i've got the syntax wrong.  
Can any of you lend some help please.  I've been researching for the past week and can't seem to figure out why that isn't working.  (i've tried ", (), %, '.  I'm assuming it's the -like portion of the query.

Hello,
You need to give * around the name to get the result...
So try this...
Get-Mailbox -ResultSize Unlimited | Where {$_.ForwardingAddress -like "*John*"} | Select Name, ForwardingAddress, DeliverToMailboxAndForward

Similar Messages

  • Pass username and password ADFS without using query string, Please help.

    pass username and password ADFS without using query string, Please help.
    I used query string , but it is unsecured to pass credentials over url, with simple tool like httpwatch , anyone can easily get the password and decrypt it.

    Hi,
    According to your post, my understanding is that you had an issue about the ADFS.
    As this issue is related to ADFS, I recommend you post your issue to the forum for ADFS.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding and support.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Whenever I try to enter my credit card information into iTunes via either my mac book or my iphone it says there is an error and says "for assistance, please contact itunes support, etc...". Can anyone help with this?

    Whenever I try to enter my credit card information into iTunes via either my mac book or my iphone it says there is an error and says "for assistance, please contact itunes support, etc...". Can anyone help with this?
    I haven't had any luck at all getting it resolved using iTunes support so I'm hoping someone who's encountered the problem can help me.

    What did itunes suport tell you?
    They will need to solve this.

  • I keep getting a message to update my flash player, then a screen showing flash player pro appears,  I don't have this on my iPad that I'm aware of. I cannot view videos etc (new to ipad) can anyone assist please.

    I keep getting a message to update my flash player, then a screen showing flash player pro appears,  I don't have this on my iPad that I'm aware of. I cannot view videos etc (new to ipad) can anyone assist please.

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

  • Very Urgent :  Error Page protection violation: This may be caused by submitting a page that had not yet finished loading or by manual alteration of protected page items. For further assistance, please contact the application administrator.

    Hi,
    I getting this error press on upload button , its working in google chrome and firefox
    Error Page protection violation:
    This may be caused by submitting a page that had not yet finished loading or by manual alteration of protected page items.For further assistance, please contact  theapplication administrator.Contact your application administrator.
    Please help me any one

    First, please don't post questions/issues and start with "Very Urgent".  If you have an "urgent" issue I recommend you contact Oracle Support.  Second, if your issue is so urgent, I further recommend that you read this (url below) before going any further.  Posting questions without including product names, versions, and related information like platform, configuration and so on, will make it almost impossible for anyone to help you.
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    Finally, I am going to guess and say that you are having problems with Oracle Apex version 4.2.  If I am correct, I will tell you that this forum space is for Oracle Forms.  APEX questions should be posted here (below).  However, if you plan to post the same issue there, please consider reading the blog I mentioned above and follow its recommendations before posting anywhere else.
    https://community.oracle.com/community/developer/english/oracle_database/application_express

  • My X1 version of Adobe no longer opens bank documents -"later version of Stratia required". Can you assist please?

    My X1 version of Adobe no longer opens bank documents -"later version of Stratia required". Can you assist please?

    Sorry but what is your answer to my enquiry?

  • Apparently the default country for an account is US. I want it changed to Netherlands without having to call customer service. In need of assistance please.

    Hi,
    Apparently the default country for an account is US. I want it changed to Netherlands without having to call customer service. In need of assistance please, is there someone from Adobe on this forum who can help me? Or does someone know an email address?
    thanks!
    Arjan de Jong

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html

  • Hi, i am really new to photoshop and i have a design which i need to have the background made transparent? can anyone assist please?

    hi, i am really new to photo shop and i have a logo design which i need to have the background made transparent from a white square? can anyone assist please?
    i have already got the image on my screen but cant seem to find the tool in which to make it transparent as i do with other softwares.

    hi aknaloku,
    is the background apart of your image or is the image on a different layer?
    if the white background is on a different layer you can simply delete the layer for the layers window which you can find in Window>Layer. you will need to delete the background layer by dragging it into the little rubbish bin icon down the bottom right of the layers window.
    i hoped this helped
    Matty

  • My computer is dead. the charger flashes green and orange when connected to the computer. can anyone assist please.

    my computer is dead. the charger flashes green and orange when connected to the computer. can anyone assist please.

    What happens when you press the power button?
    Try a SMC reset:
    http://support.apple.com/en-us/HT201295
    Ciao.

  • Query Assistance Needed - Please

    Monthly Training Table
    >> monthly_training.record_id (int)
    >> , monthly_training.trng_year (int)
    >> , monthly_training.trng_month (int)
    >> , monthly_training.trng_title (varchar)
    >> , monthly_training.trng_code (varchar)
    >> , monthly_training.trng_narrative (longtext)
    Training Completed Table
    >> training_completed.record_id (int)
    >> , training_completed.recorded_by (varchar)
    >> , training_completed.emp_id (varchar)
    >> , training_completed.trng_year (int)
    >> , training_completed.trng_quarter (int)
    >> , training_completed.trng_month (int)
    >> , training_completed.trng_date (date)
    >> , training_completed.trng_category (varchar)
    >> , training_completed.trng_sub_category (varchar)
    >> , training_completed.trng_code (varchar)
    >> , training_completed.trng_start_time (time)
    >> , training_completed.trng_stop_time (time)
    >> , training_completed.trng_hours (decimal)
    DB = MySQL -- CF8
    emp_id = B1200 < stored in cookie at login
    Scenario –
    Monthly Training Table - contains scheduled training for an
    entire year. This training is displayed on a page per the month the
    training should be completed in.
    Training Completed Table – contains the information of
    what training was completed per individual.
    Task At Hand – I would like to display the monthly
    scheduled training for the current year and cross reference the
    completed training table and if the individual has completed the
    training further display something next to the training title, to
    signify completed.
    Example:
    Computer Training – Outlook
    * Off. Dev. – Emergency Scene Safety
    Fire Suppression – Salvage
    I have tried many methods of querying this but have not been
    able to achieve the goal. Perhaps I am making this harder than it
    needs to be. Hopefully someone in the forum can shed some light on
    what I should be doing. Assistance would be greatly appreciated.
    Leonard

    yes, i see it now - the WHERE clause makes sure only
    completed training
    of that employee are selected... my bad - i should have
    changed that
    after you told me that emp_id field was in tc table, not
    mt...
    ok, here we go... this will be a little more complicated...
    try this beast:
    <cfquery name="rs_trng_ck" datasource="#datasource#">
    SELECT mt.trng_title, mt.trng_month, mt.trng_code,
    tcsq.completed
    FROM monthly_training mt
    LEFT JOIN
    (SELECT tc.trng_code AS completed
    FROM training_completed tc
    WHERE tc.emp_id = <cfqueryparam cfsqltype="cf_sql_varchar"
    value="#emp_id#">) AS tcsq
    ON
    mt.trng_code = tcsq.completed
    WHERE mt.trng_year = YEAR(NOW())
    ORDER BY mt.trng_month, mt.trng_title
    </cfquery>
    basically, what this does is uses a sub-query in the FROM
    clause to
    pre-select only those records from tc table where emp_id
    field equals
    the #emp_id# value, and only then left-joins the mt table to
    this
    sub-query recordset, which should result in ALL records from
    mt table
    and only those from tc table where emp_id is correct
    the <cfoutput ...> part shoudl stay the same as before.
    hope this one works :)
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Outgoing payment query assistance.

    Hi experts,
    Can you please assist me with a query that addresses my request.
    My request is, during the outgoing payment process in the payment means we choose a G/L account.
    I want the query to show the G/L account code and it's corresponding name whether check or cash or bank transfer.
    Please this query is urgent and I need help.
    Regards
    Justice

    Hi Justice,
    I am not able to Understand Correct Requirement but Please check below Query which will give you All Modes of Account and Account Name. Please check below
    SELECT T0.[DocNum], T0.[DocDate], T1.[CheckAct] AS Check_Account, T2.[AcctName] AS Check_Account_Name, T0.[CashAcct] AS Cash_Account, T3.[AcctName] AS Cash_Account_Name, T0.[TrsfrAcct] AS Transfer_Account, T4.[AcctName] AS Transfer_Account_Name FROM OVPM T0  LEFT JOIN VPM1 T1 ON T0.[DocEntry] = T1.[DocNum] LEFT JOIN OACT T2 ON T1.[CheckAct] = T2.[AcctCode] LEFT JOIN OACT T3 ON T0.[CashAcct] = T3.[AcctCode] LEFT JOIN OACT T4 ON T0.[TrsfrAcct] = T4.[AcctCode]
    Hope this help
    Regards:::::
    Atul Chakraborty

  • Query Help Please

    Hi... having problems with a query.  Any assistance would be
    much appreciated.
    Two queries with identical columns: Villages_Query_1 and Villages_Query_2.
    Both have these columns: Village_ID, Village_Name, Player_ID.
    I need to find all records in Villages_Query_2 where the Village_ID's match but the Player_ID's have changed.
    Example Village_Query_1
    Village_ID
    Village_Name
    Player_ID
    1
    Houston
    1
    2
    Dallas
    2
    3
    Chicago
    3
    Example Village_Query_2
    Village_ID
    Village_Name
    Player_ID
    1
    Houston
    1
    2
    Phoenix
    4
    3
    Chicago
    3
    4
    New York
    5
    In this case, Village_ID = 2, has changed names (Dallas to Phoenix) and the Player_ID has changed (2 to 4).  In addition, a new record was added.
    The eventual output I need is to be able to report the following:
    Player 2 village "Dallas" was taken by Player 4 and renamed "Phoenix".
    New York is a new village owned by Player 5.
    How the heck do I do this??  I have been trying query after query... reading about query of queries and JOINS and and and... I am now completely confused.
    Help appreciated.
    Mark

    Well... firstly... you do not use MS Access for that volume of data.  Plain and simple.  MS Access is for DBs like "My CD collection".  It's a desktop application, and is not intended to be used other than as a desktop application.
    Part of the reason for it not being appropriate for the job is that it can't do things like bulk loading data, which is kinda what you're wanting to do here.  That aside, it's a single-user file-based DB which is simply not designed to work as the back-end for a web application (or any sort of serious application).
    Anyway, I would approach this by putting all the data from the CSV files into the DB as is.  Then on the DB run a query which gets all your changes.  You're really going to struggle with the suggestions here to use valueList() to generate a list that is then used for a NOT IN(#list here#), because you're likely to have a mighty long list there.  Even proper DBs like Oracle only allow 2000 entries in a list like that (SQL Server is about the same, from memory), so I doubt QoQ will allow even that.  The reason the DBs put limits on these things is that doing a WHERE IN (#list#) is a really poorly-performing process.
    If you've got all your data in the DB, then your query becomes pretty easy, and I'm sure even Access could cope with it.  it'd be something like this:
    SELECT VB.village_id, VB.village_name AS village_old_name, VB.player_id AS player_old_id,
    VU.village_id AS village_new_id, VU.village_name AS village_new_name, VU.player_id as player_new_id
    FROM villages_base VB
    RIGHT OUTER JOIN villages_updates VU
    ON VB.village_id = VU.village_id
    WHERE VB.village_name != VU.village_name
    (that's untested and I only gave it about 1min thought before typing it in, so don't quote me on that!)
    Where VILLAGE_BASE is your original data, and VILLAGE_UPDATES is the data that indicates the changes.  I'm kinda guessing that this is the sort of thing you want.  Note: the "new" villages will be the ones which have NULLs for the village_id, village_old_name and player_old_id.
    Getting all the data into the DB is going to be a matter of looping over the CSV file and doing an INSERT for each row.  And that will take as long as it takes, so you might need to get some control over your request timeouts.  However doing these inserts will take less time than all the QoQ logic suggested before, so you might be OK.  And the query should be quick.
    What happens to the data once the report is written?  Does the "updated" data become the "live" data?  If so, after you run your report you're gonna want to do something like a TRUNCATE on villages_base, and INSERT all the records from villages_update into it (then TRUNCATE villages_update, ready for the next time you need to run this process).  Although don't take my word for it here, as I'm guessing your requirement here ;-)
    Adam

  • Cannot Install Adobe Acrobat Pro via Adobe Download Assistant - Please Help

    Hi Guys,
    Please can you help I am trying to download the adobe acrobat pro trial via the adobe download assistant but cannot get the download to complete successfully.
    Everytime I try and  download the file it freezes when almost totally downloaded (less than a minute remaining) and eventually returns an error saying:
    Error extracting teh product installer (Error 101). Check for available disk space on your system and try downloading the product again. I am trying to install to the desktop on a drive with 600GB free!!
    Please help, I have downloaded the ADA through google chrome on a machine with windows 7 (64bit)
    Thanks
    Mike

    Try this:
    Direct Download Links for Adobe Software
    Though if the extraction fails, you may face that same issue again. Store the fiel in a different location and do a littel housekeeping. You could well simply be running out of temp space or have a permissions problem on your temp folder...
    Installation Preparations
    Mylenium

  • Enterprise bpm cluster query urgent please

    Hello
    I have 3 machines one 1st machine it is admin server and other 2 are managed servers
    I will install weblogic on all 3 machines and then create a domain but my query is to do with BPM enterprise.Should I install bpm enterprise on all 3 machines as well or just on 1 machine(admin machine/1st machine) ? this is my doubt can you please clarify..
    it is pretty urgent
    thanks

    With one machine is enough, then you will deploy to the WLS cluster at the end of the day you do not need to have BPM installed except for the Process Administrator.
    HTH

  • Droid Backup Assist--Please HELP!

    I apologize in advance if this is a duplicate thread, but I'm desperate and on a time crunch....
    My Droid (the original) decided it would stop working and somehow fried its hard drive; or so that's what the "tech" at my local Verizon branch said. I was really careful and had backup assistant as well as anti-droid theft installed, but now that the phone is trash I have no access to anything (including some very important documents). I am attempting to find someone that could honestly tell me if there is a way to use either backup assistant or anti droid theft to load all of my info that is on my droid to my computer, that is if it's even there at this point. I was unable to back any of the phones files/downloads previous to now because I didn't have a computer until a few months ago... I've been told there are ways to access the files and possibly load them to my computer without the phone itself working, but I have no clue as to how to do this. Could someone please help me out? I'm desperate!

    A lot of your data should be on your SD card, the first step would be to pull that out of your phone and use a card reader with your computer to see what all is on it.  As for what is on the internal storage (on the OG droid, that should be minimal), you may be out of luck.  Hopefully you have your contacts synced with gmail, in that case, they will automatically sync with the new phone, as well as your applications (though unfortunately not the data that is associated with those apps). 

Maybe you are looking for

  • Opinions on which size i should get.

    ok i am looking at getting a display over the summer, probably a 23 or 30 inch. im planning to get one of the tv tuners from elgato and just use my machine/display combo as my tv along with using it for working on. im an art student but i dont do muc

  • [svn:fx-trunk] 9117: DropDownList bug fixes

    Revision: 9117 Author:   [email protected] Date:     2009-08-05 14:12:45 -0700 (Wed, 05 Aug 2009) Log Message: DropDownList bug fixes http://bugs.adobe.com/jira/browse/SDK-22536 - Spark DropDownList highlight not working as expected when navigating u

  • E-Mail Aliases

    I'm unable to send e-mail to an added 'e-mail alias' I entered via amconsole's "User Alias List:" field. The help there says: User Alias List. The field defines a list of aliases that may be applied to the user. In order to use any aliases configured

  • Email/Internet Question

    Email: Using the Mail program that came with the Macbook, is there a way to sort your emails into folders? Like in Yahoo it lets you create a new folder for your emails. Internet: I keep getting a message asking if I want to stay connected. Then I ha

  • Uninstallation concern of design premium CS3 Windows 7

    I want to completely uninstall CS3. I am having trouble uninstalling CS3. I loaded CS3 onto Windows 7 PC. I tried to register product but I must have registered it on too many computers (this is a pretty old program from 2007). I think I then selecte