Event Attachments Opens Excel Spreadsheets in XLViewer Apologies for my ignorance. I pasted your powershell script directly into the SharePoint 2010 Management Shell. I get the following error: Unexpected token 'Get-SPSite' in expression or statement.