Monday 15 August 2011

Simple way to debug JavaScript in CRM 2011

Here is a really simple to debug JavaScript in CRM 2011

1. Install IE debug tools and turn off “Disable script debugging” in internet option> Advance
2. Go to where the JavaScript is triggered.
3. Hit F12 to launch debugger
4. Click Script tab




5. Select Script files










6. Put a breakpoint

Monday 8 August 2011

Exchange online 2010 assign mailbox permission

Microsoft does not provide a graphic user interface for admin to add/modify mailbox permissions for individual mailboxes in in Exchange online 2010 (Office 365). If you would like to modify mailboxes permissions you will find yourself in doing PowerShell script.

Here is a simple script that will allow you to connect to Office 365 and add permission to a mailbox:

 # Set execution policy, you can skip this if you already done this in the past
Set-ExecutionPolicy RemoteSigned

#Create connection section. a login will popup to ask you to loin. Make sure you login as admin
$LiveCred = Get-Credential

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

Import-PSSession $Session

#This line actually add permission. This example actually add permission for admin to access info mailbox
Add-MailboxPermission  -Identity info@contoso.com  -user admin@contoso.com -AccessRights FullAccess

# End of script, Enjoy