Log in to the WEB server and open the C:\Program Files\Common Files\Microsoft Shared\Web server Extensions\15\template\controltemplates The "welcome.ascx" file under the directory, add the following code:
<sharepoint:menuitemtemplaterunat= "Server"ID= "Id_loginasdifferentuser"Text= "<% $Resources:wss,personalactions_loginasdifferentuser%>"Description= "<% $Resources:wss,personalactions_loginasdifferentuserdescription%>"Menugroupid= "+"Sequence= "+"Useshortid= "true" />
The entire file code is as follows:
<%@ RegisterTagprefix= "SharePoint"Namespace= "Microsoft.SharePoint.WebControls"Assembly= "Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c" %> <%@ RegisterTagprefix= "Utilities"Namespace= "Microsoft.SharePoint.Utilities"Assembly= "Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c" %> <%@ ImportNamespace= "Microsoft.SharePoint" %> <%@ AssemblyName= "Microsoft.Web.CommandUI, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c" %><%@ ControlLanguage= "C #"Inherits= "Microsoft.sharepoint.webcontrols.welcome,microsoft.sharepoint,version=15.0.0.0,culture=neutral, publickeytoken=71e9bce111e9429c "AutoEventWireup= "false"CompilationMode= "Always" %> <sharepoint:personalactionsaccesskey= "<% $Resources:wss,personalactions_menu_ak15%>"ToolTip= "<% $Resources:wss,open_menu%>"runat= "Server"ID= "Explicitlogout"menualignment= "Right"Visible= "false"> <customtemplate> <sharepoint:featuremenutemplaterunat= "Server"Featurescope= "Site" Location= "Microsoft.SharePoint.StandardMenu"GroupId= "Personalactions"ID= "Id_personalactionmenu"Useshortid= "true" > <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_personalinformation"Text= "<% $Resources:wss,personalactions_personalinformation%>"Description= "<% $Resources:wss,personalactions_personalinformationdescription%>"Menugroupid= "+"Sequence= "+"IMAGEURL= "/_layouts/15/images/menuprofile.gif?rev=23"Useshortid= "true" /> <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_requestaccess"Text= "<% $Resources:wss,personalactions_requestaccess%>"Description= "<% $Resources:wss,personalactions_requestaccessdescription%>"Menugroupid= "+"Useshortid= "true"Sequence= "+" /> <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_loginasdifferentuser"Text= "<% $Resources:wss,personalactions_loginasdifferentuser%>"Description= "<% $Resources:wss,personalactions_loginasdifferentuserdescription%>"Menugroupid= "+"Sequence= "+"Useshortid= "true" /> <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_logout"Text= "<% $Resources:wss,personalactions_logout%>"Description= "<% $Resources:wss,personalactions_logoutdescription%>"Menugroupid= "+"Sequence= "The "Useshortid= "true" /> <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_personalizepage"Text= "<% $Resources:wss,personalactions_personalizepage%>"Description= "<% $Resources:wss,personalactions_personalizepagedescription%>"IMAGEURL= "/_layouts/15/images/menupersonalize.gif?rev=23"Clientonclickscript= "Javascript:changelayoutmode (true);"permissionsstring= "Adddelprivatewebparts,updatepersonalwebparts"Permissionmode= "any"Menugroupid= "$"Sequence= "+"Useshortid= "true" /> <sharepoint:menuitemtemplaterunat= "Server"ID= "Id_switchview"Menugroupid= "$"Sequence= "$"Useshortid= "true" /> <sharepoint:menuitemtemplaterunat= "Server"ID= "Msomenu_restoredefaults"Text= "<% $Resources:wss,personalactions_restorepagedefaults%>"Description= "<% $Resources:wss,personalactions_restorepagedefaultsdescription%>"Clientonclicknavigateurl= "JAVASCRIPT:SP." Sod.execute (' Browserscript ', ' Msowebpartpage_restorepagedefault ') "Menugroupid= "$"Sequence= "+"Useshortid= "true" /> </sharepoint:featuremenutemplate> </customtemplate></sharepoint:personalactions><Sharepoint:applicationpagelinkrunat= "Server"ID= "Explicitlogin"Applicationpagefilename= "Authenticate.aspx"Appendcurrentpageurl=trueText= "<% $Resources:wss,login_pagetitle%>"style= "Display:none"Visible= "false" />
Pre-set Effect:
Post-Set Effect:
SharePoint 2013 Settings "Log on as a different user"