<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Powershell on When Pigs Fly</title><link>http://derekcp.com/tags/powershell/</link><description>Recent content in Powershell on When Pigs Fly</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 16 Apr 2020 00:00:00 +0000</lastBuildDate><atom:link href="http://derekcp.com/tags/powershell/index.xml" rel="self" type="application/rss+xml"/><item><title>Site Design for Easy Site Page Management</title><link>http://derekcp.com/posts/site-design-for-easy-site-page-management/</link><pubDate>Thu, 16 Apr 2020 00:00:00 +0000</pubDate><guid>http://derekcp.com/posts/site-design-for-easy-site-page-management/</guid><description>&lt;p&gt;Does your site pages library look totally unmanageable? Have you had instances where you can see a news post that you created but someone else doesn&amp;rsquo;t? Is your content not showing up in search or highlighted content web parts? This happens all the time and it is generally an easy fix. I had the good fortune to work with Susan Hanley on a project recently. We were discussing creating a site design to automate some of the pieces of the site architecture she created. She mentioned to me a blog post she created, &lt;a href="https://www.computerworld.com/article/3441838/one-simple-view-to-improve-sharepoint-page-and-site-management.html"&gt;One simple view to improve SharePoint page and site management&lt;/a&gt;. In that post she proposes making minor modifications to the All Pages view to help alleviate some of these common issues and make it easier to manage site pages. She challenged me to create a site script that would replace or update the existing view to include the fields like promoted state to help better manage the contents of the site pages library.&lt;/p&gt;</description></item><item><title>Access Denied Error on Styles Library</title><link>http://derekcp.com/posts/access-denied-error-on-styles-library/</link><pubDate>Thu, 26 Mar 2020 00:00:00 +0000</pubDate><guid>http://derekcp.com/posts/access-denied-error-on-styles-library/</guid><description>&lt;p&gt;I am going to file this one under the &amp;ldquo;if you need to do something more than twice you should probably write it down&amp;rdquo;. This gets me frequently enough that I remember I&amp;rsquo;ve dealt with it before but not frequently enough that I can commit the solution to memory. I find myself using the SPFX React Menu extension quite a bit as a base for creating custom navigation controls. The navigation on that extension is powered by a json file that is uploaded to the Styles Library. In an OOTB site I whenever I try to upload the json file to the Styles Library I get an access denied error. Other traditional files like .txt or .docx work just fine.&lt;/p&gt;</description></item><item><title>Deploying Application Customizers with a Site Design</title><link>http://derekcp.com/posts/deploying-application-customizers-with-a-site-design/</link><pubDate>Thu, 24 Oct 2019 00:00:00 +0000</pubDate><guid>http://derekcp.com/posts/deploying-application-customizers-with-a-site-design/</guid><description>&lt;p&gt;Sometimes things are harder than they need to be. I have been working on Site Designs recently to automate the creation and deployment of different element in a site. For the most part things were pretty straight forward for what I needed to do, add a theme to a site, add site columns, and add content types. This time around I needed to deploy an SPFx Application Customizer that needed to be installed on individual sites. The &lt;a href="https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema#register-an-extension"&gt;official documentation&lt;/a&gt; on this is a little lacking. It doesn&amp;rsquo;t really explain what you need to do in order to make it work. I also looked at the &lt;a href="https://github.com/SharePoint/sp-dev-site-scripts/tree/master/samples/site-register-spfx-extension"&gt;PnP Site Design Samples&lt;/a&gt; which got me a little closer. It took me quite a while to figure out the right magic voodoo combination that got it to work.&lt;/p&gt;</description></item><item><title>Using Custom Color for Section Backgrounds and Page Headers</title><link>http://derekcp.com/posts/custom-header-colors/</link><pubDate>Thu, 27 Jun 2019 00:00:00 +0000</pubDate><guid>http://derekcp.com/posts/custom-header-colors/</guid><description>&lt;p&gt;Have you ever wondered where the background colors in SharePoint modern pages comes from? You know, the ones for section background colors and site headers? Have you ever wondered how to change them to your own custom colors?&lt;/p&gt;
&lt;p&gt;








&lt;figure class="image component image-fullbleed body-copy-wide nr-scroll-animation nr-scroll-animation--on image-big"&gt; &lt;div class="component-content"&gt;
 &lt;div class="image-sharesheet"&gt;
 &lt;div class="image image-load image-asset image-308fa5925b7a821197238adc220049ae" id="lht308fa5925b7a821197238adc220049ae"&gt;
 &lt;picture class="picture"&gt;
 &lt;img class="picture-image" data-src="http://derekcp.com/posts/custom-header-colors/images/screen-shot-2019-06-14-at-9.42.48-pm.png" alt="" /&gt;
 &lt;/picture&gt;
 &lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="image-description"&gt;
 &lt;div class="image-caption"&gt;
 
 &lt;/div&gt;
 &lt;/div&gt;
 &lt;/div&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;I had a client that wanted to be able to set the background for the site headers to a specific color. Unfortunately, the color they wanted wasn&amp;rsquo;t one of the four colors available through the SharePoint UI.&lt;/p&gt;</description></item><item><title>More than I ever wanted to know about the SharePoint Search Topology</title><link>http://derekcp.com/posts/search-topology/</link><pubDate>Tue, 16 Oct 2018 00:00:00 +0000</pubDate><guid>http://derekcp.com/posts/search-topology/</guid><description>&lt;p&gt;The other night I burned way too many hours trying to fix a broken search service application for what seemed like a ridiculous reason. We have an integration server that we are using for a large project. I was working with it earlier in the day testing some front end code. Later in the evening with no apparent cause it decided to throw the error below on the Search Administration screen. This prevented search from operating and all my client side queries returned a nondescript 500 error telling me to check my search service.&lt;/p&gt;</description></item><item><title>Powershell Commands for Installing Solutions and Features</title><link>http://derekcp.com/posts/powershell-commands-for-installing-solutions-and-features/</link><pubDate>Tue, 07 Aug 2012 00:00:00 +0000</pubDate><guid>http://derekcp.com/posts/powershell-commands-for-installing-solutions-and-features/</guid><description>&lt;p&gt;As a SharePoint 2007 developer I have many of the common stsadm commands committed to memory. While stsadm still works in SharePoint 2010 in favor of moving to proficiency in the latest version of the technology here are some of the powershell commands that I use on a daily basis. With that said, I usually create a batch file that runs these commands so that I only need to run one command to get the features updated and features activated.&lt;/p&gt;</description></item></channel></rss>