You may never need this tip, but I recently ran into an issue where my article page's Edit Page button stopped working in SharePoint 2013 (probably something I messed up with the master page... I'll fix it later). I Googled and Binged everywhere, but couldn't find how to switch an article page to edit mode.
All you need to do is append your page URL with the following parameters:
So if your page is: http://mysharepointserver/pages/tdamnededitbutton.aspx You would write: http://mysharepointserver/pages/tdamnededitbutton.aspx?DisplayMode=Design&ControlMode=Edit
I hope it saves someone else from having to search.
Did anyone have any problems with the Edit button not working? Share below!
In my previous article, I discuss best practices on how to choose high resolution photos to use in user profile pictures for Office 365.
You can upload user profile pictures using the Office 365 Admin Center. It may be obvious to everyone else, but I didn’t know this was possible until a very astute coop student showed me this feature (after I spent an afternoon telling him the only way to do this was to use PowerShell). So, to save you the embarrassment, here is the web-based method:
In Office 365, you can upload profile pictures for each user’s contact card. The contact card will appear in Outlook, SharePoint, Lync, Word, Excel, PowerPoint… well, in any Office product that displays contact cards 🙂
While this isn’t a new concept to Office 2013, and this feature is available in On Premise installations, these articles focus on Office 365.
You’ll find all sorts of confusing information online regarding the dimensions, file size and format restrictions. I found that either of the two methods described in this article will work with almost any file sizes and dimensions.
There are, however, some best practices.
Choose Square Photos
Choose a square image as the source (i.e.: same width and height), otherwise the picture will be cropped when you upload and you may end up with portions of people’s faces being cropped out.
Will be automatically cropped to:
Go for the Max
Lync 2010 supported the ability to view contact photos which were stored as part of the thumbnailPhoto attribute in Active Directory, meaning that pictures could only be 48x48 pixels.
However, Lync 2013 can now store photos in user’s Exchange 2013 mailbox, meaning that it supports images of up to 648x648 pixels.
When you upload a photo to Exchange 2013, it automatically creates 3 versions of the photo:
Active Directory thumbnailPhoto attribute
Outlook 2013 Web App Outlook 2013 Lync Web App Lync 2013 SharePoint
Lync 2013 Lync Web App
If you only upload a smaller image (e.g.: 48x48), it’ll be scaled to 96x96 and 648x648, resulting in photos that look fuzzy. However, if you upload photos that are already 648x648. The system will automatically generate 48x48 and 96x96 thumbnails for you.
Initialize the remote session by entering: Import-PSSession $RemoteSession
Doing so will import all the required Cmdlets to manage Exchange – this is why you don’t need to install any Exchange PowerShell modules or anything like that.
If you get an error at this time telling you something about script execution not being enabled (or something like that, I never read the actual error message). Enter the following command to enable remotely signed commands:
The above command is only required if you got an error. Some articles may say that you need to set the execution policy to Unrestricted, but – being paranoid – I prefer to limit the policy to remote signed commands. If you got an error while trying to set the execution policy, it is most likely because you forgot to Run as Administrator as indicated in step 1 above. Tsk tsk, pay attention! Once you set the execution policy without an error, try step 5 again.
Once the session has been imported, you’ll have new Cmdlets available. The most important one being Set-UserPhoto. But before you need to call Set-UserPhoto, you need to load the photo you want to use. To do so, call:
$photo = "pathofyourphoto.jpg"
Making sure to replace pathofyourphoto with the file name for the picture you wish to upload
Now you can set the user’s photo by using the following command: