Category Archives: Uncategorized

Enable-O365integration : Credential cannot be authenticated

Enable-O365integration : Credential cannot be authenticated
At line:1 char:1
+ Enable-O365integration -o365accountupn "xxxxxxxxxxxxxxxxxxxxxxxxxxx" -Pas ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Enable-O365Integration], O365ConfigureException
+ FullyQualifiedErrorId : InvalidInvoke,Microsoft.WindowsServerSolutions.O365Integration.EnableO365IntegrationPSCmdlet

If you ever get this error you need to disable the windows azure active directory sync in the Dashboard before continuing

Searching Recent Event Logs with C#

Hi guys,

Today I was looking into event log searching. I run a script that does a chkdsk on reboot but then when the machine boots I want to see the log from that report.

To do this, I search the registry for the most recent event within a certain time period (I choose 1 day). We can use Linq to make the filtering quite easy.

Cheers to StackOverflow for the basis of this code.

RVM, Merb, Rake and RSpec

I was having terrible difficulty getting Merb to work with RSpec. Turns out that Merb now uses Bundler, and if you don’t edit your Gemfile to include rspec it bails on you.

This was solved by adding the line to the bottom of the Gemfile in the project root.

Ruby chat-server with Fibers & Eventmachine

Posting this mostly for my reference so I don’t lose it again later.