Tuesday, January 31, 2012

Opening a Sharepoint 2010 site using claims authentication and the object model

ClientContext ctx = new ClientContext(someSiteUrl);

ctx.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication;
ctx.FormsAuthenticationLoginInfo = new
FormsAuthenticationLoginInfo(myUserName, myUserPwd);

//get the web
Web w = ctx.Web;

//execute the query
ctx.ExecuteQuery();

http://blogs.technet.com/b/speschka/archive/2010/06/03/using-the-client-object-model-with-a-forms-based-auth-site-in-sharepoint-2010.aspx

Tuesday, January 03, 2012

Office 365 - Powershell connection

To connection to Office 365 use the following set of commands.  Firstly let Powershell have permission to run remotely signed scripts.  Then set the credentails to logon with, create a Powershell session to Office365.  Import the commands you can use in that session and then off you go....



Set-ExecutionPolicy RemoteSigned
$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
------------------------------------------


Once you have a session then you can use commands to assign permissions such as:

Add-MailboxPermission "Telephone Messages" -User IanSmit@mycompany.com -AccessRights FullAccess

Monday, January 02, 2012

Office 365 - hiding an external contact from the GAL

1. Connect to Exchange Online by using PowerShell. For more information about how to do this, see the following article:
http://help.outlook.com/en-us/beta/cc952755.aspx?sl=1
2. Run the following cmdlet to hide an external mail contact:
Set-MailContact -Identity -HiddenFromAddressListsEnabled $true
By doing so, the external mail contact will be hidden from global address list (GAL).

How to turn on email archiving in Office 365

It took me a while to see if this was even available in Office 365 P1 Plan, but it is and you can enable it as follows:

·         Login to your web login.microsoftonline.com portal
·         Admin
·         Users
·         Select user and Edit
·         More from the menu under the user name
·         Change Mailbox Settings
·         Expand mailbox features
·         Select Archive and Click Enable


(Don’t forget to check the default policies are what you require)
·         Goto Outlook Web
      ·         Options (top right)
      ·         See All Options
·         Organise Email
·         Retention Policies

Sunday, January 01, 2012

Displaying other Outlook accounts when migrating to Office 365

In migrating Email accounts in Outlook 2010 to Office 365, Ive been copying email from the users existing exchange account to the new Office 365 folders (after adding the new Office 365 account as an additional Exchange account in Outlook)

I then needed to add additional mailboxes from the new Office 365 users onto the secretaries Outlook, however the normal functionality wouldnt work.  Additionally when I tried to remove the existing Exchange account from Outlook after copying all the emails and folders over, I found that Outlook wouldnt let me.

The only solution seems to be to create a brand new Outlook mail Profile for the new Office 365 user.  Then you will be able to add the new Office 365 additional users.

The reason is that Outlook doesnt allow opening multiple mailboxes that belown to different Exchange organisations or domains. 

See this thread for more information