tag:blogger.com,1999:blog-13124071914694776412024-03-14T10:52:25.312-07:00SharePoint 2010 ExperiencesAnonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-1312407191469477641.post-67833084085722440812014-05-15T19:05:00.000-07:002014-05-15T19:05:23.098-07:00DateTime<div dir="ltr" style="text-align: left;" trbidi="on">
<xsl:value-of select="ddwrt:FormatDateTime(string(ddwrt:Today()),1033,'dd')"/><br />
<br />
<a href="http://clintoncherry.wordpress.com/2007/05/09/displaying-todays-date-using-xsl-and-sharepoint/" target="_blank">Displaying today’s date using XSL and SharePoint</a><br />
<span style="font-family: Courier New, Courier, monospace;"> < xsl:value-of select="ddwrt:Today()"></span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<strong style="background-color: white; border: 0px; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">FormatDate</strong><span style="background-color: white; line-height: 24px;">(string szDate, long lcid, long formatFlag) </span><br />
<span style="background-color: white; line-height: 24px;">FormatDate(@Today, 1033, @No)</span><br />
<span style="background-color: white; line-height: 24px;"><br /></span>
<span style="background-color: white; font-style: italic; line-height: 24px;">1 : 5/9/2007</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">3 : Wednesday, May 09, 2007</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">4 : 9:06 AM</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">5 : 5/9/2007 9:06 AM</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">7 : Wednesday, May 09, 2007 9:06 AM</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">12: 9:06:12 AM</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">13: 5/9/2007 9:06:12 AM</span><br style="background-color: white; font-style: italic; line-height: 24px;" /><span style="background-color: white; font-style: italic; line-height: 24px;">15: Wednesday, May 09, 2007 9:06:12 AM</span><br />
<span style="background-color: white; font-style: italic; line-height: 24px;"><br /></span>
<span style="background-color: white; font-style: italic; line-height: 24px;"></span><br />
<span style="line-height: 24px;"><i> < xsl:value-of select="ddwrt:FormatDateTime(string(ddwrt:Today()), 1033,'yyyyMMdd')" > < /xsl:value-of > </i></span><br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<a href="http://sharepointroot.com/2011/06/08/xsltlistviewwebpart-date-format-using-ddwrt/" target="_blank">XsltListViewWebPart Date Format using DDWRT</a><br />
<span style="font-family: Courier New, Courier, monospace;"> <xsl:value-of select="ddwrt:FormatDateTime(string(@Modified), 3081, ‘dd-MMM-yyyy’)" /></span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splocale.lcid.aspx" target="_blank">SPLocale.LCID property</a> & <a href="http://technet.microsoft.com/en-us/library/cc824907(v=office.14).aspx" target="_blank">Regional settings (SharePoint Server 2010)</a><br />
<span style="font-family: Courier New, Courier, monospace;"> Australia: 3081</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Persian: 1065</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-52992088874239923342014-05-15T18:51:00.001-07:002014-05-15T18:52:38.479-07:00Branding CSS and Javascript tricks<div dir="ltr" style="text-align: left;" trbidi="on">
How To: Hide Left Side Navigation on Home Page<br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"><style type="text/css"></span><br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> </span><span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">body #s4-leftpanel </span></span><span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">{</span></span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">display: none;</span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">} </span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">.s4-ca </span></span><span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">{</span></span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">margin-left: 0px;</span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">} </span><br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> </style></span><br />
<br />
How To: Hide Recently Modified<br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"><style type="text/css"></span><br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> .s4-recentchanges </span><span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">{</span><span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">display:none;</span><span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">}</span><br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"></style></span><br />
<span style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"><br /></span>
How To: Change the “No Items” message in a discussion web part with jQuery<br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><script type="text/javascript"></span></span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> $(document).ready(function(){</span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> $("td .ms-vb:contains('There are no items to show in')").text('There are no active discussions');</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> });</span></span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"></script></span><br />
<br />
How To: Hiding “Add new item” and “There are no items to show…” in SharePoint<br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">https://www.threewill.com/2013/12/hiding-add-new-item-and-there-are-no-items-to-show-in-sharepoint/</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><br /></span></span>
How To: How To Remove Extra Space Around the Web Part In SharePoint 2013<br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><style type="text/css"></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> .ms-webpartPage-root {</span></span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">border-spacing: 0px !important;</span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">}</span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> .ms-webpartzone-cell {</span></span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">margin: 0px !important;</span><span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">}</span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"></style></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><br /></span></span>
How To: <a href="http://techtrainingnotes.blogspot.com.au/2009/11/sharepoint-hide-web-part-with-zero-rows.html" target="_blank">Hide a web part with zero rows</a><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><script></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">function HideWebPartWithZeroRows()</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">{</span></span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> var a = document.getElementsByTagName("TABLE")</span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> for (var i=0;i<a.length;i++)</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> {</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> if (a[i].summary=="Test List")</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> {</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> if (a[i].rows.length==1)</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> {</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> //hide all but the title bar</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> //var x = a[i].parentNode.parentNode.parentNode.parentNode.parentNode</span></span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> //hide the entire web part</span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> var x = a[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><br /></span></span>
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"> x.style.display="none";</span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> }</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> }</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> }</span></span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">}</span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;">_spBodyOnLoadFunctionNames.push("HideWebPartWithZeroRows") </span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"></script></span><br />
<span style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 15px; line-height: 20.790000915527344px;"><br /></span>
How To: Remove link border from around image<br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><style></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> a img {border:none}</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"></style></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><a href="http://sharepoint.stackexchange.com"></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> <img src="http://cdn.sstatic.net/sharepoint/img/logo.png"></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"></a></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><br /></span></span>
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;">OR via inline styles:</span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><a href="http://sharepoint.stackexchange.com"></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"> <img src="http://cdn.sstatic.net/sharepoint/img/logo.png" style="border:none;"></span></span><br />
<span style="font-size: 15px; line-height: 20.790000915527344px;"><span style="color: #333333; font-family: Courier New, Courier, monospace;"></span></span><br />
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"></a></span></span><br />
<div>
<span style="color: #333333; font-family: Courier New, Courier, monospace;"><span style="font-size: 15px; line-height: 20.790000915527344px;"><br /></span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-48686398453291801102014-03-10T23:59:00.001-07:002014-03-10T23:59:29.187-07:00SharePoint 2010 on Windows Server 2012<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
When you try and run the SharePoint 2010 prerequisite on Windows Server 2012 R2, you will receive an error and it fails right away.
</span>
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsLFcxS7rCnF-RWY_U0uFNLbIh71gJciuM2KKvra_ymwzYKrHIOd9q_38Kf1_jqYXYK6FfXoHtTyqf0m0CveNP-1qzuEwroM3-ePNT-b952RcOj7XeaxnDKH89sa9U_YbgAIhWZEwUCu0/s1600/0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsLFcxS7rCnF-RWY_U0uFNLbIh71gJciuM2KKvra_ymwzYKrHIOd9q_38Kf1_jqYXYK6FfXoHtTyqf0m0CveNP-1qzuEwroM3-ePNT-b952RcOj7XeaxnDKH89sa9U_YbgAIhWZEwUCu0/s1600/0.png" height="301" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQxsxiRkvX_aaltPPRKmXbUPkdvdHe3Cpz1rrDIsD7u7jgNlChyFiJ4IzZjqCI9W684vZV1o3JcEDlUwymaTgFmg2PvpFf0pw7H-d1xtqMsRz4SJyV7Y4yTUHMn2D2jmcxhmQVYYufr6s/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQxsxiRkvX_aaltPPRKmXbUPkdvdHe3Cpz1rrDIsD7u7jgNlChyFiJ4IzZjqCI9W684vZV1o3JcEDlUwymaTgFmg2PvpFf0pw7H-d1xtqMsRz4SJyV7Y4yTUHMn2D2jmcxhmQVYYufr6s/s1600/1.png" height="210" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
To get around the issue, Run PowerShell and execute this command:
</span>
</div>
<div style="margin: 0cm 0cm 0.0001pt 36pt;">
<span style="background: white; color: #4c4c4c; font-family: "Courier New";">
Get-WindowsFeature | Where-Object {$_.name -like "*net*" }
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
If the above doesn't work for you, type
</span>
<u><span style="color: #4c4c4c; font-family: "Courier New";">Import-module servermanager</span></u>
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
to add the
</span>
<span style="color: #4c4c4c; font-family: "Courier New";">Get-WindowsFeature</span>
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
cmdlet.
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
The above command is to see which .NET features were installed. ASP.net 3.5 is not installed and that might be our missing link:
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF3HwR5TIyKh0dRBO32Bxya4C7Wi70dMKdIZrLsnXaXyL9XMmcKqrrLqjUa-8uLGwMwjE1GRLFtWnBR1RPXL0YuaVAJtKH7C5eCokylFBniCEkNYUGY3RemP9GYirzzfENPXnYL4c6iP0/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF3HwR5TIyKh0dRBO32Bxya4C7Wi70dMKdIZrLsnXaXyL9XMmcKqrrLqjUa-8uLGwMwjE1GRLFtWnBR1RPXL0YuaVAJtKH7C5eCokylFBniCEkNYUGY3RemP9GYirzzfENPXnYL4c6iP0/s1600/2.png" height="218" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
To add it, you’ll need your Windows 2012 R2 source media. Assuming your media is in your D: drive, the command to add it would look like this:
</span>
</div>
<div style="margin: 0cm 0cm 0.0001pt 36pt;">
<span style="background: white; color: #4c4c4c; font-family: "Courier New";">
Add-WindowsFeature Web-Asp-Net -Source D:\sources\sxs
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
If you have an .iso file, mount it to a drive and then replace the "D:\" with your own drive letter.
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip3NDhfuYV2g6D9br70e_bEUZR764zYYo4vIFBm9mDukHXJfKDFMt2VO5mc9jZAEiJVnDDyVuxBYu3SJlyyWqPBTl9_vDkVwcx8VlQ5uzxDiSdK6-WJ3p1SF-JdCGr6rpM0-gChYXuLRs/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip3NDhfuYV2g6D9br70e_bEUZR764zYYo4vIFBm9mDukHXJfKDFMt2VO5mc9jZAEiJVnDDyVuxBYu3SJlyyWqPBTl9_vDkVwcx8VlQ5uzxDiSdK6-WJ3p1SF-JdCGr6rpM0-gChYXuLRs/s1600/3.png" height="290" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
After executing the command, wait for few minutes until the new command line shows (as bellow) this will add the asp.net stuff that the SharePoint prerequisite installer wants.
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNZcUFraCK9XvGDfbNjxs88W9Aug4WUzs7lAV23yqf8DE5-ZoHb-PJAn8LftliaBiTUBCW4n3zg9qcKpy4lfQzJnhiY4sNMjNJKHIg16wA96-3MezgGgEZm9npn7kU1G004XnJzGh5OGU/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNZcUFraCK9XvGDfbNjxs88W9Aug4WUzs7lAV23yqf8DE5-ZoHb-PJAn8LftliaBiTUBCW4n3zg9qcKpy4lfQzJnhiY4sNMjNJKHIg16wA96-3MezgGgEZm9npn7kU1G004XnJzGh5OGU/s1600/4.png" height="292" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
Now if we run the perquisite again, it runs successfully and we can move on to install SharePoint.
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV9u2aXIhrYlsVtk22sAv5nVgL6XbDZO8yJhfYqvpJ8-X6TIyXoyMYlg-WoTI9xUY4WRJbeKyBXJiZDhtK_VyHMCBuERE1tO4QUDl3pvG6Q3yDik46OV53B3MSXt20Y3PmF2xvumLeZl0/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV9u2aXIhrYlsVtk22sAv5nVgL6XbDZO8yJhfYqvpJ8-X6TIyXoyMYlg-WoTI9xUY4WRJbeKyBXJiZDhtK_VyHMCBuERE1tO4QUDl3pvG6Q3yDik46OV53B3MSXt20Y3PmF2xvumLeZl0/s1600/5.png" height="301" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Calibri, sans-serif; font-size: 12.0pt;">
Note: in my case, I had to restart windows first before continue the installation.
</span>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYB6fCupKITfjkVFkRMuGhyQE39pUKznZ-cnc2iPXauVK7eZAXwo5OpBQ4ob4510TNB3j4CcKUrnmyWA9ee2KG9kUaakpxAnDRlXM-B7GT_u4hiQr3rxST7Tp-9guwrOmWzI93WBhIIbM/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYB6fCupKITfjkVFkRMuGhyQE39pUKznZ-cnc2iPXauVK7eZAXwo5OpBQ4ob4510TNB3j4CcKUrnmyWA9ee2KG9kUaakpxAnDRlXM-B7GT_u4hiQr3rxST7Tp-9guwrOmWzI93WBhIIbM/s1600/6.png" height="252" width="400" /></a>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-68080695347358912012014-02-23T20:16:00.000-08:002014-02-23T20:16:43.793-08:00ATTACH TO PROCESS<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background: white; text-autospace: none;">
<span style="color: blue; font-family: "Lucida Console"; font-size: 9.0pt; mso-fareast-language: EN-AU;">cd</span><span style="font-family: "Lucida Console"; font-size: 9.0pt; mso-fareast-language: EN-AU;"> <span style="color: blueviolet;">c:\Windows\System32\inetsrv</span><o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="background: white; text-autospace: none;">
<span style="color: blue; font-family: "Lucida Console"; font-size: 9.0pt; mso-fareast-language: EN-AU;">.\appcmd.exe</span><span style="font-family: "Lucida Console"; font-size: 9.0pt; mso-fareast-language: EN-AU;"> <span style="color: blueviolet;">list</span> <span style="color: blueviolet;">wp <o:p></o:p></span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-49585420415959439082014-02-20T23:08:00.004-08:002014-02-20T23:08:52.204-08:00How to Change an Image's Size and Shape in SharePoint<div dir="ltr" style="text-align: left;" trbidi="on">
source: http://sharepoint.rackspace.com/how-to-change-image-size-and-shape-in-sharepoint<br />
<br />
<div class="ExternalClassA8996B76828D42F29ABAEFF12C589EA3">
<strong><span id="ms-rterangecursor-start"></span>Scenario:</strong>
I see it all the time: SharePoint content owners create sites using
images that are much too large for Web consumption. It’s easy to understand why
this happens. Sally Site-Owner gets a photo or image from the marketing
department that was created for print or some other high-resolution format.
Sally uploads the image to SharePoint and simply resizes its height and width
using the ribbon controls to make the page look nice. Of course, resizing an
image in this way doesn’t actually make the file size any smaller, and now end
users (potentially even users on slow or metered mobile connections) will have
to patiently download the large image to see the
page.<br /><br />SharePoint 2013 answers this problem with a SharePoint
Server publishing feature known as image renditions. With image renditions, you
can add images to a library and easily add them to pages using various
predetermined widths and heights
without downloading
the full-sized image.<br />
<strong>Steps:</strong><br />
I’ll assume the first two are pretty easy to figure out without me
going through the steps. To turn on Blob Caching, simply navigate to the
web.config file for your SharePoint site on the physical server. It is usually
located in a directory similar to C:\inetpub\wwwroot\wss\VirtualDirectories\80.
You can use IIS to help find the directory if you want. Open web.config in an
editor like Notepad (when you hit Save, IIS will reset the SharePoint site, so
make sure not to do this on production during peak hours) and use Control-F to
find the first instance of “<BlobCache”. In this line, you will see
enabled="false". Simply change this to “true” and hit save.<br />
<br />
Now you can create your own image-rendition sizes fromSettings
> Site settings > Look and Feel > Image Renditions.
There should be a few predefined sizes
you can use. To create your own, simply click Add new item, enter a name, width
and height, then click Save. Now, when you add images to a picture library, you
will have a rendition that matches that size that you can work
with.<br />
To work with the image renditions, navigate to your picture
library and upload a picture. Once the picture thumbnail shows in the library,
hover over it, click the ellipsis in the bottom-right, and then click Edit
Renditions.<br />
<br />
From here, you will see a list of all the renditions that are
available, with images already created for each size. You can edit the sizing
and cropping of a rendition from Click to change. This will show you a dashed
box that is constrained to the size of the image rendition, and you can move and
resize photo accordingly to show the image in the best possible way. This can be
useful for showing faces or text in smaller sizes.<br />
With your image renditions set up and configured, now you can select
from the different size options when you insert an image into a publishing page.
After editing a page and inserting the image, from the ribbon you would just
click the image tab and then choose from the Pick Rendition dropdown.<br />
Because an image rendition is being used, the image in my example is
actually a 150px by 150px file and should download quicker than a full-sized
image. Pretty cool, right? What if you want to reference the image rendition
directly using code or without the ribbon? Well that’s pretty easy: You can pass
URL parameters to the image for either the RenditionID (the number in the image
rendition list order: 1, 2, 3, etc.), or for width and/or height.<br />
<br />
For example, in my sample to the right, the raw image URL
inSharePoint was:<br />
"http://sp15/PublishingImages/1012858_10152057897829676_916248115_n.jpg"<br />
If I want to load the image rendition for 304x100, I can reference the
image like this:<br />
http://sp15/PublishingImages/1012858_10152057897829676_916248115_n.jpg?Width=304&Height=100<br />
<br />You can reference an image with just the height or width also, but
if there are multiple matching renditions, the first will be
returned.<br />
<br />
Image rendition is a pretty handy feature for helping content authors
create images that are sized appropriately for the Web. Oh hey, did I forget to
mention that image renditions work with videos also? So be sure to try that out
as well!<span id="ms-rterangecursor-end"></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-60459787445693066492014-02-20T23:08:00.000-08:002014-02-20T23:08:02.490-08:00Can’t crawl web apps you KNOW you should be able to crawl<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=107">http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=107</a><br />
<br />
http://support.microsoft.com/kb/896861/en-gb<br />
<br />
<span style="font-family: 'segoe ui', arial, verdana, tahoma, sans-serif; font-size: 13px;">To
specify the host names that are mapped to the loopback address and can connect
to Web sites on your computer, follow these steps:</span>
<br />
<ol style="font-family: 'segoe ui', arial, verdana, tahoma, sans-serif; font-size: 13px; margin: 16px 0px 16px 40px; padding: 0px;">
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Set
the
<div class="reg_path" style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-break: break-all;">
DisableStrictNameChecking</div>
registry entry to 1. For more
information about how to do this, click the following article number to view the
article in the Microsoft Knowledge Base:
<div class="indent" style="margin: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 0px;">
<a class="KBlink" href="http://support.microsoft.com/kb/281308" style="text-decoration: none;">281308</a> Connecting to SMB share on a Windows
2000-based computer or a Windows Server 2003-based computer may not work with an
alias name</div>
</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Click <strong class="uiterm">Start</strong>,
click <strong class="uiterm">Run</strong>, type <span class="userInput" style="font-weight: bold;">regedit</span>, and then click <strong class="uiterm">OK</strong>.</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">In
Registry Editor, locate and then click the following registry key:
<div class="indent" style="margin: 0px; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 0px;">
<strong class="uiterm">
<div class="reg_path" style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-break: break-all;">
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0</div>
</strong></div>
</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Right-click <strong class="uiterm">MSV1_0</strong>, point
to <strong class="uiterm">New</strong>,
and then click <strong class="uiterm">Multi-String Value</strong>.</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Type <span class="userInput" style="font-weight: bold;">BackConnectionHostNames</span>, and then press ENTER.</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Right-click <strong class="uiterm">BackConnectionHostNames</strong>, and then click <strong class="uiterm">Modify</strong>.</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">In
the <strong class="uiterm">Value
data</strong> box, type the host name
or the host names for the sites that are on the local computer, and then
click<strong class="uiterm">OK</strong>.</li>
<li style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Quit
Registry Editor, and then restart the IISAdmin service.</li>
</ol>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-5754939713410188592014-02-20T23:07:00.001-08:002014-02-20T23:07:17.209-08:00SharePoint Trick: Link to an Image Thumbnail<div dir="ltr" style="text-align: left;" trbidi="on">
<ul class="unIndentedList" style="font-family: arial, helvetica, sans-serif; font-size: 13px; line-height: 15px; list-style-type: square; margin: 15px 15px 15px 30px; padding: 0px;">
<li style="padding-bottom: 8px;">Navigate to the image in the image library where
it is stored.</li>
<li style="padding-bottom: 8px;">Click on the image so that you see the "item
view" of the image. The default attributes such as Name, Title, and Preview will
show up, along with an attribute called <strong>Thumbnail Preview</strong>.</li>
<li style="padding-bottom: 8px;">The link to the Thumbnail Preview is not easily
exposed, but you can "cheat" and find it by right clicking on the image and then
selecting Properties.</li>
<li style="padding-bottom: 8px;">Select the entire contents of the Address (URL)
field shown in the thumbnail image properties. Be sure to keep scrolling in the
Address (URL) field until you have captured the complete URL for the thumbnail.
You will know if you have it right if you see _jpg.jpg at the end.</li>
<li style="padding-bottom: 8px;">You can then paste this "secret" URL in a
hyperlink column in your list and the link will show the thumbnail, not the
image preview.</li>
</ul>
<div>
You can also create the link to the Thumbnail on your own by inserting the
characters <strong>_t/ </strong>in front of the file name and the
characters <strong>_jpg </strong>immediately after the file name in
the default image URL as shown below:</div>
<div>
Link to default image preview:</div>
<ul style="font-family: arial, helvetica, sans-serif; font-size: 13px; line-height: 15px; list-style-type: square; margin: 15px 15px 15px 30px; padding: 0px;">
<li style="padding-bottom: 8px;">intranet/sitename/libraryname/foldername/imagename.jpg</li>
</ul>
<div>
Link to Thumbnail for the same image:</div>
<br />
<ul style="font-family: arial, helvetica, sans-serif; font-size: 13px; line-height: 15px; list-style-type: square; margin: 15px 15px 15px 30px; padding: 0px;">
<li style="padding-bottom: 8px;">intranet/sitename/libraryname/foldername/<strong>_t/</strong>imagename<strong>_jpg</strong>.jpg</li>
</ul>
<div>
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
SharePoint Governance: To get started, it’s important
to have the right conversations!</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://view.officeapps.live.com/op/view.aspx?src=http%3A%2F%2Ftiny.cc%2FSharePointGovQuestions">http://view.officeapps.live.com/op/view.aspx?src=http%3A%2F%2Ftiny.cc%2FSharePointGovQuestions</a> </div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
<br /></div>
</div>
</div>
<div>
<span style="font-family: arial, helvetica, sans-serif; font-size: x-small;"><span style="line-height: 15px;">source: http://www.networkworld.com/community/blog/sharepoint-trick-link-image-thumbnail</span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-33111628436872362352014-02-20T23:06:00.000-08:002014-02-20T23:06:08.655-08:00patterns & practices SharePoint Guidance <div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<div>
patterns & practices SharePoint Guidance</div>
<div>
<a href="http://spg.codeplex.com/"><span style="color: #0072bc;">http://spg.codeplex.com/</span></a></div>
<div>
</div>
<div>
<div>
Developing Applications for SharePoint 2010</div>
<div>
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=23919"><span style="color: #0072bc;">http://www.microsoft.com/en-us/download/details.aspx?id=23919</span></a></div>
<div>
<a href="http://msdn.microsoft.com/en-us/library/ff770300.aspx">http://msdn.microsoft.com/en-us/library/ff770300.aspx</a></div>
<div>
</div>
<div>
Intro to SharePoint 2010 patterns and practices - Logging</div>
<div>
<a href="http://alexangas.com/blog/2011/09/intro-to-sharepoint-2010-patterns-practices-logging/"><span style="color: #0072bc;">http://alexangas.com/blog/2011/09/intro-to-sharepoint-2010-patterns-practices-logging/</span></a></div>
</div>
<div>
</div>
<div>
Error Logging in SharePoint</div>
</div>
<a href="http://spmatt.wordpress.com/tag/sharepoint-guidance-library/">http://spmatt.wordpress.com/tag/sharepoint-guidance-library/</a><br />
<br />
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
SharePoint 2013 development overview</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://msdn.microsoft.com/en-us/library/office/jj164084.aspx">http://msdn.microsoft.com/en-us/library/office/jj164084.aspx</a></div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
<a href="http://msdn.microsoft.com/en-us/library/ff798413.aspx">http://msdn.microsoft.com/en-us/library/ff798413.aspx</a></h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
Put the JavaScript or XAP files in a SharePoint
library, and enable binary large object (BLOB) caching. BLOB caching instructs
SharePoint to cache BLOB content, such as JavaScript and XAP files, on the
SharePoint Web front-end servers. It also enables client browsers to cache the
content. If BLOB caching is not enabled, the HTTP header that returns the
JavaScript or XAP resources to the client will instruct the browser not to cache
the files. It does this by including a cache-control: private directive and by
setting an expiration time in the past. As a result, neither the client browser
nor the web front-end server will cache the content, which instead will be
retrieved from the content database on every request. BLOB caching is a
SharePoint Server 2010 feature and must be enabled in the configuration files
for the SharePoint web applications, so to some degree you are at the mercy of
the farm administrator. For more information on BLOB caching, see Disk-Based
Caching for Binary Large Objects. <br /><a href="http://msdn.microsoft.com/en-us/library/aa604896.aspx">http://msdn.microsoft.com/en-us/library/aa604896.aspx</a> </div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
REST in SP2010</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://sharepointnadeem.blogspot.in/search/label/REST">http://sharepointnadeem.blogspot.in/search/label/REST</a></div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
SHAREPOINT GUIDANCE FOR SHAREPOINT 2013</div>
<div class="ms-rtestate-field">
http://graegert.de/blog/sharepoint-guidance-for-sharepoint-2013/ </div>
</div>
</div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-47079562480014358012014-02-20T23:04:00.000-08:002014-02-20T23:04:14.879-08:00SharePoint Development Debugging<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-PostBody">
<div>
<div class="ms-rtestate-field">
<div class="ExternalClass4EDDF3BD99F645BCA6215CEACECDFFF4">
<div>
I've been reading a lot of posts on how to get debugging going when
attaching to the w3wp.exe process.</div>
<h2 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 0px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-Disable%27EnableJustMyCode%27inVisualStudio"></a>Disable
'Enable Just My Code' in Visual Studio</h2>
<div>
This <span class="nobr"><a class="external-link" href="http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?ID=23" style="text-decoration: none;">blog
post<sup><img align="absMiddle" alt="" border="0" class="rendericon" height="7" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/linkext7_2785451.gif" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px;" width="7" /></sup></a></span> started me off in the correct direction by
setting the Tools | Options | Debugging setting correctly.</div>
<h2 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 0px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-Modifytheweb.config"></a>Modify the
web.config</h2>
<div>
Furthermore, it prompted me to change the web.config value from
debug="false" to debug="true". The web.config file can be found in the
Inetpub\wwwroot\wss\VirtualDirectories\ folder, each folder in there maps to an
IIS Web Application which you can find by going to IIS Manager and looking at
the Home Directory.<br />To get full blown ASP.NET errors rather than SharePoint
branded "useless" ones follow these steps:</div>
<h3 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 4px 2px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-SettingCallStack%3Dtrue"></a>Setting
CallStack=true</h3>
<div>
By default, WSS will redirect a user to the error page whenever an
unhandled exception is encountered during the render cycle. To disable this
behavior, open your web.config and set CallStack="true" in the <SafeMode>
node. This allows you to see a typical Asp.net error page.</div>
<h3 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 4px 2px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-SettingcustomErrorsmode..."></a>Setting
customErrors mode...</h3>
<div>
The next step would be set mode="Off" in the <customErrors> node.
This instructs Asp.net to show you a complete error report rather than a generic
"Server Error" page.</div>
<h2 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 0px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-Creatingpdbs"></a>Creating pdbs</h2>
<div>
For each project you wish to debug, you need to ensure that you are
creating pdbs. I am using the really cool stsdev app to create my projects and
had to modify it to create pdbs by going to Project Properties and on the Build
tab in the Output Section click the Advanced button. </div>
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/clip_image001_thumb_2785451.png" />
<span style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 18px;">Then
ensure that Debug Info is set to pdb-only. </span><br />
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/clip_image0014_thumb_2785451.png" /><br />
<br />
<h2 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 0px; padding: 0px;">
Attach
to Process</h2>
The author of the previous referenced post also pointed me to running iisapp
on the command line to output a list of all the running instance to know which
process to attach to:<br />Then when you select Debug | Attach to Process the ID
matches to the PID in the output of iisapp. Note you need to check 'Show
processes from all users' as w3wp.exe will be typically running as another
account.<br />
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/clip_image0016_thumb_2785451.png" /><br />
<span style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 18px;">You
can check that you have the correct id by pressing CTRL-ALT-U and this will list
all the Modules that are loaded with statuses on the symbols that are available
(e.g. that when you create a breakpoint it'll work rather than giving you a 'No
symbols loaded' errror).</span><br />
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/clip_image0018_thumb_2785451.png" /><br />
<div>
Sometimes there are just too many instances of w3wp.exe to pick from. An
easy way to just let the system sort things out for you, rather than inserting a
breakpoint, is to insert the following line in your code:</div>
<div class="code panel" style="border-width: 1px; font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 18px; margin: 0px; padding: 0px;">
<div class="codeContent panelContent" style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<pre class="code-java" style="padding: 0px;"><span class="code-object">System</span>.Diagnostics.Debugger.Break();
</pre>
</div>
</div>
<div>
<br class="atl-forced-newline" /></div>
<h2 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 0px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-NotesforVisualStudioDebuggingNewbies"></a>Notes
for Visual Studio Debugging Newbies</h2>
<br />
<div>
Once you are actually debugging and can step through code after it breaks
on a breakpoint...you can also use the Immediate window to inspect objects by
pressing CTRL-ALT-I. From here you can get up intellisense on any object in
context which is a great way to inspect things like whether a SharePoint list
has an Event Receiver on it or not. </div>
<div>
</div>
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/clip_image00110_thumb_2785451.png" /><br />
<div>
Original Source: <span class="nobr"><a class="external-link" href="http://wss.made4the.net/archive/2008/03/10/sharepoint-debugging-no-symbols-loaded.aspx" style="text-decoration: none;">SharePoint
Debugging - Jeremy Thake<sup><img align="absMiddle" alt="" border="0" class="rendericon" height="7" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/linkext7_2785451.gif" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px;" width="7" /></sup></a></span></div>
<h2 style="font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: italic; line-height: 18px; margin: 0px; padding: 0px;">
<a href="" name="SharePointDevelopmentDebugging-ThewebserverprocessthatwasbeingdebuggedhasbeenterminatedbyInternetInformationServices%28IIS%29"></a>The
web server process that was being debugged has been terminated by Internet
Information Services (IIS)</h2>
<div>
If you are debugging in IIS7.0 you will find that you will receive this
error if you leave it on a break point for too long.</div>
<br />
<br />
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/terminatedbyIIS_2785451.png" /><br />
<br />
<div class="error" style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 18px; margin: 0px; padding: 0px;">
<span class="error">Unknown macro: {NewCode}</span>
<div>
---------------------------<br />Microsoft Visual
Studio<br />---------------------------<br />The web server process that was being
debugged has been terminated by Internet Information Services (IIS). This can be
avoided by configuring Application Pool ping settings in IIS. See help for
further details.<br />---------------------------<br />OK
Help<br />---------------------------</div>
</div>
<br />
<div>
The Resolution is to follow these steps on <span class="nobr"><a class="external-link" href="http://msdn.microsoft.com/en-us/library/bb763108.aspx" style="text-decoration: none;">MSDN - Error: Web
site worker process has been terminated by IIS</a></span></div>
<div>
<span class="nobr"><sup></sup></span> </div>
<img alt="" src="https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Photos/iispingsettings_2785451.png" /><br />
<br />
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
Optimizing SharePoint sites</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://www.sharepointnutsandbolts.com/2009/06/my-checklist-for-optimizing-sharepoint.html">http://www.sharepointnutsandbolts.com/2009/06/my-checklist-for-optimizing-sharepoint.html</a> </div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
Debugging JQuery</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://www.sharepointnutsandbolts.com/2010/12/sp2010-ajax-part-6-debugging.html">http://www.sharepointnutsandbolts.com/2010/12/sp2010-ajax-part-6-debugging.html</a> </div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
Enabling JavaScript Intellisense for SharePoint
Development</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://blogs.msdn.com/b/kaevans/archive/2010/06/25/enable-javascript-intellisense-for-sharepoint-development.aspx">http://blogs.msdn.com/b/kaevans/archive/2010/06/25/enable-javascript-intellisense-for-sharepoint-development.aspx</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
source: https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Pages/SharePoint%20Development%20Debugging.aspx</div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-47001590158367506292014-02-20T23:02:00.002-08:002014-02-20T23:02:36.881-08:00Get SharePoint fields internal name<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-rteThemeForeColor-2-0">
Use this powershell command:</div>
<pre class="prettyprint prettyprinted ms-rteThemeForeColor-5-0" style="direction: ltr; list-style-type: none; min-height: 70px; overflow-x: auto; overflow-y: visible; padding: 2px; vertical-align: baseline; word-wrap: normal;"><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$list </span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="typ" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Get</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="typ" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">SPWeb</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="str" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"http://portal.contoso.com"</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">).</span><span class="typ" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Lists</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="str" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"Demo List"</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">]</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
$list</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.</span><span class="typ" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Fields</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">|</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">?{</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$_</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">title </span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">eq </span><span class="str" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"Title"</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">|</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> FT </span><span class="typ" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Title</span><span class="pun" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">,</span><span class="pln" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="typ" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">InternalName</span></pre>
<div class="ms-rteThemeForeColor-2-0">
Example:</div>
PS C:\Users\spt.prod.installer> <span class="ms-rteForeColor-8">$list =
(Get-SPWeb "http://emfl</span><span class="ms-rteForeColor-8">ow").Lists["work
items"]</span><br />PS C:\Users\spt.prod.installer> <span class="ms-rteForeColor-8">$list.Fields | ?{$_.title -eq "Title"} | FT Title,
InternalName</span><br />
<div>
Title
InternalName<br />-----
------------<br />Title
Title<br />Title
LinkTitleNoMenu<br />Title
LinkTitle<br />Title LinkTitle2</div>
<br /><br />
<div>
PS C:\Users\spt.prod.installer><span class="ms-rteForeColor-8">
$list.Views | FT viewfields</span></div>
<br />
<div>
ViewFields<br />----------<br />{Activity_x0020_ID, Status, Entry_x0020_Date,
SLA_x0020_Date...}<br />{Modified, Activity_x0020_ID, Status,
Entry_x0020_Date...}<br />{Modified, Activity_x0020_ID,
Assign_x0020_Bucket_x003a_Group_, Entry_x0020_...<br />{Activity_x0020_ID, Status,
Entry_x0020_Date, SLA_x0020_Date...}<br />{Modified, Activity_x0020_ID,
Assign_x0020_Bucket_x003a_Group_, Entry_x0020_...<br />{Modified,
Activity_x0020_ID, Status, Entry_x0020_Date...}<br />{Activity_x0020_ID, Status,
Entry_x0020_Date, SLA_x0020_Date...}<br />{Activity_x0020_ID,
Assign_x0020_Bucket_x003a_Group_, Entry_x0020_Date,
SLA_...<br />{Activity_x0020_ID, Assign_x0020_Bucket_x003a_Group_,
Entry_x0020_Date, SLA_...<br />{Activity_x0020_ID, Status, Entry_x0020_Date,
SLA_x0020_Date...}<br />{Activity_x0020_ID, Status, Entry_x0020_Date,
SLA_x0020_Date...}<br />{Activity_x0020_ID, Status, Entry_x0020_Date,
SLA_x0020_Date...}<br />{Activity_x0020_ID, Status, Entry_x0020_Date,
SLA_x0020_Date...}</div>
<div>
<br />PS C:\Users\spt.prod.installer></div>
<br />
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-13448058331957074442014-02-20T23:01:00.003-08:002014-02-20T23:01:51.823-08:00SharePoint 2013 REST API endpoint links<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://htvspt13dev1:1020/_api/web/lists/getByTitle('Events')/items">http://htvspt13dev1:1020/_api/web/lists/getByTitle('Events')/items</a><br />
<a href="http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('posts')">http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('posts')</a><br />
<img alt="SharePoint REST request syntax" height="191" src="http://i.msdn.microsoft.com/dynimg/IC671252.png" style="height: 183px;" title="SharePoint REST request syntax" width="513" /><br />
<br />
<br />
<div>
To access a specific site collection, use the following construction:</div>
<a href="http://htvspt13dev1:1020/_api/site">http://htvspt13dev1:1020/_api/site</a><br />
To access a specific site, use the following construction: <br />
<a href="http://htvspt13dev1:1020/_api/web">http://htvspt13dev1:1020/_api/web</a><br />
<br />
<table class="ms-rteTable-1">
<tbody>
<tr class="ms-rteTableHeaderRow-1">
<th class="ms-rteTableHeaderEvenCol-1">
<div>
Feature area</div>
</th>
<th class="ms-rteTableHeaderOddCol-1">
<div>
Access point</div>
</th></tr>
<tr class="ms-rteTableOddRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
Site</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http://<span class="parameter">server/site</span>/_api/site </div>
</td></tr>
<tr class="ms-rteTableEvenRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
Web</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http://<span class="parameter">server/site</span>/_api/web</div>
</td></tr>
<tr class="ms-rteTableOddRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
User Profile</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http:// <span class="parameter">server/site</span>/_api/SP.UserProfiles.PeopleManager</div>
<div>
<a href="http://htvspt13dev1:1020/_api/SP.UserProfiles.PeopleManager">http://htvspt13dev1:1020/_api/SP.UserProfiles.PeopleManager</a></div>
</td></tr>
<tr class="ms-rteTableEvenRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
Search</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http:// <span class="parameter">server/site</span>/_api/search</div>
<div>
<a href="http://htvspt13dev1:1020/_api/search">http://htvspt13dev1:1020/_api/search</a></div>
</td></tr>
<tr class="ms-rteTableOddRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
Publishing</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http:// <span class="parameter">server/site</span>/_api/publishing</div>
</td></tr>
</tbody></table>
<br />
<br />
<table class="ms-rteTable-1">
<tbody>
<tr class="ms-rteTableHeaderRow-1">
<th class="ms-rteTableHeaderEvenCol-1">
<div>
Client object model API </div>
</th>
<th class="ms-rteTableHeaderOddCol-1">
<div>
REST endpoint</div>
</th></tr>
<tr class="ms-rteTableOddRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
ClientContext.Web.Lists</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http://<span class="parameter">server</span>/<span class="parameter">site</span>/_api/web/lists</div>
<div>
<div>
<a href="http://htvspt13dev1:1020/_api/web/lists"><span style="color: #0072bc;">http://htvspt13dev1:1020/_api/web/lists</span></a></div>
</div>
</td></tr>
<tr class="ms-rteTableEvenRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
ClientContext.Web.Lists[guid]</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http://<span class="parameter">server</span>/<span class="parameter">site</span>/_api/web/lists(‘<span class="parameter">guid</span>’)</div>
</td></tr>
<tr class="ms-rteTableOddRow-1">
<td class="ms-rteTableEvenCol-1">
<div>
ClientContext.Web.Lists.GetByTitle("Title")</div>
</td>
<td class="ms-rteTableOddCol-1">
<div>
http://<span class="parameter">server</span>/<span class="parameter">site</span>/_api/web/lists/getbytitle(‘<span class="parameter">Title</span>’)</div>
<div>
<div>
<a href="http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('posts')"><span style="color: #0072bc;">http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('posts')</span></a></div>
</div>
</td></tr>
</tbody></table>
<br />
<div class="caption">
SharePoint REST parameter syntax</div>
<br /><img alt="SharePoint REST service method parameter syntax" src="http://i.msdn.microsoft.com/dynimg/IC671253.png" title="SharePoint REST service method parameter syntax" /><br />
<a href="http://htvspt13dev1:1020/_api/web/lists/getbytitle('Events')/fields/getByTitle('Title')">http://htvspt13dev1:1020/_api/web/lists/getbytitle('Events')/fields/getByTitle('Title')</a><br />
<br />
<div>
To construct URIs that correspond to static methods or properties, use the
corresponding API name from the ECMAScript object model, starting with the
namespace declaration and using dot notation. For example, <a href="http://msdn.microsoft.com/en-us/library/ee658947.aspx" target="_blank">SP.Utilities.Utility.getImageUrl(imageName)</a> in the ECMAScript
client object model would have the following REST equivalent:</div>
<div>
<span class="code">http://server/site/_api/SP.Utilities.Utility.getImageUrl('imageName')</span></div>
<br />
<a href="http://htvspt13dev1:1020/Roblog/Lists/Photos/_api/SP.Utilities.Utility.getImageUrl('CEOBlogImg.png')">http://htvspt13dev1:1020/Roblog/Lists/Photos/_api/SP.Utilities.Utility.getImageUrl('CEOBlogImg.png')</a><br />
<br />
<div>
The following example shows how to <strong>retrieve</strong> all of a
list’s items.</div>
<div class="codeSnippetContainer">
<div class="codeSnippetContainerTabs">
</div>
<div class="codeSnippetContainerCodeContainer">
<div class="codeSnippetContainerCode" dir="ltr">
<div>
<pre>url: http://site url/_api/web/lists/GetByTitle(‘Test')/items
method: GET
headers:
Authorization: "Bearer " + accessToken
accept: "application/json;odata=verbose" or “application/atom+xml”
</pre>
</div>
</div>
</div>
</div>
<div>
The following example shows how to <strong>retrieve</strong> a specific
list item.</div>
<br />
<div class="codeSnippetContainer">
<div class="codeSnippetContainerCodeContainer">
<div class="codeSnippetContainerCode" dir="ltr">
<div>
<pre>url: http://site url/_api/web/lists/GetByTitle(‘Test')/items(item id)
method: GET
headers:
Authorization: "Bearer " + accessToken
accept: "application/json;odata=verbose" or “application/atom+xml”
</pre>
</div>
</div>
</div>
</div>
<br />
<a href="http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('photos')/items(1)">http://htvspt13dev1:1020/Roblog/_api/web/lists/getByTitle('photos')/items(1)</a><br />
<br />
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
URI Conventions - Filter System Query Option
($filter)</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://www.odata.org/documentation/odata-v2-documentation/uri-conventions/">http://www.odata.org/documentation/odata-v2-documentation/uri-conventions/</a>
<br /></div>
</div>
<div class="ms-rtestate-field">
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
<a href="http://msdn.microsoft.com/en-US/library/office/jj163227#bkmk_constructquery">http://msdn.microsoft.com/en-US/library/office/jj163227#bkmk_constructquery</a></h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
web/lists/getByTitle('ListName')/Items?$select=Title&$filter=AverageRating
gt 3</div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
source: http://msdn.microsoft.com/en-us/library/office/dn292556.aspx</div>
<div class="ms-rtestate-field">
<br /></div>
</div>
</div>
</div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-26028023104010083072014-02-20T22:59:00.002-08:002014-02-20T22:59:27.695-08:00Making the Newsfeed web part available outside of My Sites in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-rteStyle-Normal ms-rteFontSize-2">
<span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">This
is actually a web part titled </span><strong style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">Newsfeed</strong><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">,
and can be found under the </span><strong style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">Social
Collaboration</strong><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;"> category. Now, you may want to have the
Newsfeed on the homepage of your main portal rather than My Site. To make this
web part available in your site collection, you will need to activate the
feature with title “</span><strong style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">My
Site Layouts Feature</strong><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">“.
This is a hidden </span><em style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">site
collection</em><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;"> feature so you will need to use SharePoint
Manager or PowerShell. The feature ID is </span><strong style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">6928B0E5-5707-46a1-AE16-D6E52522D52B</strong><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">.
Its physical location under {SharePointRoot} is </span><strong style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">TEMPLATE\FEATURES\MySiteLayouts</strong><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">.</span></div>
<div class="ms-rteStyle-Normal ms-rteFontSize-2">
<span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">This
feature brings a number of other web parts and also the </span><em style="border: 0px; font-family: georgia, 'bitstream charter', serif; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">MySite.master</em><span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;"> master page. Check its manifest for further
details.</span></div>
<div class="ms-rteStyle-Normal ms-rteThemeFontFace-1 ms-rteFontSize-2">
<span style="line-height: 24px;"></span><span style="line-height: 24px;">Enable-SPFeature
-Identity 6928B0E5-5707-46a1-AE16-D6E52522D52B -Url </span><a href="http://yoursitecollection/" rel="nofollow" style="border: 0px; line-height: 24px; margin: 0px; padding: 0px; vertical-align: baseline;">http://yourSiteCollection</a></div>
<br />
<div class="ms-rteStyle-Normal ms-rteThemeFontFace-1 ms-rteFontSize-2">
<span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;">The
SiteFeedWebPart is in the Microsoft.SharePoint.Portal.WebControls
namespace.</span></div>
<div class="ms-rteStyle-Normal ms-rteThemeFontFace-1 ms-rteFontSize-2">
<span style="font-family: georgia, 'bitstream charter', serif; line-height: 24px;"><br /></span></div>
<h4 class="ms-CommentTitle">
Making My Tasks web part available outside of
MySites</h4>
<div>
<div>
<div class="ms-rtestate-field">
The My Tasks web part exists in MySites by default,
and can be found under the Content Rollup category. To make this web part
available outside of MySites, activate the “My Tasks Dashboard” feature.
<br /><br />This is a hidden Web-scoped feature. The feature ID is
89D1184C-8191-4303-A430-7A24291531C9, and the feature folder under
SharePointRoot is MyTasksDashboard. <br /><br /><a href="http://bernado-nguyen-hoan.com/2013/03/03/making-my-tasks-web-part-available-outside-of-mysites/">http://bernado-nguyen-hoan.com/2013/03/03/making-my-tasks-web-part-available-outside-of-mysites/</a></div>
</div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
source: http://bernado-nguyen-hoan.com/2013/02/12/making-the-newsfeed-web-part-available-outside-of-my-sites-in-sharepoint-2013/</div>
<div class="ms-rtestate-field">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-72803064775493974652014-02-20T22:58:00.003-08:002014-02-20T22:58:17.771-08:00How to Get Login Name and Display Name using SharePoint 2013 REST API<div dir="ltr" style="text-align: left;" trbidi="on">
<pre lang="jscript" style="font-family: consolas, 'courier new', courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;">jQuery.ajax({
url: <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">/SiteName/_api/web/lists/getbytitle('ListName')/items"</span>,
type: <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">GET"</span>,
headers: { <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Accept"</span>: <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">application/json;odata=verbose"</span> },
success: <span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">function</span>(data, textStatus, xhr) {
<span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">var</span> dataResults = data.d.results;
<span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">var</span> resultId = dataResults[<span class="code-digit" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: navy; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">0</span>].AuthorId.results[<span class="code-digit" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: navy; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">0</span>];
getUser(resultId)
},
error: <span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">function</span>(xhr, textStatus, errorThrown) {
alert(<span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">error:"</span>+JSON.stringify(xhr));
}
});
<span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">function</span> getUser(id){
<span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">var</span> returnValue;
jQuery.ajax({
url: <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">http://YourSite/_api/Web/GetUserById("</span> + id + <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)"</span>,
type: <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">GET"</span>,
headers: { <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Accept"</span>: <span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">application/json;odata=verbose"</span> },
success: <span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">function</span>(data) {
<span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">var</span> dataResults = data.d;
<span class="code-comment" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: green; font-style: italic; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">//</span><span class="code-comment" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: green; font-style: italic; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">get login name
</span> <span class="code-keyword" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: blue; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">var</span> loginName = dataResults.LoginName.split(<span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">'</span><span class="code-string" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: purple; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">|'</span>)[<span class="code-digit" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: navy; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">1</span>];
alert(loginName);
<span class="code-comment" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: green; font-style: italic; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">//</span><span class="code-comment" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: green; font-style: italic; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">get display name
</span> alert(dataResults.Title);
}
});
}</pre>
<pre lang="jscript" style="overflow: auto; padding: 6px; word-wrap: break-word;"><span style="font-family: consolas, courier new, courier, mono;"><span style="font-size: 12.222222328186035px; white-space: pre-wrap;">How to Get Login Name and Display Name using SharePoint 2013 REST API</span></span></pre>
<pre lang="jscript" style="overflow: auto; padding: 6px; word-wrap: break-word;"><span style="font-family: consolas, courier new, courier, mono;"><span style="font-size: 12.222222328186035px; white-space: pre-wrap;">http://www.codeproject.com/Articles/692289/How-to-Get-Login-Name-and-Display-Name-using-Share</span></span></pre>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-18119044255219763682014-02-20T22:57:00.002-08:002014-02-20T22:57:30.205-08:00AngularJS <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-PostBody">
<div>
<div class="ms-rtestate-field">
<div class="ExternalClass9AFD88A318F14098AD7D8D7D2BF0F1E6">
SharePoint 2013 Apps and AngularJS - The basics<br />
<a href="http://blog.meligo.be/2013/08/sharepoint-2013-apps-and-angularjs-the-basics/">http://blog.meligo.be/2013/08/sharepoint-2013-apps-and-angularjs-the-basics/</a><br />
SharePoint Hosted App with CSOM & AngularJS for MVC Javascript<br />
<a href="http://www.jeremythake.com/2013/10/sharepoint-hosted-app-with-angularjs-for-mvc-javascript/">http://www.jeremythake.com/2013/10/sharepoint-hosted-app-with-angularjs-for-mvc-javascript/</a><br />
Marc D Anderson<br />
<a href="http://sympmarc.com/">http://sympmarc.com/</a><br />
Mark Rackley <br />
<a href="http://www.sharepointhillbilly.com/default.aspx">http://www.sharepointhillbilly.com/default.aspx</a><br />
Andrew Connell <br />
<a href="http://www.andrewconnell.com/">http://www.andrewconnell.com/</a><br />
SharePoint Hosted App with CSOM & AngularJS for MVC Javascript<br />
http://www.jeremythake.com/2013/10/sharepoint-hosted-app-with-angularjs-for-mvc-javascript/</div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com1tag:blogger.com,1999:blog-1312407191469477641.post-71881050629249920902014-02-20T22:56:00.002-08:002014-02-20T22:56:31.251-08:00"Sign in as Different User" menu option is missing in SharePoint Server 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: 'segoe ui', arial, verdana, tahoma, sans-serif; font-size: 13px;"><a href="http://siteurl/_layouts/closeConnection.aspx?loginasanotheruser=true">http://siteurl/_layouts/closeConnection.aspx?loginasanotheruser=true</a> </span><br />
<span style="font-family: 'segoe ui', arial, verdana, tahoma, sans-serif; font-size: 13px;"><br /></span>
<h4 class="ms-CommentTitle">
Bookmarklet to Sign in as a Different User</h4>
<div>
<div>
<div class="ms-rtestate-field">
<a href="http://blog.credera.com/technology-insights/microsoft-solutions/how-to-sign-in-as-a-different-user-in-sharepoint-2013/">http://blog.credera.com/technology-insights/microsoft-solutions/how-to-sign-in-as-a-different-user-in-sharepoint-2013/</a></div>
</div>
</div>
<div class="ms-rtestate-field">
<br /></div>
<div class="ms-rtestate-field">
"Sign in as Different User" menu option is missing in SharePoint Server 2013</div>
<div class="ms-rtestate-field">
http://support.microsoft.com/kb/2752600</div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-81645752182013980522014-02-20T22:55:00.001-08:002014-02-20T22:55:25.134-08:00User Profile (issues when NetBIOS name is different from FQDN) <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-rteFontSize-2 ms-rteThemeForeColor-2-0">
<strong>Problem:</strong></div>
<div class="ms-rteThemeForeColor-2-0">
After installing user profile and sync with
active directory, all the users prefix is changed to "corp/".</div>
<img alt="user Profile 1.PNG" height="409" src="http://testthepulse/howto/PublishingImages/user%20Profile%201.PNG" style="height: 421px; margin: 5px;" width="982" /><br /><br /><span class="ms-rteThemeForeColor-2-0">For any profile which
you click on "Edit My Profile", even without making any changes, the prefix will
change to "NTDOMAIN\".</span><br />
<img alt="user Profile 2.PNG" src="http://testthepulse/howto/PublishingImages/user%20Profile%202.PNG" style="margin: 5px;" /><br /><br />
<div class="ms-rteThemeForeColor-2-0 ms-rteFontSize-2">
<strong>Reason:</strong></div>
<div class="ms-rteThemeForeColor-2-0">
HBF adctive directory domain name and
DNS name is different:</div>
<img alt="Set.PNG" height="541" src="http://testthepulse/howto/PublishingImages/Set.PNG" style="height: 508px; margin: 5px;" width="546" /><br />
<div class="ms-rteFontSize-2 ms-rteThemeForeColor-2-0">
<strong>Solution:</strong></div>
<ul>
<li>First, delete the AD connections from the user profile manage page.</li>
<li>then, run this powershell command</li>
</ul>
<blockquote dir="ltr" style="margin-right: 0px;">
<div class="ms-rteFontFace-2 ms-rteThemeForeColor-2-0">
Get-SPServiceApplication</div>
<img alt="Get-SPServiceApplication.PNG" height="247" src="http://testthepulse/howto/PublishingImages/Get-SPServiceApplication.PNG" style="height: 257px; margin: 5px;" width="522" /><br />
<div class="ms-rteFontFace-2 ms-rteThemeForeColor-2-0">
$upsa =
Get-SPServiceApplication -Id <GUID of User Profile Service Application>
<br />$upsa.NetBIOSDomainNamesEnabled = 1 <br />$upsa.Update() </div>
Replace <GUID of User Profile Service Application> with the service
guid above.<br />
<img alt="NetBIOSDomainNamesEnabled.PNG" src="http://testthepulse/howto/PublishingImages/NetBIOSDomainNamesEnabled.PNG" style="margin: 5px;" /><br /></blockquote>
<br />
<ul>
<li>Restart IIS and OWSTimer</li>
<li>Recreate the AD connection</li>
<li>Run full import twice</li>
<li>Run incremental sync</li>
</ul>
<div>
<table border="0" cellpadding="0" cellspacing="0" class="ms-commenttable" dir="None" style="width: 100%px;">
<tbody>
<tr>
<td width="690">
<h4 class="ms-CommentTitle">
Use case: Automatically importing user profile
pictures to SharePoint 2013 (and 2010)</h4>
</td>
<td align="right" class="ms-blogedit"><br /></td></tr>
</tbody></table>
<div class="ms-CommentBody">
<div>
<div class="ms-rtestate-field">
<a href="http://www.sharepointusecases.com/index.php/2012/12/use-case-automatically-importing-user-profile-pictures-to-sharepoint-2013-and-2010/">http://www.sharepointusecases.com/index.php/2012/12/use-case-automatically-importing-user-profile-pictures-to-sharepoint-2013-and-2010/</a></div>
</div>
<div class="ms-rtestate-field">
SP2010 User Profile Service Application Setup and NetBIOSDomainNamesEnabled Issues</div>
<div class="ms-rtestate-field">
http://www.freakingsharepoint.com/2012/12/sp2010-user-profile-service-application.html </div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-62768860811795211012014-02-20T22:53:00.002-08:002014-02-20T22:53:57.375-08:00err 5766 - Error provisioning the local timer service instance during deploying of administration application pool credentials<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-rteThemeForeColor-2-0">
this error happens when the application pool
account password has been changed.</div>
<img alt="log err jww virtual.PNG" height="282" src="http://testthepulse/howto/PublishingImages/log%20err%20jww%20virtual.PNG" style="height: 259px; margin: 5px; width: 571px;" width="656" /><br /><br /><span lang="EN">
</span><br />
<div>
"Error provisioning the local timer service instance during deploying of
administration application pool credentials, please provision manually. The
password for the account NTDOMAIN\spa, as currently stored in SharePoint, is not
the same as the current password for the account within Active Directory. To fix
this with PowerShell, run Set-SPManagedAccount -UseExistingPassword."</div>
<div>
</div>
<div class="ms-rteThemeForeColor-2-0">
To resolve the issue, run this powershell
command.</div>
<blockquote dir="ltr" style="margin-right: 0px;">
<div>
<span class="ms-rteThemeBackColor-10-1 ms-rteFontFace-2">Set-SPManagedAccount
-UseExistingPassword</span> </div>
</blockquote>
<br />
<br />
<img alt="Set-SPManagedAccount.PNG" height="304" src="http://testthepulse/howto/PublishingImages/Set-SPManagedAccount.PNG" style="height: 298px; margin: 5px;" width="602" /><br /><br />
<br />
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-88425332265392784422014-02-20T22:52:00.002-08:002014-02-20T22:52:45.926-08:00Hide SharePoint Navigation<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: blue; font-family: consolas; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">style</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">type</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">="text/css"></span><span style="color: #555555; font-family: 'segoe ui', 'sans-serif'; font-size: 10pt;"></span><br />
<span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">#s4-ribbonrow</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">.ms-cui-topBar2</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">.s4-notdlg</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">.s4-pr</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">s4-ribbonrowhidetitle</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">.s4-notdlg</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">noindex</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">#ms-cui-ribbonTopBars</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">#s4-titlerow</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">#s4-pr</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">s4-notdlg</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">s4-titlerowhidetitle</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">, </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">#s4-leftpanel-content</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> {</span><span style="color: red; font-family: consolas; font-size: 9.5pt;">display</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">:</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">none</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">!important</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">;}</span><span style="color: #555555; font-family: 'segoe ui', 'sans-serif'; font-size: 10pt;"></span><br />
<span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">.s4-ca</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">{</span><span style="color: red; font-family: consolas; font-size: 9.5pt;">margin-left</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">:</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">0px</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">!important</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">; </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">margin-right</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">:</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">0px</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">!important</span><span style="color: #555555; font-family: consolas; font-size: 9.5pt;">;}</span><br />
<span style="color: blue; font-family: consolas; font-size: 9.5pt;"></</span><span style="color: maroon; font-family: consolas; font-size: 9.5pt;">style</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="color: #555555; font-family: 'segoe ui', 'sans-serif'; font-size: 10pt;"></span><br />
<span><br /></span>
<span id="ms-rterangepaste-end">Hide ScrollBar</span><br />
<br />
<br />
<style type="text/css"><br />body.v4master { overflow: visible; height:
inherit; width: inherit;}<br />body #s4-workspace { overflow: visible !important;
} <br />body #s4-ribbonrow { position: fixed; z-index: 1000;
overflow-y:visible;}<br />#s4-ribbonrow .ms-MenuUIPopupBody, #s4-ribbonrow
.ms-popoutMenu, .ms-cui-menu[id ^= "Ribbon."] { position: fixed !important; }
<br />.ms-dlgOverlay { width: 100% !important; } <br /></style><br />
<br />
<br />
my notes:<br />
<h4 class="ms-CommentTitle">
Corporate Library</h4>
<div>
<div>
<div class="ms-rtestate-field">
Remove webpart: <br /><a href="http://thepulse/corporatelibrary/Site%20Pages/Forms.aspx?Contents=1">http://thepulse/corporatelibrary/Site%20Pages/Forms.aspx?Contents=1</a>
<br /><br />Add css below: <br /><style type="text/css"> <br /> #s4-ribbonrow,
.ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex,
#ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle,
#s4-leftpanel-content {display:none !important;} <br /> .s4-ca{margin-left:0px
!important; margin-right:0px !important;} <br /><br />body.v4master { overflow:
visible; height: inherit; width: inherit;} <br />body #s4-workspace { overflow:
visible !important; } <br />body #s4-ribbonrow { position: fixed; z-index: 1000;
overflow-y:visible;} <br />#s4-ribbonrow .ms-MenuUIPopupBody, #s4-ribbonrow
.ms-popoutMenu, .ms-cui-menu[id ^= "Ribbon."] { position: fixed !important; }
<br />.ms-dlgOverlay { width: 100% !important; } <br /></style></div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-78235674561070174202014-02-20T22:51:00.000-08:002014-02-20T22:51:22.231-08:00SharePoint’s hidden User Information List <div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<b><span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">Browsing
the User Information List</span></b></div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">The
User Information List can be accessed (Only if you’re admin) via the browser by
navigating to<b><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;"> /_catalogs/users/simple.aspx</span></b> or
<span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;"><strong><span style="color: #3c3c3c; font-family: Arial;"> /_catalogs/users/detail.aspx</span></strong></span><span style="color: #3c3c3c; font-family: Arial;"> </span>from your site. Ex:<a href="http://testthepulse/_catalogs/users/simple.aspx">http://testthepulse/_catalogs/users/simple.aspx</a></span><span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;"> or
<a href="http://testthepulse/_catalogs/users/detail.aspx">http://testthepulse/_catalogs/users/detail.aspx</a></span></div>
<div>
<b><span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">Write
code to interact with the User Information List</span></b></div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">If
you want to interact with this list to set properties on a user (Probably only
want to do this if you’re running WSS) you could do it like this:</span></div>
<div>
<span style="color: #00b050; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">//
Instantiates the User Information List </span><i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #0070c0; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SPList
userInformationList =
SPContext.Current.Web.SiteUserInfoList; </span></i><i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;"><br /></span></i><i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #00b050; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">//
Get the current user </span></i><i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #0070c0; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SPUser
user =
SPContext.Current.Web.EnsureUser(@"ZIMMERTobiasZimmergren");</span></i><span style="color: #0070c0; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;"></span></div>
<div>
<i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #00b050; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">//
The actual User Information is within this SPListItem </span></i><i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #0070c0; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SPListItem
userItem = userInformationList.Items.GetItemById(user.ID);</span></i><span style="color: #0070c0; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;"></span></div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">The
above code will give you the SPListItem object which links to the currently
logged in user (the one executing the request).</span></div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">You
can then work with the SPListItem object like normal to get or set the
properties like this:</span></div>
<div>
<i><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #0070c0; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">string
pictureURL = userItem["Picture"].ToString();</span></i></div>
<div>
<b><span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">User
Information List Fields</span></b></div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;">Instead
of writing out all the fields/columns availible, you can simply create a new
Console Application and insert the following code in order to output all the
fields names and internalnames:</span></div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;"></span> </div>
<div>
<span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt;"></span> <img alt="1a.png" src="http://testthepulse/howto/PublishingImages/1a.png" style="margin: 5px;" /><br /><br /><span style="color: #3c3c3c; font-family: 'arial', 'sans-serif'; font-size: 10.5pt; line-height: 115%;"> </span></div>
<div>
</div>
<div dir="ltr">
<span style="font-family: arial, sans-serif; font-size: 10.5pt;">You
can write a PowerShell script(named ListWebUserInformationListItems.ps1) as
following:</span></div>
<blockquote dir="ltr" style="margin-right: 0px;">
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;"></span> </div>
<div>
<span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: grey; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">#
Run with SharePoint 2010 Management Shell</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$webUrl
= </span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Read</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">-</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Host</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: maroon; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">"Enter
the web url"</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$web
= </span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Get</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">-</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SPWeb</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
$webUrl</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$list
= $web.</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Lists</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">[</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: maroon; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">"User
Information List"</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">]</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$query
= </span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">New</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">-</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Object</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Microsoft</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">.</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SharePoint</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">.</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SPQuery</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$queryCamlString
= </span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: maroon; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">'<Query><OrderBy><FieldRef
Name="Title" Ascending="True" /></OrderBy></Query>'</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$query.</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Query</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
= $queryCamlString</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$userInformationListItems
= $list.</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">GetItems</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">($query)</span></div>
<div>
<span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: darkblue; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">foreach</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">($userInformationListItem
</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: darkblue; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">in</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
$userInformationListItems)</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">{</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
echo $userInformationListItem.</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Title</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">}</span><span style="font-family: consolas; font-size: 10.5pt;"></span></div>
</blockquote>
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;">Then
execute the script and input the web url when console window display the "Enter
the web url" message.</span></div>
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;">Note:
You can use SPQuery the get the User Information List items which are the users
in this web application. The users are not all the users in the farm. And if you
add a ADGroup to the SharePoint, you will add the only one SharePoint user to
user information list(The SharePoint User stand for the ADGroup, the ADUser in
the ADGroup will not present to the user information list).</span></div>
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;"></span> </div>
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;"></span> </div>
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;"><span style="font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; line-height: 18px;">Get
a list of all users that have been synchronized into
SharePoint.</span></span></div>
<br />
<div>
<span style="font-family: arial, sans-serif; font-size: 10.5pt;"><span style="font-family: arial, 'liberation sans', 'dejavu sans', sans-serif; line-height: 18px;"></span></span>
<blockquote dir="ltr" style="margin-right: 0px;">
<div>
<span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: grey; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">#
Run with SharePoint 2010 Management Shell</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: maroon; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;"><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">site
</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">=</span></span><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
</span><span class="typ"></span><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">Get</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">-</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">SPSite</span></span><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
</span><span class="str"></span><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">"your
URL</span></span>"</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$</span><span class="pln"><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding: 0cm;">context
</span></span><span class="pun"><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding: 0cm;">=</span></span><span class="pln"><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
</span><span class="typ"></span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">Get</span></span><span class="pun"><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding: 0cm;">-</span></span><span class="typ"><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">SPServiceContext</span></span><span class="pln"><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
$site</span></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: maroon; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;"><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">profileManager
</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">=</span></span><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
</span><span class="typ"></span><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">New</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">-</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">Object</span></span>
<span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">Microsoft</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">.</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">Office</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">.</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">Server</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">.</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">UserProfiles</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">.</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">UserProfileManager</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">(</span></span><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">$context</span></span>)</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">$</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"><span class="pln"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">profiles
</span></span><span class="pun"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">=</span></span><span class="pln"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
$profileManager</span></span><span class="pun"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">.</span></span><span class="typ"><span style="border: 1pt windowtext; color: #2b91af; font-size: 10.5pt; line-height: 115%; padding: 0cm;">GetEnumerator</span></span><span class="pun"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">(</span></span>)</span></div>
<div>
<span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: darkblue; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">foreach</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">(</span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"><span class="pun"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">(</span></span><span class="pln"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">$profile
</span></span><span class="kwd"><span style="border: 1pt windowtext; color: darkblue; font-size: 10.5pt; line-height: 115%; padding: 0cm;">in</span></span><span class="pln"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
$profiles</span></span>)</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">{</span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">
</span><span style="border-bottom: windowtext 1pt; border-left: windowtext 1pt; border-right: windowtext 1pt; border-top: windowtext 1pt; color: #2b91af; font-family: consolas; font-size: 10.5pt; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;"><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">$displayName
</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">=</span></span><span class="pln"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">
$profile</span></span><span class="pun"><span style="border: 1pt windowtext; color: black; font-size: 10.5pt; line-height: 115%; padding: 0cm;">.</span></span><span class="typ"><span style="border: 1pt windowtext; font-size: 10.5pt; line-height: 115%; padding: 0cm;">DisplayName</span></span></span><span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;"></span></div>
<div>
<span style="border: 1pt windowtext; font-family: consolas; font-size: 10.5pt; padding: 0cm;">}</span></div>
</blockquote>
<br />
source: http://zimmergren.net/technical/sharepoints-hidden-user-list-user-information-list </div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com2tag:blogger.com,1999:blog-1312407191469477641.post-84724261191461325162014-02-20T22:49:00.002-08:002014-02-20T22:49:28.513-08:00SharePoint Application Pool Keeps Stopping<div dir="ltr" style="text-align: left;" trbidi="on">
After restarting the virtual machine which hosts our dev server, I am keep
recieving this error:<br />
<a href="http://www.sharepointnerd.com/blog/Lists/Posts/Attachments/47/image_5_5265F807.png" style="text-decoration: none;"><img alt="image" border="0" height="326" src="http://www.sharepointnerd.com/blog/Lists/Posts/Attachments/47/image_thumb_1_5265F807.png" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="473" /></a><br />
<br />
looking at the IIS application pools, it seems that the same web application
pool is stopped and when I start it, as soon as I refresh the page, it stops
again.<br />
there might be other reasons for this issue, but in my case, the application
pool identity account is my own domain account. I changed the password about 10
days ago, and looks like restarting the VM, caused this error.<br />
it all solved as soon as I changed the password.<br />
go to the application pool Advanced Setting page, click on Identity and use
the same account with the new password.<br />
<br />
then start the application pool again and it all works fine.<br />
<br />
source: http://technet.microsoft.com/en-us/library/cc263454(v=office.12).aspx<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-68670273480247889752014-02-20T22:48:00.001-08:002014-02-20T22:48:35.463-08:00Running Scripts From Within Windows PowerShell<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
Let’s start with running scripts from within Windows PowerShell itself.
(Which, truth be told, is probably the most common way to run Windows PowerShell
scripts.) Why do you get weird error messages when you try to run a script?
That’s easy. The security settings built into Windows PowerShell include
something called the “execution policy;” the execution policy determines how (or
if) PowerShell runs scripts. By default, PowerShell’s execution policy is set
to <strong>Restricted</strong>; that
means that scripts - including those you write yourself - won’t run.
Period.</div>
<table style="border-collapse: collapse; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px; padding: 0px; width: 1076px;">
<tbody>
<tr>
<td style="margin: 10px; padding-bottom: 10px; padding-left: 8px; padding-right: 8px; padding-top: 10px; vertical-align: top;">
<div>
<strong>Note</strong>. You can verify the settings for your execution
policy by typing the following at the PowerShell command prompt and then
pressing ENTER:</div>
<div class="codeSnippetContainer" style="clear: both;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">Get-ExecutionPolicy
</pre>
</div>
</div>
</div>
</div>
</td></tr>
</tbody></table>
<div>
Now, admittedly, this might seem a bit severe. After all, what’s the point
of having a scripting environment if you can’t even run scripts with it? But
that’s OK. If you don’t like the default execution policy (and you probably
won’t) then just go ahead and change it. For example, suppose you want to
configure PowerShell to run - without question - any scripts that you write
yourself, but to run scripts downloaded from the Internet only if those scripts
have been signed by a trusted publisher. In that case, use this command to set
your execution policy to <strong>RemoteSigned</strong>:</div>
<div class="codeSnippetContainer" style="clear: both; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">Set-ExecutionPolicy RemoteSigned
</pre>
</div>
</div>
</div>
</div>
<div>
Alternatively, you can set the execution policy to <strong>AllSigned</strong> (all scripts, including those you write
yourself, must be signed by a trusted publisher) or <strong>Unrestricted</strong> (<em>all</em> scripts will run, regardless of where they
come from and whether or not they’ve been signed).</div>
<div>
See? No need to need to panic at all, is there?</div>
<table style="border-collapse: collapse; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px; padding: 0px; width: 1076px;">
<tbody>
<tr>
<td style="margin: 10px; padding-bottom: 10px; padding-left: 8px; padding-right: 8px; padding-top: 10px; vertical-align: top;">
<div>
<strong>Note</strong>. Not sure what we mean by “signing scripts?” Then
open up PowerShell, type the following, and press ENTER:</div>
<div class="codeSnippetContainer" style="clear: both;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">Get-Help About_Signing
</pre>
</div>
</div>
</div>
</div>
<div>
Or, even better, download our <a href="http://www.microsoft.com/downloads/details.aspx?familyid=3B3F7CE4-43EA-4A21-90CC-966A7FC6C6E8&displaylang=en" style="text-decoration: none;"><strong>Windows
PowerShell Graphical Help File</strong></a> and read the same topic in standard Windows
help format.</div>
</td></tr>
</tbody></table>
<div>
After you change your execution policy settings it’s <em>possible</em> to run scripts. However, you still might run
into problems. For example, suppose you change directories from your Windows
PowerShell home directory to C:\Scripts (something you can do by typing <strong>cd C:\Scripts</strong>). As it turns
out, the C:\Scripts folder contains a script named Test.ps1. With that in mind
you type the following and the press ENTER:</div>
<div class="codeSnippetContainer" style="clear: both; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">Test.ps1
</pre>
</div>
</div>
</div>
</div>
<div>
And here’s the response you get:</div>
<div class="codeSnippetContainer" style="clear: both; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">The term 'test.ps1' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At line:1 char:7
+ test.ps1 <<<<
</pre>
</div>
</div>
</div>
</div>
<div>
We know what you’re thinking: didn’t we just change the execution policy?
Yes, we did. However, this has nothing to do with the execution policy. Instead,
it has to do with the way that PowerShell handles file paths. In general, you
need to type <em>the complete file
path</em> in order to run a script.
That’s true regardless of your location within the file system. It doesn’t
matter if you’re in C:\Scripts; you still need to type the following:</div>
<div class="codeSnippetContainer" style="clear: both; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">C:\Scripts\Test.ps1
</pre>
</div>
</div>
</div>
</div>
<div>
Now, we said “in general” because there are a couple of exceptions to this
rule. For example, if the script happens to live in the current directory you
can start it up using the <strong>.\</strong> notation, like so:</div>
<div class="codeSnippetContainer" style="clear: both; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">.\Test.ps1
</pre>
</div>
</div>
</div>
</div>
<table style="border-collapse: collapse; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px; padding: 0px; width: 1076px;">
<tbody>
<tr>
<td style="margin: 10px; padding-bottom: 10px; padding-left: 8px; padding-right: 8px; padding-top: 10px; vertical-align: top;">
<div>
<strong>Note</strong>. There’s no space between the .\ and the script
name.</div>
</td></tr>
</tbody></table>
<div>
And while PowerShell won’t search the current directory for scripts it <em>will</em> search all of the folders found in your
Windows PATH environment variable. What does that mean? That means that if the
folder C:\Scripts is in your path then you <em>can</em> run the script using this command:</div>
<div class="codeSnippetContainer" style="clear: both; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">Test.ps1
</pre>
</div>
</div>
</div>
</div>
<div>
But be careful here. Suppose C:\Scripts is <em>not</em> in your Windows path. However, suppose the
folder D:\Archive <em>is</em> in the path, and that folder also contains a
script named Test.ps1. If you’re in the C:\Scripts directory and you simply
type <strong>Test.ps1</strong> and press ENTER, guess which script will
run? You got it: PowerShell won’t run the script in C:\Scripts, but it <em>will</em> run the script found in D:\Archive. That’s
because D:\Archive is in your path.</div>
<div>
Just something to keep in mind.</div>
<br />
<table style="border-collapse: collapse; font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 18px; padding: 0px; width: 1076px;">
<tbody>
<tr>
<td style="margin: 10px; padding-bottom: 10px; padding-left: 8px; padding-right: 8px; padding-top: 10px; vertical-align: top;">
<div>
<strong>Note</strong>. Just for the heck of it, here’s a command that
retrieves your Windows PATH environment variable and displays it in a readable
fashion:</div>
<div class="codeSnippetContainer" style="clear: both;">
<div class="codeSnippetContainerTabs" style="height: 23px; vertical-align: middle; z-index: 1;">
</div>
<div class="codeSnippetContainerCodeContainer" style="clear: both; margin-bottom: 12px; top: -1px;">
<div class="codeSnippetToolBar" style="height: auto; width: auto;">
<div class="codeSnippetToolBarText" style="float: right; height: 0px; padding-left: 0px; padding-right: 0px; top: -8px; vertical-align: top; width: auto;">
</div>
</div>
<div class="codeSnippetContainerCode" dir="ltr" style="margin: 0px; padding-bottom: 10px; padding-left: 21px; padding-right: 21px; padding-top: 10px; width: auto;">
<div style="margin: 0px; padding: 0px;">
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">$a = $env:path; $a.Split(";")
</pre>
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">
</pre>
<pre style="font-family: consolas, courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;">source: http://technet.microsoft.com/en-us/library/ee176949.aspx</pre>
</div>
</div>
</div>
</div>
</td></tr>
</tbody></table>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-64038264649081542212014-02-20T22:47:00.002-08:002014-02-20T22:47:23.376-08:00SharePoint Admin account<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ms-vb itx">
<a href="http://testthepulse/howto/Documents/How%20to%20Change%20the%20SharePoint%20Farm%20account.doc"><span style="color: #003759;">How to Change the SharePoint Farm account</span></a></div>
<br />
<a href="http://testthepulse/howto/Documents/How%20to%20Change%20the%20SharePoint%20Farm%20account.doc">http://testthepulse/howto/Documents/How%20to%20Change%20the%20SharePoint%20Farm%20account.doc</a><br />
<span style="font-family: verdana, arial, sans-serif; font-size: 11px; line-height: 18px;"> Add-SPShellAdmin</span><br />
This cmdlet does a couple of things. First, it adds our admin account to a
database role (SharePoint_Shell_Access) that gives us permission to do things
that require changes to the database. It also adds our account to a local group
(WSS_ADMIN_WPG) on the SharePoint server to give us permissions to make changes
there too. Because of that granularity you have to run Add-SPShellAdmin against
every database you want it to change, and on all of your SharePoint servers. To
meet the first requirement, and to show off a little, I used Get-SPDatabase to
get all the databases in my farm, and then I piped it through Add-SPShellAdmin.
It looks something like this:<br />
<a href="http://www.toddklindt.com/blog/Lists/Posts/Attachments/259/image_12_5A634594.png" style="text-decoration: none;"><img alt="image" border="0" height="139" src="http://www.toddklindt.com/blog/Lists/Posts/Attachments/259/image_thumb_5_5A634594.png" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="455" /></a><br />
That didn’t go well, did it? Like I said before, Add-SPShellAdmin makes
changes to each database’s permissions, so the account you run it as has to have
permission to do that. Even though sp_install has the securityadmin role on the
SQL server, it doesn’t have permission to change this security. Before you run
Add-SPShellAdmin make sure the account running it (in my case sp_install) either
is in the db_owner group on each databsae, or is in the sysadmin role in SQL. I
added sp_install to the sysadmin role and ran my command again:<br />
<a href="http://www.toddklindt.com/blog/Lists/Posts/Attachments/259/image_14_5A634594.png" style="text-decoration: none;"><img alt="image" border="0" height="134" src="http://www.toddklindt.com/blog/Lists/Posts/Attachments/259/image_thumb_6_5A634594.png" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="image" width="469" /></a><br />
<br />
<a href="http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?List=56f96349-3bb6-4087-94f4-7f95ff4ca81f&ID=259&Web=48e6fdd1-17db-4543-b2f9-6fc7185484fc"></a><a href="http://www.toddklindt.com/StopUsingSPFarm" style="font-family: verdana, arial, sans-serif; font-size: 11px; line-height: 18px; text-decoration: none;"><span style="color: blue;">http://www.toddklindt.com/StopUsingSPFarm</span></a> </div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-41242402578661917202014-02-20T22:46:00.004-08:002014-02-20T22:46:36.188-08:00Find computer name from IP<div dir="ltr" style="text-align: left;" trbidi="on">
NSLOOKUP<span style="font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 17px;">
<pcname></span><br />
<span style="font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 17px;">NSLOOKUP
<IP></span><br />
<span style="font-family: 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; line-height: 17px;">PING
<pcname></span><br />
PING -A <IP><br />
NBTSTAT -A <IP><br />
IPCONFIG /all<br />
NET view /domain:[domain name]> c:\somefile.txt<br />
<span style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;">Where </span><em style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;">[domain
name]</em><span style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;"> is the name of the domain you want to search
and </span><em style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;">somefile.txt</em><span style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;"> is the name of the file to contain the
output. </span><br style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;" /><span style="font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px;">This
will generate a list of every machine and who is logged in. </span><br />
<br />
<a href="http://www.whatismyip.com/">http://www.whatismyip.com/</a><br />
<br />
<a href="http://www.myiptest.com/">http://www.myiptest.com/</a><br />
Access computers by IP addresses, but not by Computer Name<br />
http://social.technet.microsoft.com/Forums/windows/en-US/f82b747e-6711-418b-9b6f-317223daa2dc/access-computers-by-ip-addresses-but-not-by-computer-name </div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-25726521714144074612014-02-20T22:45:00.003-08:002014-02-20T22:45:48.818-08:00Register Telerik 2013.2.611.35<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<strong><span style="color: #333333; font-family: 'calibri', 'sans-serif'; font-size: 12pt; font-weight: normal; line-height: 115%;">Drag
& drop these file to ‘windows\assembly’ folder:</span></strong></div>
<div>
<strong><u><span style="color: #333333; font-family: 'calibri', 'sans-serif'; font-size: 12pt; font-weight: normal; line-height: 115%;">Telerik.Web.UI.dll</span></u></strong></div>
<div>
<strong><u><span style="color: #333333; font-family: 'calibri', 'sans-serif'; font-size: 12pt; font-weight: normal; line-height: 115%;">Telrik.Web.Design.dll</span></u></strong><span style="font-family: Calibri;"><span class="apple-converted-space"><b><u><span style="color: #333333; font-size: 12pt; line-height: 115%;"> </span></u></b></span><span class="apple-converted-space"><b><u><span style="font-size: 14pt; line-height: 115%;"></span></u></b></span></span></div>
<div>
<span style="color: #333333; font-family: 'verdana', 'sans-serif'; font-size: 10pt; line-height: 115%;">Add
these <SafeControl> entries within the <SafeControls> section in
web.config:</span></div>
<div>
<span style="color: #333333; font-family: 'verdana', 'sans-serif'; font-size: 10pt; line-height: 115%;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">SafeControl</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">Assembly</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI, Version=2013.2.611.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">Namespace</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI</span>"<span style="color: blue;">
</span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">Safe</span><span style="color: blue;">=</span>"<span style="color: blue;">True</span>"<span style="color: blue;"> </span><span style="color: red;">SafeAgainstScript</span><span style="color: blue;">=</span>"<span style="color: blue;">False</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">SafeControl</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">Assembly</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI, Version=2013.2.611.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">Namespace</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.Editor</span>"<span style="color: blue;">
</span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">Safe</span><span style="color: blue;">=</span>"<span style="color: blue;">True</span>"<span style="color: blue;"> </span><span style="color: red;">SafeAgainstScript</span><span style="color: blue;">=</span>"<span style="color: blue;">False</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">SafeControl</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">Assembly</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI, Version=2013.2.611.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">Namespace</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.Widgets</span>"<span style="color: blue;">
</span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">Safe</span><span style="color: blue;">=</span>"<span style="color: blue;">True</span>"<span style="color: blue;"> </span><span style="color: red;">SafeAgainstScript</span><span style="color: blue;">=</span>"<span style="color: blue;">False</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">SafeControl</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">Assembly</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI, Version=2013.2.611.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">Namespace</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.Design</span>"<span style="color: blue;">
</span><span style="color: red;">TypeName</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">Safe</span><span style="color: blue;">=</span>"<span style="color: blue;">True</span>"<span style="color: blue;"> </span><span style="color: red;">SafeAgainstScript</span><span style="color: blue;">=</span>"<span style="color: blue;">False</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: #333333; font-family: 'verdana', 'sans-serif'; font-size: 10pt; line-height: 115%;"> </span></div>
<div>
<span style="color: #333333; font-family: 'verdana', 'sans-serif'; font-size: 10pt; line-height: 115%;">Add
the clause below to SharePoint 2010 web.config file:</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">pages</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">controls</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</span><span style="font-family: consolas; font-size: 9.5pt;">.....................</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">tagPrefix</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">telerik</span>"<span style="color: blue;"> </span><span style="color: red;">namespace</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI</span>"<span style="color: blue;">
</span><span style="color: red;">assembly</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI,
Version=2013.2.611.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">controls</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">pages</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">modules</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">runAllManagedModulesForAllRequests</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">true</span>"<span style="color: blue;">></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</span><span style="font-family: consolas; font-size: 9.5pt;">.....................</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">RadUploadModule</span>"<span style="color: blue;">
</span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.RadUploadHttpModule,
Telerik.Web.UI</span>"<span style="color: blue;"> </span><span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">managedHandler</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">modules</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">handlers</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</span><span style="font-family: consolas; font-size: 9.5pt;">.....................</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">ChartImage.axd_*</span>"<span style="color: blue;">
</span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">ChartImage.axd</span>"<span style="color: blue;">
</span><span style="color: red;">verb</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI,
Culture=neutral, PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">integratedMode</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI.SpellCheckHandler.axd_*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.SpellCheckHandler.axd</span>"<span style="color: blue;"> </span><span style="color: red;">verb</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI,
Culture=neutral, PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">integratedMode</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI.DialogHandler.aspx_*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.DialogHandler.aspx</span>"<span style="color: blue;"> </span><span style="color: red;">verb</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.DialogHandler, Telerik.Web.UI,
Culture=neutral, PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">integratedMode</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.RadUploadProgressHandler.ashx_*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.RadUploadProgressHandler.ashx</span>"<span style="color: blue;"> </span><span style="color: red;">verb</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.Upload.RadUploadProgressHandler,
Telerik.Web.UI</span>"<span style="color: blue;"> </span><span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">integratedMode</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI.WebResource.axd_*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.WebResource.axd</span>"<span style="color: blue;"> </span><span style="color: red;">verb</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.WebResource, Telerik.Web.UI</span>"<span style="color: blue;"> </span><span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">integratedMode</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">handlers</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;"><</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">httpHandlers</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">remove</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">verb</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">*.asmx</span>"<span style="color: blue;">
/></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</span><span style="font-family: consolas; font-size: 9.5pt;">.....................</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">verb</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.RadUploadProgressHandler.ashx</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.Upload.RadUploadProgressHandler,
Telerik.Web.UI</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">verb</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.DialogHandler.aspx</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.DialogHandler, Telerik.Web.UI,
Culture=neutral, PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">verb</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.SpellCheckHandler.axd</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI,
Culture=neutral, PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">verb</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">path</span><span style="color: blue;">=</span>"<span style="color: blue;">ChartImage.axd</span>"<span style="color: blue;">
</span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI,
Culture=neutral, PublicKeyToken=121fae78165ba3d4</span>"<span style="color: blue;"> </span><span style="color: red;">validate</span><span style="color: blue;">=</span>"<span style="color: blue;">false</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">path</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">Telerik.Web.UI.WebResource.axd</span>"<span style="color: blue;"> </span><span style="color: red;">verb</span><span style="color: blue;">=</span>"<span style="color: blue;">*</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.WebResource, Telerik.Web.UI</span>"<span style="color: blue;"> </span><span style="color: red;">validate</span><span style="color: blue;">=</span>"<span style="color: blue;">false</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">httpHandlers</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">httpModules</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</span><span style="font-family: consolas; font-size: 9.5pt;">.....................</span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
<</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">add</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;"> </span><span style="color: red; font-family: consolas; font-size: 9.5pt;">name</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">RadUploadModule</span>"<span style="color: blue;">
</span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">Telerik.Web.UI.RadUploadHttpModule,
Telerik.Web.UI</span>"<span style="color: blue;"> /></span></span></div>
<div>
<span style="color: blue; font-family: consolas; font-size: 9.5pt;">
</</span><span style="color: #a31515; font-family: consolas; font-size: 9.5pt;">httpModules</span><span style="color: blue; font-family: consolas; font-size: 9.5pt;">>
</span><span style="font-family: consolas; font-size: 9.5pt;"></span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;">Source: </span><a href="http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html"><span style="color: blue; font-family: Calibri;">http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html</span></a><span style="font-family: Calibri;"> <span style="font-family: consolas; font-size: 9.5pt;"></span></span></div>
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span><span style="font-family: consolas; font-size: x-small;">http://yanziyang.wordpress.com/2010/11/01/config-telerik-ajax-in-sharepoint-2010/ </span></div>
<br />
<div>
<span style="font-family: consolas; font-size: 9.5pt;"> </span></div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0tag:blogger.com,1999:blog-1312407191469477641.post-87418648216899502362014-02-20T22:44:00.001-08:002014-02-20T22:44:38.989-08:00How to fix “Install-SPSolution: Admin SVC must be running in order to create deployment timer job”<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
To fix the issues, you need to start the <strong style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">SharePoint
2010 Administration </strong>service<strong style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">.</strong></div>
<div>
1. Go to services control panel.</div>
<div>
<img alt="" src="http://ybbest.files.wordpress.com/2011/09/091011_0328_howtofixins2.png?w=595" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /><strong style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /></strong></div>
<div>
2. Start the <strong style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">SharePoint
2010 Administration </strong>service.</div>
<div>
<img alt="" src="http://ybbest.files.wordpress.com/2011/09/091011_0328_howtofixins3.png?w=595" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /></div>
<br />
<div>
3. Rerun your PowerShell, it should fix the problem. However, you might get
another problem “A deployment or retraction is already under way for the
solution “*.wsp”, and only one deployment or retraction at a time is supported”,
for this problem you can check my other blog<a href="http://ybbest.wordpress.com/2011/09/10/how-to-fix-%E2%80%9Ca-deployment-or-retraction-is-already-under-way-for-the-solution-%E2%80%9C-wsp%E2%80%9D-and-only-one-deployment-or-retraction-at-a-time-is-supported%E2%80%9D/" style="margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">here</a>.</div>
<div>
<br /></div>
<div>
source: http://ybbest.wordpress.com/2011/09/10/how-to-fix-%E2%80%9Cinstall-spsolution-admin-svc-must-be-running-in-order-to-create-deployment-timer-job%E2%80%9D/ </div>
</div>
Anonymoushttp://www.blogger.com/profile/14817920916460603633noreply@blogger.com0