How can I format-table with two different variables

I have a script who's purpose is to go through all the mailboxes in exchange and look for any with SG_ or Group listed in the Full Access Permissions.  The script works though I'm having trouble formatting the data in a way that I can use it in Excel.
Ultimately I'd like it to report the Name of the mailbox and the name of the entry listed in the Full Access Permissions that has SG_ or Group in the name. Currently the output is the name of the mailbox and then on a separate line the full name of the security
group.
I'm trying to have it so that each part is in it's own column. That will make it easy to review in excel.
$Grabmailbox = Get-Mailbox -Resultsize Unlimited
foreach ($mailbox in $Grabmailbox){
$Getpermission = Get-MailboxPermission $mailbox | where { ($_.User -like "corp\SG_*") -or ($_.User -like "corp\*_group") }
if ($Getpermission -ne $null) {
echo "$mailbox +  "$Getpermission | FT User |Out-File c:\Script\VerifiedSG.txt -Append
else{
echo "$mailbox + No SG detected" | Out-File c:\Script\VerifiedSG.txt -Append

Hi Yan,
Thanks for the response but what I am looking for is even simpler than that.  
The script goes through every mailbox we have. 
It checks the Full Access Permissions for anything with SG_ or group listed in the Full access permissions.
It then should write out to a file the name of the mailbox and the entry in the Full access permissions that contains SG_ or _Group
so something like this:
Mailbox Name <---New ColumN--->Entry
Mailbox1<---New ColumN--->SG_Mailbox1
Ignore the <---New ColumN---> as I simply put that in to emphasize space between the two columns.

Similar Messages

  • How can i build table with two user name columne  ?

    How can I build view with two columns for user name ( one create and the other
    Can change also ) 
    And to display full name ( the user name is the key but not display  ) ?

    Hi,
    Creating View
    •     From initial screen of data dictionary(T.Code: SE11), enter the name of object i.e. view.
    •     Select view radio button and click on the push button.
    •     Dialog box is displayed for types of views.
    •     Select the view type.
    •     On the next screen, you have to pass following parameters.
    •     Short text
    •     In the table box you need to enter the table names, which are to be related.
    •     In join table box you need to join the two tables.
    •     Click on the TABFIELD. System displays the dialog box for all the table fields and user can select the fields from this screen. These fields are displayed in the view fields box.
    •     Save and Activate: When the view is activated, view is automatically created in the underlying database system. As long as the table exists in the database, the view also exists (Unless you delete it).
    Regards,
    Bhaskar

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • How can I transfer songs from two different itunes?

    I want to transfer songs from my brother's itunes library to my shuffle, but when I plug it in his computer, a message saying that his library is not linked to my library (or something to that extent) and whether I would like to replace the songs. If I click yes, all my existing songs are replaced with HIS songs. If I click on NO, the Shuffle icon does not appear at all and I cannot transfer any of his songs to my shuffle. How can I transfer songs from two different computers into my shuffle without replacing any of my existing music?
    Shuffle   Windows XP  
      Windows XP  

    You'll have to setup your iPod to manual instead of automatic update (I'm not sure, though, if it works with the Shuffle as well).
    Alexander.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • I am using Windows 8 with iTunes.  How do I manage iTunes with two different Windows User Accounts?

    I have recently bought a laptop running Windows 8 and downloaded iTunes.  I subscribe to iTunes Match and have a large amount of purchased music and imported CDs, along with some films purchased from iTunes.
    I have downloaded all of the music and the films to the laptop using iTunes Match when logged in under my User Account in Windows 8.  However, when we switch to my girlfriend's User Account, she can load up iTunes but all the music and films have the cloud symbol on them indicating that they need to be downloaded
    Is is necessary to download everything to the computer twice (I can't really believe this is the answer) or are we missing something in terms of using iTunes with two different User Accounts?
    Thank you.

    Step 1
    Create a new user account on your device. For Mac users, choose “System Preferences” from the Apple Menu and navigate to the “View” menu. Click on “Accounts” and select the “+” button to add a new user account to your machine. Edit the user information and grant any relevant privileges by following the on-screen prompts.
    For Windows users, click on the Windows "Start" button, select “Control Panel” and choose “Add or Remove User Accounts.” A new window will open. Click “Create a New Account.” Name the account and set any relevant privileges by following the on-screen prompts.
    Step 2
    Sign in to the new user account you created.
    Step 3
    Open iTunes and click “Sign in.” Enter your Apple ID and password and log in.
    Step 4
    Download purchases through the iTunes store. All files related to these purchases are stored under the separate user account, thus separating both iTunes accounts and their libraries on the same computer.
    Step 5
    You can share music from both libraries by dragging your music library to a publicly accessible location on your computer. Click “Preferences” from the iTunes menu and deselect “Copy files to iTunes Media Library when adding to library file.” Add the shared folder to your library from the “File” menu.
    Tip
    Create more than one library from the same user account by deselecting “Copy files to iTunes Media Library when adding to library file” from the “Preferences” menu. Add the files you want to iTunes by dragging and dropping or by opening from the “File” menu and sync your device to that library. Quit iTunes after the sync and reopen iTunes while holding the "Shift" key in Windows or the "Option" key on a Mac.
    (tour du lịch nước ngoài)

  • Can my iphone operate with two different phone numbers?

    can I insert an additional sim card in my iphone so that it operates like a phone with two different selectable lines?
    in other words I carry one phone with me but can receive or send phone calls, texts, emails etc from either of two different phone numbers?

    No

  • How can I combine post to two different tables with one form?

    I am trying to create a "phantom" record in a table to be used later in a report. How can I create a form and properly $_POST to two different tables? Thanks for any suggestions!

    In POST processing, just do the insert to one table, followed by the insert to the second table. I don't understand where you are getting stuck.
    Sometimes when we do an insert, we need the auto-generated ID from the newly created record as a "foreign key" for the record created in the second insert. MySQL has a nifty solution for that. The specific code depends on whether you are using the mysql, mysqli or PDO database connection.

  • How can I charge shipping for two different products each with a different shipping method?

    I'm selling two different products, one is by priority shipping through USPS, the other is just a flat fee of $3.00.  Shipping options appear when either one is the only product in the shopping cart.  If there is one of each product, then no shipping is charged.  Is it possible to have two different products and two different methods of shipping in the shopping cart?
    www.antarcticempire.com  vintage teacups are priority mail   photo prints are $3 flat fee.
    Thank you for any help.

    Thank you for posting.
    There is no out of the box solution to add more than 1 shipping option in the shopping cart. However, there is a work around for this, bit complex but achievable. You need to use multi-lingual site to do so. If you need more info on how to achieve this, please log a ticket and mention this forum post in it.
    Cheers,
    Aishvarya Raj Rastogi

  • How can i use eyedropper between two different art board.

    Hi
    How can i apply the same color for the images in two different art boards with eyedropper.
    I am trying to apply the same color from the image in one art board to another image in another art board.
    Can any one help me please. Thanks
    Steve
    I am using Mac

    apresslink,
    Presuming you are unable to use the Eyedropper Tool normally, in other words keep the target object selected while you pick up the colour, by having the Artboards open in adjacent windows to ClickDrag between (I am still with 10 which may explain at least part of my ignorance for which I apologize):
    Until someone presents a smarter solution, you may cheat and create a carrier object beside the  source object, drop the colour in that, cut and paste it to be beside the target object, and drop the colour there. With multiple colours to drop multiple times, you may create a palette to hold them, to use just like a painter working on several canvases at the same time. Or you could paste diminshed copies of the source objects.

  • How can I enable Facetime for two different iTouch (4 gen) using the same Apple ID?

    I would like to have each of them have their own distinct email address so I can Facetime them seperately, is this possible? I have two new iTouches for each of my kids, and I want to use one Apple ID so we can all share the same music. they have their own email accounts, but I would like to know if I can assign each of the iTouch with a different email address so I can facetime my kids using their distinct email address. Right now, they are sharing the email address assigned to our Apple ID, so they are ringing at the same time. Thanks!! CL

    It is possible to use one Apple ID with Face Time and Messages by adding email addresses and setting the "you can be reached at" and "Start a new conversation from" in the settings for each device. This method does not work well though.
    Your best option is to set each kid up with there own iCloud/Apple iTunes Store account (Apple ID) using their own email address. Then on each device set the iCloud Settings on each device to their specific Apple ID. Set the iTunes & Apps Store settings to use the main Apple ID for store purchases. With this setup each user will have their own distinct iCloud account which will not interferer with the others yet still make purchases from the main one.

  • How Can I do it with to different ipod on the same computer ?

    I have and ipod(1GB) and my daughter has another ipod(4GB), how can we work with the same computer and itune for 2 different ipods ?
    iPod(1GB) and a second iPod(4GB)   Windows XP   2 different iPods on the same computer

    this document might be of some help with that:
    How to use multiple iPods with one computer
    if you decide on a multiple-user-account strategy, this document might also be useful:
    iTunes: How to share music between different accounts on a single computer

  • How to build a table with two For Loop

    Hi,
    I have two Loop For and I want to build a table with N columm (N = a loop + b loop)
    You can see my example.
    Thank's a lot
    Attachments:
    help_table.zip ‏10 KB

    I think this is the solution that you are going for.
    -Jim
    Attachments:
    help_table.vi ‏26 KB

  • How can i control graph with two inputs?

    Hi,
        i would like to ask you about the graph with two inputs
    Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
    But now i would like to get the graph with my two inputs in x axis and y axis .
    i want to control both of two axis. How could i do for it ?
    i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
    It can run but i don't know how come the graph show nothing. .
    Actually , it have to show something like wavefrom continuously. am i right?
    Could you tell me a way to solve it ? 
    >>>
    what i want to get is ..
    in Graph,
    for x axis , ditance (always increases)
    for y axis , vibration (vary)
    >>>
    Thank you so much for your time . I am looking forward your kindly reply.
    With Respect,
                            Su
    Attachments:
    using Build XY graph.vi ‏59 KB

    Hi NI9233,
    Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
    Picture 1:
    Double click on Build XY Graph, uncheck the clear data on each call
    Picture 2 and 3:
    Change your formula node into +1 Basic Function in Functions Pallette.
    Hope that helps!
    PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
    Sincerely,
    Krisna Wisnu
    Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
    Sincerely,
    Krisna Wisnu
    Attachments:
    Clear Graph on Each Call.PNG ‏46 KB
    +1.PNG ‏30 KB
    +1_2.PNG ‏21 KB

Maybe you are looking for