Deployment Tool to Download Click-to-Run for Office 365

The download gets only so far and then fails.  Below is my .xml and the last log from %temp%. Thanks for any help!
I ran: 
"setup.exe /download mmmconfiguration.xml"
mmmconfiguration.xml:
<Configuration>
     <Add SourcePath="d:\Shared\O365\downloads" OfficeClientEdition="32" >    
           <Product ID="O365ProPlusRetail">      
                 <Language ID="en-us" />     
           </Product>   
      </Add>
          <Updates Enabled="TRUE" UpdatePath="d:\Shared\O365\downloads" />
          <Display Level="None" AcceptEULA="TRUE" />
          <Logging Path="%temp%" />
</Configuration>
BGNBNFILEP01-20140404-1649.log
Timestamp Process TID Area Category EventID Level Message Correlation
04/04/2014 16:49:31.739 SETUP (0x12a4) 0xc28  Click-To-Run aqkhc Medium CmdLine:"D:\Shared\O365\OfficeDeploymentTool\setup.exe" /download mmmconfiguration.xml
04/04/2014 16:49:31.739 SETUP (0x12a4) 0xc28  Click-To-Run Telemetry aqkhd Medium {"SessionID":"415d1df5-8e0e-4875-90ec-5810ed4ecff4","GeoID":"244","Ver":"15.0.4595.1000","Bitness":"32","IntegrityLevel":"0x3000","SecuritySessionId":"3"}
04/04/2014 16:49:31.739 SETUP (0x12a4) 0xc28  Click-To-Run Telemetry aqkhe Medium {"SessionID":"415d1df5-8e0e-4875-90ec-5810ed4ecff4","GeoID":"244","Ver":"15.0.4595.1000","OSVersion":"6.1","SP":"1","ProductType":"3","ProcessorArch":"9","Locale":"1033"}
04/04/2014 16:49:31.739 SETUP (0x12a4) 0xc28  Click-To-Run amawz Medium Args::ParseArgument: Parsing commandline.
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run ambpm Medium Args::Load: Have Admin scenario
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run amaw0 Medium Args::GetNextArgument: Next argument: /download
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run amaw0 Medium Args::GetNextArgument: Next argument: mmmconfiguration.xml
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run aoh7y Medium Args::GetConfigFile: config file: mmmconfiguration.xml
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run appfq Medium Args::Load: product release id: none  culture: en-us
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run apvr9 Medium TrySetUserRegistry::TrySetAttemptGetKey: Setting Attempt Get Key for none
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run amaw8 Medium TrySetUserRegistry::TrySetLicenseTokenOrKey: No key or token found for none
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run aoh76 Medium HandleCommandLineAction::HandleStateAction: Not OOD scenario nor showing ODT help, check for elevation.
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run aoh8l Medium TryGetElevation::HandleStateAction: Already running from elevated context.
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run aoh78 Medium HandleCommandLineAction::HandleStateAction: Starting Admin tool scenario.
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run aoh8c Medium HandleCommandLineAction::HandleStateAction: Download bits locally.
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run aoh8r Medium DownloadOffice::HandleStateAction: Download office bits to specified location.
04/04/2014 16:49:31.755 SETUP (0x12a4) 0xc28  Click-To-Run anwvz Medium Configuration::Load: Using config file: mmmconfiguration.xml
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of SourcePath: d:\Shared\O365\downloads
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvu Medium ConfigFile::ParseAddNode: Version not specified.
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvv Medium ConfigFile::ParseAddNode: ForceDowngrade: 
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of OfficeClientEdition: 32
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of Level: None
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of AcceptEULA: TRUE
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of Path: %temp%
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of Enabled: TRUE
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run anwvy Medium ConfigFile::ParseAttribute: Value of UpdatePath: d:\Shared\O365\downloads
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run amaws Medium Configuration::Load: Setting culture to: en-us
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run amaxd Medium DownloadOffice::DownloadPackages: Getting Office for culture: en-us
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run amaxd Medium DownloadOffice::DownloadPackages: Getting Office for culture: x-none
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run amaxe Medium DownloadOffice::DownloadPackages: Getting Office in directory: d:\Shared\O365\downloads\Office\Data
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run amaxf Medium DownloadOffice::DownloadPackages: Getting version cab file.
04/04/2014 16:49:31.864 SETUP (0x12a4) 0xc28  Click-To-Run aon8k Medium CabManager::DetermineCabName: Type:0, Platform:x86, Version:, Culture:en-us -> v32.cab
04/04/2014 16:49:32.036 SETUP (0x12a4) 0xc28  Click-To-Run aon8i Medium CabManager::Extract: Extracting d:\Shared\O365\downloads\Office\Data\v32.cab -> C:\Users\MMARTE~1\AppData\Local\Temp\3\343E687C
04/04/2014 16:49:32.364 SETUP (0x12a4) 0xc28  Click-To-Run anwv6 Medium Descriptor::Load: Reading Available value from descriptor: 15.0.4569.1508
04/04/2014 16:49:32.364 SETUP (0x12a4) 0xc28  Click-To-Run amawt Medium Descriptor::Load: Prereq Node exists. Being parsing it.
04/04/2014 16:49:32.364 SETUP (0x12a4) 0xc28  Click-To-Run anwv7 Medium Descriptor::Load: Reading Bootstrapper value from descriptor: 15.0
04/04/2014 16:49:32.380 SETUP (0x12a4) 0xc28  Click-To-Run amaxg Medium DownloadOffice::DownloadPackages: Getting Office lcid: 1033
04/04/2014 16:49:32.380 SETUP (0x12a4) 0xc28  Click-To-Run amaxm Medium DownloadOffice::DownloadFile: Downloading file http://officecdn.microsoft.com/pr/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.4569.1508/stream.x86.en-us.dat
04/04/2014 16:51:09.584 SETUP (0x12a4) 0xc28  Click-To-Run amaxh Medium DownloadOffice::DownloadPackages: Succesfully downloaded .dat file
04/04/2014 16:51:09.584 SETUP (0x12a4) 0xc28  Click-To-Run aon8k Medium CabManager::DetermineCabName: Type:1, Platform:x86, Version:15.0.4569.1508, Culture:en-us -> i321033.cab
04/04/2014 16:51:10.537 SETUP (0x12a4) 0xc28  Click-To-Run amaxi Medium DownloadOffice::DownloadPackages: Succesfully downloaded client cab
04/04/2014 16:51:10.537 SETUP (0x12a4) 0xc28  Click-To-Run aon8k Medium CabManager::DetermineCabName: Type:1, Platform:x64, Version:15.0.4569.1508, Culture:en-us -> i641033.cab
04/04/2014 16:51:11.724 SETUP (0x12a4) 0xc28  Click-To-Run amaxj Medium DownloadOffice::DownloadPackages: Succesfully downloaded 64bit client cab
04/04/2014 16:51:11.724 SETUP (0x12a4) 0xc28  Click-To-Run aon8k Medium CabManager::DetermineCabName: Type:3, Platform:x86, Version:15.0.4569.1508, Culture:en-us -> s321033.cab
04/04/2014 16:51:11.881 SETUP (0x12a4) 0xc28  Click-To-Run amaxk Medium DownloadOffice::DownloadPackages: Succesfully downloaded stream cab for culture.
04/04/2014 16:51:11.881 SETUP (0x12a4) 0xc28  Click-To-Run amaxg Medium DownloadOffice::DownloadPackages: Getting Office lcid: 0
04/04/2014 16:51:11.881 SETUP (0x12a4) 0xc28  Click-To-Run amaxm Medium DownloadOffice::DownloadFile: Downloading file http://officecdn.microsoft.com/pr/39168D7E-077B-48E7-872C-B232C3E72675/Office/Data/15.0.4569.1508/stream.x86.x-none.dat
04/04/2014 16:51:11.928 SETUP (0x12a4) 0xc28  Click-To-Run aoh8t Unexpected DownloadOffice::HandleStateAction: Failed to download office bits.
04/04/2014 16:51:11.928 SETUP (0x12a4) 0xc28  Click-To-Run aoh71 Medium BootstrapperState::OnError: Error has occured. Go to ExitBootStateMachine.
04/04/2014 16:51:11.943 SETUP (0x12a4) 0xc28  Click-To-Run aoh9f Medium BootStateMachine::ShowFailureUI: Showing failure UI.
04/04/2014 16:51:37.022 SETUP (0x12a4) 0xc28  Click-To-Run aoh72 Medium ExitBootStateMachine::HandleStateAction: Bootstrapper workflow exiting with result: 0x0
04/04/2014 16:51:37.022 SETUP (0x12a4) 0xc28  Click-To-Run aoh9z Medium AdminBootstrapper::Main: Installation came back with -2147418113.
04/04/2014 16:51:37.022 SETUP (0x12a4) 0xc28  Logging Liblet aqc99 Medium Logging liblet uninitializing.

Good to see you have unblocked by yourself. Could you please share your steps/workaround here on how you fixed this? Other people might also experience the same issue, your answers could be helpful to them.
Thanks,
Ethan Hua CHN
TechNet Community Support

Similar Messages

  • HT4623 I have a iPhone 3GS model MC135LL/A with version 6.1.3.  I tried to download the most recent iTunes software but I get " cannot download because version needs to be 10.6.3 or later.",  I hit download and it runs for 10 seconds then quits, saying th

    I want to download itunes 11.0.2 on my PC but I get a "cannot download because you do not have 10.6.3 or later.  I hit download and it runs for about
    ten second then says "Thanks for download" but it is not download.  I have not been able to sync for over 5 months. My iPhone 3GS has 6.1.3 version.

    That's because iTunes 11 requires Snow Leopard or higher.

  • How to delete duplicate attribute in on premise server for office 365 dir sync tool

    Hi,
    Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool .
    While running the dirsync tool iam getting the below error : 
    "Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [ProxyAddresses smtp:[email protected],SMTP:[email protected];].
     Correct or remove the duplicate values in your local directory.  Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute value"
    Still i am troubleshooting to reslove this problem . I have run the ID Fix tool there i could see some 10 duplicate errors . Next what should i do , please anyone help me to find it
    Thanks.....

    Hi,
    Please anyone help to how to remove duplicate attribute in on premise server for office 365 dir sync tool .
    While running the dirsync tool iam getting the below error : 
    "Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [ProxyAddresses smtp:[email protected],SMTP:[email protected];].
     Correct or remove the duplicate values in your local directory.  Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute value"
    Still i am troubleshooting to reslove this problem . I have run the ID Fix tool there i could see some 10 duplicate errors . Next what should i do , please anyone help me to find it
    Thanks.....

  • How to redirect to library on button click in sandbox visual web part solution for office 365

    Hi,
    I have created a sandbox solution for Office 365 with one text box and a button. 
    On button click i am creating a library with name from text box. 
    So, what i want is redirect to newly created library as soon it get created on button click.
    how could i do that?
    Thanks

    Got the solution
    <asp:Literal ID="litRedirect" runat="server" />
    string redirectURL =
    listurl;
    litRedirect.Text = "<script type='text/javascript'>window.location = '" +
    redirectURL + "/';</script>";

  • Click and Run error officer 2010 starter

    Okay, I have read people's post on Click to Run and Office Starter not opening...Uninstall and re-install Starter 2010...Click to Run will not uninstall, I get an error to contact MS. So, I tried to just re-install hoping that it will fix the problem
    but I get the Click to Run error again to contact microsoft...so, how do I get around click to run if I can't repair or un-install...None of the solutions that I have found help. Please help with a different option/patch

    Hi,
    Fix problems that programs cannot be installed or uninstalled
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Andy Altmann
    TechNet Community Support

  • Problems with Lync integration in App-V Package for Office 365 ProPlus

    We have problems with setting Lync 2013 to automatic start after Windows start with Office 365 ProPlus App-V Package made by Office Deployment Tool. We use latest version for both (ODT and download package) at Windows 7 Enterprise 64 bit.
    We have done this for Lync 2010 and also for Lync 2013 (MSI installations) and it works correctly.
    User can choose to start Lync automatically, but this settings is ignored and in virtual registry is set wrong. We look for possible ways to set this by GPO (in ADMX is not this option available) by inserting in virtual registry with Package ID and user
    SID in registry path.

    Usually setting apps to auto start sets a registry key under HKCU\Software\Microsoft\Windows\CurrentVersion\Run, but since this registry key is inside the virtual environment, Windows does not read it at logon.
    The workaround is to either set this key in the native registry (perhaps by an App-V script), or easier still, just copy the shortcut to the Start Menu\Programs\Startup folder. Since you can't really modify Office 2013 packages with the sequencer, you'd
    have to add this shortcut by modifying the deployment config file.
    Dan Gough - UK App-V MVP
    Blog: packageology.com
    Twitter: @packageologist
    LinkedIn

  • User Agent Strings for Office 365 Install and Updates

    In my organization, we restrict internet access to a specific list of approved applications by user agent string; however, it seems the user agent string for Office 365 (2013) applications has changed over time causing installs and updates of Office 365
    on client PCs to fail.
    Is there a repository of user agent strings used by Office 365 applications?
    Thanks in advance.

    Hi,
    Please refer to this link:
    http://technet.microsoft.com/en-us/library/jj219420.aspx
    As mentioned under Ports, protocols and URLs used by Click-to-Run, 
    Download, installation from the portal
    Automatic updates
    TCP
    80
    http://officecdn.microsoft.com
    I hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • Ip or host name of monthly activation servers for Office 365

    Hello ,
    i need to know a method to activate office 365 for 4 of my company computers that are banned from internet connection . 
    One of the option that i may accept is tho manual specify the ip addresses or the servers name where Office is going to activate .
    Thanks .

    Hi catabej,
    Could you tell me what version of Office 365 are you using? If you have product key to activate it. Or you can activate Office 365 on phone, choose the telephone option in the Activation Wizard to get the phone number to contact in
    your country.
    Some reference about activating Office 365:
    https://support.office.com/en-US/Article/Activate-your-product-key-for-Office-365-for-business-afa5dee4-091d-4152-b849-6aef8463ca9c?ui=en-US&rs=en-US&ad=US
    https://support.office.com/en-US/Article/Activate-Office-2013-Office-365-Home-or-Office-365-Personal-1144e0de-e849-496e-8e33-ed6fb1b34202?ui=en-US&rs=en-US&ad=US
    If there is anything else that I can do for you regarding this issue, feel free to post back.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to download a file version from office 365 using csom

    I need to download an older file version from office 365 and get the data into a byte array. I have no trouble downloading the latest version with File.OpenBinaryStream() and I have no trouble loading the previous file versions with File.Versions. But now
    I need to actually download an older version of the file and it seems the only way is to use File.OpenBinaryDirect. So I am creating a client context using my oAuth access token and providing the correct path, but I am getting a (401) Unauthorized
    error. Looking with Fiddler I can see that the call to OpenBinaryDirect is somehow trying to post to my file URL and the server is responding with 401.
    context = TokenHelper.GetClientContextWithAccessToken(SPHostUrl, AccessToken);
    FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url);  //throws 401
    //leading slash required otherwise ArgumentOutOfRangeException
    I have to be able to access the older file versions with my c# code -- I don't have a viable app without that ability -- any help urgently needed and greatly appreciated!

    Thank you SO much (Can't wait for the next release)!
    For anyone else who lands here, here's the code I ended up using:
    // VersionAccessUser and VersionAccessPassword are stored in web.config
    // web.Url is loaded via the clientContext
    // myVersion is the FileVersion I got from the file's Versions.GetById() method
    // probably a lot of ways to get hostUrl, it just needs to be https://yourdomain.sharepoint.com/
    // - I'm running my app from a subweb
    // I had trouble following the links to get the full MsOnlineClaimsHelper code
    // (the one on msdn.com was missing RequestBodyWriter, WSTrustFeb2005ContractClient,
    // and IWSTrustFeb2005Contract
    // so I've included the code I used here.
    string myVersionFullUrl = string.Format("{0}/{1}", web.Url, myVersion.Url);
    string userName = WebConfigurationManager.AppSettings.Get("VersionAccessUser");
    string strPassword = WebConfigurationManager.AppSettings.Get("VersionAccessPassword");
    string hostUrl = Regex.Replace(web.Url, "([^/]+//[^/]+/).*", "$1");
    MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(hostUrl, userName, strPassword);
    var client = new WebClient();
    client.Headers["Accept"] = "/";
    client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    client.Headers.Add(HttpRequestHeader.Cookie, claimsHelper.CookieContainer.GetCookieHeader(new Uri(hostUrl)));
    var document = client.DownloadString(myVersionFullUrl);
    // These classes are needed to download old versions of files (see: http://social.msdn.microsoft.com/Forums/en-US/7746d857-d351-49cc-b2f0-496663239e02/how-to-download-a-file-version-from-office-365-using-csom?forum=sharepointdevelopment)
    // I cobbled this file from http://social.technet.microsoft.com/Forums/msonline/en-US/4e304493-7ddd-4721-8f46-cb7875078f8b/problem-logging-in-to-office-365-sharepoint-online-from-webole-hosted-in-the-cloud?forum=onlineservicessharepoint
    // and http://fredericloud.com/2011/01/11/connecting-to-sharepoint-with-claims-authentication/
    using Microsoft.IdentityModel.Protocols.WSTrust;
    using Microsoft.SharePoint.Client;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Security;
    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.Text;
    using System.Web;
    using System.Xml;
    using System.Xml.Linq;
    namespace DPSiDoxAppWeb.Helpers
    /// <summary>
    /// Create a new contract to use for issue claims for the SharePoint requests
    /// </summary>
    [ServiceContract]
    public interface IWSTrustFeb2005Contract
    [OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign,
    Action = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
    ReplyAction = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
    AsyncPattern = true)]
    IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state);
    Message EndIssue(IAsyncResult asyncResult);
    /// <summary>
    /// Implement the client contract for the new type
    /// </summary>
    public class WSTrustFeb2005ContractClient : ClientBase<IWSTrustFeb2005Contract>, IWSTrustFeb2005Contract
    public WSTrustFeb2005ContractClient(Binding binding, EndpointAddress remoteAddress)
    : base(binding, remoteAddress)
    public IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state)
    return Channel.BeginIssue(request, callback, state);
    public Message EndIssue(IAsyncResult asyncResult)
    return Channel.EndIssue(asyncResult);
    /// <summary>
    /// Create a class that will serialize the token into the request
    /// </summary>
    class RequestBodyWriter : BodyWriter
    readonly WSTrustRequestSerializer _serializer;
    readonly RequestSecurityToken _rst;
    /// <summary>
    /// Constructs the Body Writer.
    /// </summary>
    /// <param name="serializer">Serializer to use for serializing the rst.</param>
    /// <param name="rst">The RequestSecurityToken object to be serialized to the outgoing Message.</param>
    public RequestBodyWriter(WSTrustRequestSerializer serializer, RequestSecurityToken rst)
    : base(false)
    if (serializer == null)
    throw new ArgumentNullException("serializer");
    _serializer = serializer;
    _rst = rst;
    /// <summary>
    /// Override of the base class method. Serializes the rst to the outgoing stream.
    /// </summary>
    /// <param name="writer">Writer to which the rst should be written.</param>
    protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
    _serializer.WriteXml(_rst, writer, new WSTrustSerializationContext());
    public class MsOnlineClaimsHelper
    #region Properties
    readonly string _username;
    readonly string _password;
    readonly bool _useRtfa;
    readonly Uri _host;
    CookieContainer _cachedCookieContainer = null;
    DateTime _expires = DateTime.MinValue;
    #endregion
    #region Constructors
    public MsOnlineClaimsHelper(string host, string username, string password)
    : this(new Uri(host), username, password)
    public MsOnlineClaimsHelper(Uri host, string username, string password)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = true;
    public MsOnlineClaimsHelper(Uri host, string username, string password, bool useRtfa)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = useRtfa;
    #endregion
    #region Constants
    public const string office365STS = "https://login.microsoftonline.com/extSTS.srf";
    public const string office365Login = "https://login.microsoftonline.com/login.srf";
    public const string office365Metadata = "https://nexus.microsoftonline-p.com/federationmetadata/2007-06/federationmetadata.xml";
    public const string wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
    public const string wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
    private const string userAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
    #endregion
    class MsoCookies
    public string FedAuth { get; set; }
    public string rtFa { get; set; }
    public DateTime Expires { get; set; }
    public Uri Host { get; set; }
    // Method used to add cookies to CSOM
    public void clientContext_ExecutingWebRequest(object sender, WebRequestEventArgs e)
    e.WebRequestExecutor.WebRequest.CookieContainer = getCookieContainer();
    //e.WebRequestExecutor.WebRequest.UserAgent = userAgent;
    // Creates or loads cached cookie container
    CookieContainer getCookieContainer()
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    // Get the SAML tokens from SPO STS (via MSO STS) using fed auth passive approach
    MsoCookies cookies = getSamlToken();
    if (cookies != null && !string.IsNullOrEmpty(cookies.FedAuth))
    // Create cookie collection with the SAML token
    _expires = cookies.Expires;
    CookieContainer cc = new CookieContainer();
    // Set the FedAuth cookie
    Cookie samlAuth = new Cookie("FedAuth", cookies.FedAuth)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(samlAuth);
    if (_useRtfa)
    // Set the rtFA (sign-out) cookie, added march 2011
    Cookie rtFa = new Cookie("rtFA", cookies.rtFa)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(rtFa);
    _cachedCookieContainer = cc;
    return cc;
    return null;
    return _cachedCookieContainer;
    public CookieContainer CookieContainer
    get
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    return getCookieContainer();
    return _cachedCookieContainer;
    private MsoCookies getSamlToken()
    MsoCookies ret = new MsoCookies();
    try
    var sharepointSite = new
    Wctx = office365Login,
    Wreply = _host.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"
    //get token from STS
    string stsResponse = getResponse(office365STS, sharepointSite.Wreply);
    // parse the token response
    XDocument doc = XDocument.Parse(stsResponse);
    // get the security token
    var crypt = from result in doc.Descendants()
    where result.Name == XName.Get("BinarySecurityToken", wsse)
    select result;
    // get the token expiration
    var expires = from result in doc.Descendants()
    where result.Name == XName.Get("Expires", wsu)
    select result;
    ret.Expires = Convert.ToDateTime(expires.First().Value);
    HttpWebRequest request = createRequest(sharepointSite.Wreply);
    byte[] data = Encoding.UTF8.GetBytes(crypt.FirstOrDefault().Value);
    using (Stream stream = request.GetRequestStream())
    stream.Write(data, 0, data.Length);
    stream.Close();
    using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
    // Handle redirect, added may 2011 for P-subscriptions
    if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
    HttpWebRequest request2 = createRequest(webResponse.Headers["Location"]);
    using (Stream stream2 = request2.GetRequestStream())
    stream2.Write(data, 0, data.Length);
    stream2.Close();
    using (HttpWebResponse webResponse2 = request2.GetResponse() as HttpWebResponse)
    ret.FedAuth = webResponse2.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse2.Cookies["rtFa"].Value;
    ret.Host = request2.RequestUri;
    else
    ret.FedAuth = webResponse.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse.Cookies["rtFa"].Value;
    ret.Host = request.RequestUri;
    catch (Exception ex)
    return null;
    return ret;
    static HttpWebRequest createRequest(string url)
    HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.CookieContainer = new CookieContainer();
    request.AllowAutoRedirect = false; // Do NOT automatically redirect
    request.UserAgent = userAgent;
    return request;
    private string getResponse(string stsUrl, string realm)
    RequestSecurityToken rst = new RequestSecurityToken
    RequestType = WSTrustFeb2005Constants.RequestTypes.Issue,
    AppliesTo = new EndpointAddress(realm),
    KeyType = WSTrustFeb2005Constants.KeyTypes.Bearer,
    TokenType = Microsoft.IdentityModel.Tokens.SecurityTokenTypes.Saml11TokenProfile11
    WSTrustFeb2005RequestSerializer trustSerializer = new WSTrustFeb2005RequestSerializer();
    WSHttpBinding binding = new WSHttpBinding();
    binding.Security.Mode = SecurityMode.TransportWithMessageCredential;
    binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
    binding.Security.Message.EstablishSecurityContext = false;
    binding.Security.Message.NegotiateServiceCredential = false;
    binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
    EndpointAddress address = new EndpointAddress(stsUrl);
    using (WSTrustFeb2005ContractClient trustClient = new WSTrustFeb2005ContractClient(binding, address))
    trustClient.ClientCredentials.UserName.UserName = _username;
    trustClient.ClientCredentials.UserName.Password = _password;
    Message response = trustClient.EndIssue(
    trustClient.BeginIssue(
    Message.CreateMessage(
    MessageVersion.Default,
    WSTrustFeb2005Constants.Actions.Issue,
    new RequestBodyWriter(trustSerializer, rst)
    null,
    null));
    trustClient.Close();
    using (XmlDictionaryReader reader = response.GetReaderAtBodyContents())
    return reader.ReadOuterXml();

  • Certificates for Office 365 Hybrid Exchange 2010 Exchange Online v15

    Certificates for Office 365 Hybrid Exchange 2010 Exchange Online v15
    We need to set up a hybrid server to allow us to begin moving mailboxes to Exchange Online. We created a new Server 2012 R2 server with Exchange 2013 SP1 to act as our Hybrid server. Reading the literature leaves me with questions about what
    certificates I need.  My understanding is that the certificates in play on the on-premise Exchange 2010 servers don't need to be changed.
    I've looked at the TechNet article "Certificate requirements for hybrid deployments" 
    http://technet.microsoft.com/en-us/library/hh563848(v=exchg.150).aspx
    Certificate requirements for the new Exchange 2013 SP1 server are still unclear to me, I think the new server needs a SAN certificate with:
    Hybridserver.domain.edu
    autodiscover.domain.edu
    EWS.domain.edu
    Can anyone clarify?

    Cert is required only if you want to deploy ADFS for SSO.
    Otherwise you can use your existing Cert for all the Services
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Detection rule for Office 365

    Hi
    I'm about to create a application for Office 365 in Configuration Manager 2012 R2.
    I've seen recommendation to look for %programfiles%\Microsoft Office 15\root\Office15. But will that not break when office is upgraded on the client?
    In registry I've HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\O365ProPlusRetail - en-us. And for the looks of it I cannot use this if a user decides to download and install a different version than en-us.
    Any idea on what detection rule I should use for Office 365 that works for next versions of Office 365 (office 2015)?

    Using folder check for "%programfiles%\Microsoft Office 15\root\Office15", might be a bad
    idea.
    You need to use the full path to WINWORD.exe or something.
    If you install Visio using Office 365 it will end up in the same folder, and that will make wrong detection of the application!
    You don't have to worry about the version of Office when running Office 365, but you can get the version directly from the
    WINWORD.exe if you for some reason wants to use it...
    I would recommend that you don't check for the version though.
    Ronni Pedersen | Microsoft MVP - ConfigMgr | Blogs:
    www.ronnipedersen.com/ and www.SCUG.dk/ | Twitter
    @ronnipedersen

  • Project Pro for Office 365 without Office 365 subscription

    I've been looking for hours and can't determine if I have to have an Office 365 subscription to purchase Project Pro for Office 365.  I have a user at our organization that needs Project Pro.  There are no Office 365 accounts.  The price point
    of <$30/month seems more attractive than the $1,200 up front cost. 
    If I do need an account, does that mean I have to pay for the cost of an Office 365 account as well, or is that included?  
    Can there be an Office 365 account on a computer already running Office 2013?  or will it conflict with products already installed?  I can't believe there's no readily available answers anywhere on their website or under the product information.
     Everyone just seems to assume that you're running Office 365 already.

    I believe you can purchase Project Pro through a subscription without also purchasing Office 365 (Word, Excel, PowerPoint).  What is not included if you don't have an Office subscription is you wouldn't have SharePoint nor Lync nor Excel (used for Visual
    Reports in Project).
    I agree the documentation is confusing but I think the reference to Office 365 is the deployment method of running Project as an SaaS (software as a service) application.
    It is reverse of what you are talking, but I successfully run Project as an MSI installation alongside an Office 365 subscription.
    One way to check its functionality with your current installation is to install a trial version. 

  • CodeTwo Backup for Office 365 - local backup and recovery of mailboxes

    Yesterday wasn't a great day for Office 365: http://community.spiceworks.com/topic/1069483-today-was-not-a-good-day-to-migrate-our-senior-managem...Luckily, downtime is a rare occurrence in the Office 365 world. But as an Office 365 admin you have other forces working against you – mailbox size limits, reckless users, scarce licenses, regulations requiring local storage of documents… Am I forgetting something?That’s why CodeTwo developed an offline backup tool for Office 365 mailboxes. CodeTwo Backup for Office 365 lets you download your users’ data to a local drive, preview backed up items in full detail and restore mailboxes, folders and single items – current or previous versions.Here’s a video overview of the application:
    https://www.youtube.com/watch?v=uD1CEwmJKXEYou can trial CodeTwo Backup for Office 365 for 30 days free of...
    This topic first appeared in the Spiceworks Community

    I don't suspect a problem with your approach, but if you don't mind overkill, this would be very safe::
    uninstall dirsync, delete the db
    extend the schema
    reinstall dirsync (get the newest version) and let it
    soft-match everyone.
    Your specific questions (I have not tested the below, but assume it to be true):
    >>AD schema extension will not break our Office 365 production
    environment
    I don't believe the dirsync installer makes any decisions based on the AD schema definition.  I'd think you will need to do a FULL SYNC (reg
    key) once you're done. with the extension, but this doesn't break users.
    >>new attributes will sync to the office 365 environment with a null value (by default) 
    I don't think this will happen.  The absence of the attributes today would be similar to "null".
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Can I run Windows Office 365 through VM Fusion on my Macbook Pro?

    I need to utilize an Outlook 2013 for Windows feature not available on the Mac 2011 version. Specifically, I need to download messages from Dropbox and open and save them with attachment in native .msg format.
    Has anyone had any experience running Windows Office 365 (on Windows 7 or 8) through VM Fusion?  Potential client is very specific about this feature and it's a non-negotiable.
    Thanks, Suzanne

    I use Office 2012 running Windows 7 Pro under Parallels, so I'n GUESSING that it would work just fine under VM Fusion.
    I've encountered no problems whilst running Windows or any Windows-only apps under Parallels. The same should apply under VM Ware as well.
    Good luck,
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • Project Pro for Office 365 vs. Project Pro 2013

    Hello,
    As I already have Project Pro 2013 installed on my PC (which is able to connect to Project Online) I'm not sure if the MS Project I'm using is Project Pro for Office 365 vs. Project Pro 2013.
    Is there any difference in the interface of the 2 products, as there is a noticeable difference between Word 2013 and Word Web App?
    Thanks

    Hello,
    Project Pro 2013 is the same product as Project Pro for Office 365.
    Word 2013 and Word Web App are totally different, Word Web App is web based, Word 2013 is the client tool.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

Maybe you are looking for

  • Deleting data from EDPAR table

    hi  everyone,                            I need to delete data forom table EDPAR. two conditions are there. Once through first radio button in selection screen based on values of kunnr selected from select options. In the second case. if i select the

  • I recently purchased an iPad2 and can't synchronize it to iTunes.

    When I connect it to my PC (Windows 7, iTunes 10.3.1.55), I get a message stating that it could not read from my iPad2 and asking to restore it. I downloaded the most recent iTunes and restored the iPad over and over. After restoration, Ipad launches

  • Issue while installing Flynet Webservice Generator on my laptop

    Hi, I downloaded the 30 day trial version of Xcelsius Engage Server 2008.While trying to install Flynet I am having the following error An Exception occured in the OnAfterInstall event handler of Licensing Service.ProjectInstaller -->Cannot start ser

  • JPasswordField deprecated

    I use the following in my code . I basically have JFrame where someone would put his password and then I fetch the contents from that field.                 if(event.getSource() == OK1 && !(passwordField1.getText().equals("")) )                     p

  • Need to add a SLA in SCSM 2012

    how can i add SLA in SCSM 2012