In Powershell:
Set-SPuser -identity “DOMAIN\accountname” -DisplayName “Name Surname” -web <URL of Site>
In Powershell:
Set-SPuser -identity “DOMAIN\accountname” -DisplayName “Name Surname” -web <URL of Site>
USE SharePoint_Config
GO
ALTER DATABASE SharePoint_Config SET RECOVERY SIMPLE
DBCC SHRINKFILE(N'SharePoint_Config_log', 1)
ALTER DATABASE SharePoint_Config SET RECOVERY FULL
GO
xpath: /root//node[not(@y <= preceding-sibling::node/@y) and not(@y <=following-sibling::node/@y)]
XmlDocument doc = new XmlDocument();
doc.Load("data.xml");
XmlNodeList nodeList = doc.SelectNodes("/root/node[not(@score <= preceding-sibling::node/@score) and not(@score <=following-sibling::node/@score)]");
StringBuilder output = new StringBuilder();
output.Append("<b>");
for (int i = 0; i < nodeList.Count; i++)
{
output.Append("<b " +
nodeList[i].ParentNode.Attributes["parentAttribute1"].OuterXml + " " +
nodeList[i].ParentNode.Attributes["parentAttribute2"].OuterXml + ">");
output.Append(nodeList[i].OuterXml);
output.Append("</b>");
}
output.Append("</b>");
I solved my problem :)
if (HttpContext.Current.Request.Cookies["FedAuth"] != null)
{
HttpCookie requestCookie = new HttpCookie("FedAuth");
requestCookie.Secure = false;
requestCookie.Expires = DateTime.Now.AddYears(-1);
}
FederatedAuthentication.SessionAuthenticationModule.SignOut();
FormsAuthentication.SignOut();
Response.Redirect("~/redirecturl");
In SharePoint Powershell:
Set url:
PS C:\Users\User> Set-SPCustomLayoutsPage -Identity "Signout" -RelativePath
"/_layouts/CustomSignout.aspx" -WebApplication http://webappurl
Get url:
PS C:\Users\User> Get-SPCustomLayoutsPage -Identity "Signout" –WebApplication “http://webappurl”
1. Take a copy of Welcome.ascx file (under 12 hive\Template\ControlTemplates folder)
2. Rename it as CustWelcome.ascx
3. Find the tag with Personalization For Eg:
<SharePoint:MenuItemTemplate runat=”server” id=”ID_PersonalInformation”
Text=”<%$Resources:wss,personalactions_personalinformation%>”
Description=”<%$Resources:wss,personalactions_personalinformationdescription%>”
MenuGroupId=”100″
Sequence=”100″
ImageUrl=”/_layouts/images/menuprofile.gif”
UseShortId=”true”
Visible=”true”
/>
Change the Visible to false (if visible is missing add it and set it as false)
<SharePoint:MenuItemTemplate runat=”server” id=”ID_PersonalInformation”
Text=”<%$Resources:wss,personalactions_personalinformation%>”
Description=”<%$Resources:wss,personalactions_personalinformationdescription%>”
MenuGroupId=”100″
Sequence=”100″
ImageUrl=”/_layouts/images/menuprofile.gif”
UseShortId=”true”
Visible=”false”
/>
Now go to the master page and change the reference from welcome.ascx file to CustWelcome.ascx
http://ganpages.wordpress.com/2009/12/07/moss-2007-hide-my-settings-menu-item/