How to use Powershell to set delegate for user mailbox in Exchange 2010 and Office 365

Hello,
Can you please tell me if I can set delegate for user mailbox in Exchange 2010 or Office 365 using Powershell?
If I can, then how can I do that? (which Powershell commands for setting the delegate?)
Many thanks, and have a good day!

Hi,
If you wanted to add a delegate to possiblly a large number of users or you do this during mailbox provisioning. So the following script will use
impersonation to access another users mailbox and add a delegate.
$mbtoDelegate = "[email protected]"
$delegatetoAdd = "[email protected]"
$dllpath = "C:\Program Files\Microsoft\Exchange\Web Services\1.0\Microsoft.Exchange.WebServices.dll"
[void][Reflection.Assembly]::LoadFile($dllpath)
$service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1)
$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$sidbind = "LDAP://<SID=" + $windowsIdentity.user.Value.ToString() + ">"
$aceuser = [ADSI]$sidbind
$service.AutodiscoverUrl($aceuser.mail.ToString())
$service.ImpersonatedUserId = new-object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress,
$mbtoDelegate);
$mbMailbox = new-object Microsoft.Exchange.WebServices.Data.Mailbox($mbtoDelegate)
$dgUser = new-object Microsoft.Exchange.WebServices.Data.DelegateUser($delegatetoAdd)
$dgUser.ViewPrivateItems = $false
$dgUser.ReceiveCopiesOfMeetingMessages = $false
$dgUser.Permissions.CalendarFolderPermissionLevel = [Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel]::Editor
$dgUser.Permissions.InboxFolderPermissionLevel = [Microsoft.Exchange.WebServices.Data.DelegateFolderPermissionLevel]::Reviewer
$dgArray = new-object Microsoft.Exchange.WebServices.Data.DelegateUser[] 1
$dgArray[0] = $dgUser
$service.AddDelegates($mbMailbox, [Microsoft.Exchange.WebServices.Data.MeetingRequestsDeliveryScope]::DelegatesAndMe, $dgArray);
Hope this helps.

Similar Messages

  • Certificate configuring for exchange 2013 and office 365 hybrid deployment

    Please advise on what digital certificate requirements for hybrid deployment and to configure it.

    Hi sphilip,
    If you want to deploy AD FS with Single Sign-On(SSO), we need use certificate to establish secure trust between on-premises Exchange 2013 and Office online.
    We can use and configure a trusted third-part CA within all on-premises Exchange 2013 Mailbox and Client Access servers to ensure secure mail transport, more details about
    Office 365 Hybrid Configuration Certificate Planning, for your reference:
    http://blogs.technet.com/b/neiljohn/archive/2011/08/25/office-365-hybrid-configuration-certificate-planning-adfs-exchange-web-services-owa-oa.aspx
    Best Regards,
    Allen Wang

  • How to use Search Folders in Outlook for shared mailboxes

    Hello
    We use Otlook 2010/2013 with MS Exchange 2010. In outlook there is "Serarch folder" with subfolders Large e-mail, Unreaded mails.... User can create own subfolders with rules.
    Users have attahet to outlook shared mailboxex for example Import, Export....
    For these mailboxes you cannot use "Search Folders" - outlook can use it only for your personal mailbox.
    To use "Serach folders" for shared mailbox I have to create new e-mail profile in Windows. User has to run outlook using these new profile "import". Now he is directly connected with shared mailbox.
    But users want to use "Search folders" when they are on own outlook profile with shared mailboxes attahecd to their profiles.
    Is it posible to do it? Or use some third-party
    product?
    Thank you for help
    Tomasz
    Kind Regards Tomasz

    Hi,
    I suggest we ask this question on Outlook forum:
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook
    Regards,
    Simon Wu
    TechNet Community Support

  • How to use same credentials in third party web page/app/system as in Office 365 and Share Point?

    I want my users to be able to login with same username/password in my reporting system as in they use for their email, office 365 and share point.
    Since the web is in PHP i found some ideas that use CURL to get the cookie but i['m wondering if there is another way to do that?
    All API show cases and docs that i looked are so confusing that i can't even figure out if it is possible at all and how. It would be great to be able to reset passwords through my system and also to create new users. So that i have all centralized in one
    place.

    Hi,
    Here is an article which describes how to create and configure a single tenant PHP application that uses the single sign-on capabilities of Azure Active Directory.
    http://azure.microsoft.com/en-us/documentation/articles/active-directory-php-web-single-sign-on/
    A sample that shows how to use Azure Active Directory and single sign-on for PHP web sites is available at
    https://github.com/WindowsAzure/azure-sdk-for-php-samples/tree/master/WAAD.WebSSO.PHP 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • HT5567 Iphones and Ipads with IOS 6.0.x and later getting Calendar invitation even so that Delegate access is enable on exchange 2010 and outlook 2010

    I'm Running Exchange 2010 with outlook 2010 in my environment, since Apple OS went from 5.x to 6.x I been having issues where the Iphones and Ipads running OS version 6.x or higher do not acknowledge that the exchange user has a calendar delegate and are automatically accepting the invitations, not allowing the Delegate to acknowledge first, If this test is run on any Apple devices running OS Version 5.x but less than 6.x the issue is not there.. any one that may have encounter with this situation got a fix or a possible resolution on it.. Thanks

    Ok, well after looking at everything, I decided that the best solution was to uninstall an App called "Tango", as it seemed to 'mess' with contacts directly, and I only use it with 1 person, so switching back to Skype (plus Tango sends/shares lots of personal
    info, location, and keeps changing it's access rights and doing stuff when you're not looking - I'm sure some people love it, but for me, it's a belts and braces get rid of anything that might have 'contributed' to this issue).
    Found my un-sync'd contacts and emailed them to myself, then deleted the Exchange active-sync account. Checked what was left, found google had managed to sync some stuff, cleared that up too!
    RE-created the account on the S4 - only need the email and password, as it finds the server and sets itself up automatically (I guess it did that previously).
    All is now working, after about 5mins the data had been re-populated and it sync's new changes instantly. But I will monitor from time to time to check that new contacts or added numbers etc do sync. My best guess is that some index or other data became corrupt.
    Just one of those things (or had I been tango'd?!).
    On the Truncating Notes Issue, the S4 (realised that it's running Android 4.3) does chop a note but only if edited, at 1001 chrs. However unlike others, it seems to only truncate the note if you actually edit the note field, so adding a phone number or removing
    one, leaves the note field intact!
    To summaries other devices behaviour with the Contact record Notes Field:
    - iPhone 3GS (on iOS 6.1.3) truncates at 32,777 chrs (so pretty big notes!)
    - Samsung Galaxy Note 10.1 (GT-N8020 - Android 4.1.1) chops at about 1,000chrs, even if just adding a phone number to the contact - so not even editing the notes field
    - HTC One X (4.2.2) at 5,122 chrs (when editing any part of the contact)
    I hope this might help someone in the future if they have similar problems ...
    cheers

  • OWA still lands at Exchange 2010 for users migrated from Exchange 2010 to 2013

    I never had any issues with OWA redirection for a few users that I migrated from Exchange 2010-2013 initially. For users that I am migrating in the past few days, the OWA 2013 is landing on Exchange 2010 despite the mailbox being successfully migrated to
    Exchange 2013.
    Troubleshooting:
    1. I have restarted the IIS Services
    2. I have restarted MSExchangeOWAAppPool.
    3. I have also checked the homeMDB attribute of the 2013 migrated user with the Exchange 2013 database.
    I would really appreciate if anyone could share their experiences on similar issues.

    I have checked it, the migration status is completed. In regard to the namespaces, both CAS 2010 and 2013 are set to mail.domain.com; CAS 2013 is the internet facing. I have also checked the internal access for OWA, it's the same scenario. Migrating them
    back to 2010 and 2013 won't resolve the issue in my case, because the issue persists for every new user that I am migrating.
    I recently found the following when I login with a user who is not effected and then logout:
    1. Login in back with the affected user without closing the browser or clearing the cache, it lands at CAS 2013 OWA.
    2. However, I get the below listed error message when I logout. 
    Your request couldn't be completed.
    Click here to continue working.
    This may have occurred for security reasons or because your session timed out.

  • How best use the four internal disks for user folder?

    Hi everyone
    With the addition of a new boot disk in the second optical bay i wish to restructure my user folder. It has so far lived on one drive which i have backed up every day to one of the other internals (i also have external backups). One reason i have installed a new boot disk in the optical bay is that i have run out of space on the user folder drive (and its backup drive).
    I am now wondering how i should set up the four internals if i want to use all of them for the user folder and an internal backup. Performance is an important consideration for me.
    I know raid setups are not backups but given that i also have external backup could i use, for instance, raid 1 or 1+0 to mimic the current two-disk setup? Which would be preferable and are there other alternative (such as having some subfolders of the user folder, like photos and documents, on one disk and the rest of the subfolders on another disk)?
    Thanks for your help
    /p

    I said forget those fancy software 0+1 or 10; they aren't supported, have high overhead, and you need 4 drives of same and would still not have enough space. Why bring it up again, it's still no in my book and from trouble it can be.
    I'm not even a fan of Apple mirror arrays. they are fine for where 24/7 and live audio recording and to protect from the rare drive failure is all. And then I use SoftRAID.com ($149).
    Full to me means less than 20% free. Though I tend to keep drives closer to 35-40% free. Less than 10-15% or less than 10-20GB can be hazardous.
    Don't put scratch on boot drive. Get more RAM, have another drive or two for scratch if necessary unless it doesn't impact you. It should though. Spotlight can get in the way, needs to be disabled so having a dedicated volume on another drive has always worked best.

  • How to use PowerShell to find files created in the last 15 min and bigger than 5 KB

    Hi! 
    I am trying to write to a text file, the files created in the last 15 min and bigger than 5KB
    I have created this PowerShell script but it's not working. Can somebody help me with this?
    $Notprocessedfiles = Get-ChildItem c:\test | where {$_.Lastwritetime -gt (date).addminutes(-15)}
    if ($Notprocessedfiles.lenght -gt 3KB) 
    $Notprocessedfiles | Out-file c:\test\maybe.txt
    Thanks!

    Do it the PowerShell way.  It is easier and faster.
    Get-ChildItem c:\test |
          Where-Object{$_.Creationtime -gt (date).addMinutes(-15) -AND $_.Length -gt 5Kb} |
          Format-Table -Auto |
          Out-String |
          Out-file c:\test\maybe.txt
    ¯\_(ツ)_/¯

  • How to Use PowerShell to Delete FIM Users That Have a Null attribute name

    FIM Community Information Center Article
    Wiki Page:
    How to Use PowerShell to Delete FIM Users That Have a Null <attribute name>
    Go to the FIM Community Information Center
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

    Have you run side-by-side metrics on this?
    I've run the Delete Object method and your script against similar data sets and yours appears to take a fair bit longer. I'd have to re-run in identical circumstances, a few times, to really say for sure, but my initial impression is that it will take hours
    longer.
    I guess the point is somewhat moot anyway, as for me the bit that generally takes longest is the actual query, rather than the deletions.
    Boy how I wish I could just enter something into the FIM Portal directly that would blast out a bunch of users matching a query. One day...
    FIMSpecialist.com | MCTS: FIM 2010 | Now Offering
    ECMA1->ECMA2 Upgrade Services

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • Using Powershell to set Multiple timed.servers with variables

    Having an issue using PowerShell to set 3 timed.servers which are defined in a variable. Running the commands: $TimeServers = "IPaddress1,IPaddress2,IPaddress3"Set-NaOption -OptionName timed.servers -OptionValue $TimeServers Thanks in advance!

    Hi, The Set-NaOption CmdLet -optionvalue parameter expects a string and it shouldn't matter if that's a comma delimited string containing multiple IP Addresses. I noticed that whilst the cmdlet thows an error it does actually set the option value for all servers so this seems like it could be a bug (IMO). It might be possible to invoke the API using "Invoke-NaSystemApi" but I checked the ZAPI and noticed this also fails using ZExplore from the SDK: ZAPI Request: <?xml version="1.0" encoding="UTF-8"?>
    <netapp  xmlns="http://www.netapp.com/filer/admin" version="1.21">
      <options-set>
        <name>timed.servers</name>
        <value>192.168.100.10,192.168.100.11,192.168.100.12</value>
      </options-set>
    </netapp> ZAPI Results: <?xml version='1.0' encoding='UTF-8' ?>
    <netapp version='1.1' xmlns='http://www.netapp.com/filer/admin'>
        <!-- Output of options-set [Execution Time: 8610 ms] -->
        <results reason='Unable to set option: timed.servers' errno='13001' status='failed'>
            <cluster-constraint>same_preferred</cluster-constraint>
            <cluster_constraint>same_preferred</cluster_constraint>
            <message>1 entry was deleted.
    </message>
        </results>
    </netapp> So i think the options are either using the "Set-NaOption" cmdlet with the -SilentlyContinue parameter or the "Invoke-NaSsh" cmdlet with -ErrorAction stop.As a work around i'd recommend something like: [String]$servers = "192.168.100.10,192.168.100.11,192.168.100.12"
    [String]$command = "options timed.servers $servers"
    Try{
       Invoke-NaSsh -Command $command -ErrorAction Stop
       Write-Host "Executed Command: $command"   
    }Catch{
       Write-Warning -Message $("Failed Executing Command: $command. Error " + $_.Exception.Message)
    } Hope that helps /matt

  • How to use find my iPhone app for windows pc

    How to use find my iPhone app for windows pc ... Is it possible to do..
    Or what is the closest app to do that.,,,,,

    iPhone User Guide (For iOS 5.0 Software)
    iCloud: Find My iPhone
    iCloud: Find My iPhone overview
    iCloud: Set up Find My iPhone

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

Maybe you are looking for

  • Updating photoshop CC

    I have photoshop CC. There are new features such as the the camera raw filter and camera shake. How do I get these features?? Dick

  • How to change Auto-generated web service's URL

    Hi, is it possible to change/edit the auto-generated url of a web services created with the wizard in SE80 transaction? Example: Now the wizard generates a URL as following: http://<host name>:8080/sap/bc/srt/wsdl/bndg_4BC67655E5155680E10000000A7B041

  • Which one I should download?

    Hi all, I need to learn some about Websphere, i want to try on windows XP , I want to http://www14.software.ibm.com/webapp/download/product.jsp?cat=webservers&fam=&s=s&id=MCOS-5FUSYK&pf=&k=ALL&q=&dt=&v=&rs=&S_TACT=104CBW71&S_CMP=&sb=r&sr=11 there are

  • No Left Click on T60

    Hi All, Recently bought a T60 and installed Windows XP Pro. I cannot get it to recognise a left click using either the trackpad or stick button, or in fact by tapping the track pad. Right button works OK, external USB mouse works fine. Have installed

  • Email and hyperlink issues

    Hopefully this makes sense...let's get started!!! I have a dynamic text box with a list of names that i want to make email links. In the property inspect window i have inserted the "mailto:" with email address but when i publish the page no WORKY..ve