You cannot create multiple System.Management.Automation runspaces in a web application for two or more different users if you use implicit credentials

Update: This information has been published as a KB article: https://support.microsoft.com/en-gb/kb/3115600. When you try and allow multiple users to create System.Management.Automation runspaces in a web application, if you are using implicit credentials (i.e., credentials from impersonation), you will notice that only the first user that accesses the web application is able to call CreateRunspace.  All…

0

PowerShell: Purge folder of items over a certain age

This PowerShell script can be used to purge a folder of its contents, optionally only deleting items before a certain date. Example usage: .\Purge-MailboxFolder user1.ex2k10@hybrid.local “Test Folder” “02/Aug/2013” -Impersonate -SearchForFolder The above will search for the first folder called Test Folder in the mailbox of user1.ex2k10@hybrid.local, and when found it will delete all messages dated…

5

Exchange Web Services and SharePoint without ApplicationImpersonation

A question that I have seen crop up quite a bit on the internet is how to use EWS with a SharePoint webpart.  Using EWS is quite easy, as you can simply reference the managed API and use that – but the main implementation headache is how to set up authentication.  A lot of customers…

3

EWS Impersonation in a Mixed 2007/2010 Environment

The question came up recently whether one user account can be used to impersonate all mailboxes in an environment consisting of Exchange 2007 and 2010 servers.  As most people realise, there have been huge changes to the permissions structure between the two versions (2010 introducing RBAC), so can we grant the relevant permissions to one…

0