<?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 Software Attacks!</title><link>https://rikhepworth.com/tags/powershell/</link><description>Recent content in Powershell on When Software Attacks!</description><generator>Hugo -- gohugo.io</generator><language>en_GB</language><copyright>&amp;copy; Rik Hepworth</copyright><lastBuildDate>Sat, 06 Aug 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://rikhepworth.com/tags/powershell/index.xml" rel="self" type="application/rss+xml"/><item><title>Calling Application Insights API using Powershell</title><link>https://rikhepworth.com/posts/calling-application-insights-api-using-powershell/</link><pubDate>Sat, 06 Aug 2022 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/calling-application-insights-api-using-powershell/</guid><description>If you have an application, instrumenting it with something like Application Insights to emit useful data is something I cannot espouse the benefits of enough. As a service, however, Application Insights can offer other benefits, such as Availability Tests to tell you if the application is accessible to your users.</description></item><item><title>Configuring BizTalk 2020 Application Insights telemetry behind a firewall</title><link>https://rikhepworth.com/posts/firewall-rules-for-biztalk-2020-application-insights-telemetry/</link><pubDate>Sat, 06 Aug 2022 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/firewall-rules-for-biztalk-2020-application-insights-telemetry/</guid><description>BizTalk 2020 allows you to connect it to an Application Insights instance, where it will send tracking data as customEvents so you see what&amp;rsquo;s going on. However, getting it working in an environment where security is important and the network team want to open the fewest paths through the firewall as possible is an exercise in patience. This blog post is as much aide memoire for me as an information post for you.</description></item><item><title>Configure Server 2016 ADFS and WAP with custom ports using Powershell</title><link>https://rikhepworth.com/posts/configure-server-2016-adfs-and-wap-with-custom-ports-using-powershell/</link><pubDate>Fri, 24 Aug 2018 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/configure-server-2016-adfs-and-wap-with-custom-ports-using-powershell/</guid><description>&lt;p&gt;A pull request for Chris Gardner&amp;rsquo;s WebApplicationProxyDSC is now inbound after a frustrating week of trying to automate the configuration of ADFS and WAP on a Server 2016 lab.&lt;/p&gt;
&lt;p&gt;With Server 2016, the PowerShell commands to configure the ADFS and WAP servers include switches to specify a non-default port. I need to do this because the servers are behind a NetNat on a server hosting several labs, so port 443 is not available to me and I must use a different port.&lt;/p&gt;</description></item><item><title>Setting Enroll Permissions on ADCS Certificate Template using DSC</title><link>https://rikhepworth.com/posts/setting-enroll-permissions-on-adcs-certificate-template-using-dsc/</link><pubDate>Thu, 02 Mar 2017 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/setting-enroll-permissions-on-adcs-certificate-template-using-dsc/</guid><description>&lt;p&gt;As part of the work I have been doing around generating and managing &lt;a href="https://rikhepworth.com/post/2017/03/2017-03-02-define-once-deploy-everywhere-sort-of" &gt;lab environments using Lability&lt;/a&gt; and DSC, one of the things I needed to do was change the permissions on a certificate template within a DSC configuration. Previously, when deploying to Azure, I used the &lt;a href="https://rikhepworth.com/post/2015/08/2015-08-30-complex-azure-template-odyssey-part-two-domain-controller" &gt;PSPKI PowerShell modules within code executed by the Custom Script extension&lt;/a&gt;. I was very focused on sticking with DSC this time, which ruled out PSPKI. Whilst there is a DSC module available to configure Certificate Services itself, this does not extend to managing Certificate Templates.&lt;/p&gt;</description></item><item><title>Creating Azure Virtual Networks using Powershell and XML Part 4: Local networks and site-site connectivity</title><link>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml-part-4-local-networks-and-site-site-connectivity/</link><pubDate>Sun, 09 Mar 2014 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml-part-4-local-networks-and-site-site-connectivity/</guid><description>&lt;p&gt;This is part 4 of a series of posts building powershell functions to create and modify Azure Virtual Networks. Previous posts have covered functions to &lt;a href="https://rikhepworth.com/post/2014/03/2014-03-04-Creating-Azure-Virtual-Networks-using-Powershell-and-XML-Part-2-Powershell-functions" &gt;create virtual networks&lt;/a&gt; and then &lt;a href="https://rikhepworth.com/post/2014/03/2014-03-04-Creating-Azure-Virtual-Networks-using-Powershell-and-XML-Part-3-Powershell-functions-for-deletion" &gt;delete them&lt;/a&gt;. In this part, I’m going to show you functions that will define local networks and configure site-site VPN connectivity between a local and virtual network.&lt;/p&gt;</description></item><item><title>Gary Lapointe to the rescue: Using his Office 365 powershell tools to recover from a corrupted masterpage</title><link>https://rikhepworth.com/posts/gary-lapointe-to-the-rescue-using-his-office-365-powershell-tools-to-recover-from-a-corrupted-masterpage/</link><pubDate>Fri, 07 Mar 2014 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/gary-lapointe-to-the-rescue-using-his-office-365-powershell-tools-to-recover-from-a-corrupted-masterpage/</guid><description>&lt;p&gt;I also need to give credit to the Office 365 support team over this. They were very quick in their response to my support incident, but I was quicker!&lt;/p&gt;
&lt;p&gt;Whilst working on an Office 365 site for a customer today I had a moment of blind panic. The site is using custom branding and I was uploading a new version of the master page to the site when things went badly wrong. The upload appeared to finish OK but the dialog that was shown post upload was not the usual content type/fill in the fields form, but a plain white box. I left it for a few minutes but nothing changed. Unperturbed, I returned to the mater page gallery… Except I couldn’t. All I got was a white page. No errors, nothing. No pages worked at all – no settings pages, no content pages, nothing at all.&lt;/p&gt;</description></item><item><title>Creating Azure Virtual Networks using Powershell and XML Part 2: Powershell functions</title><link>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml-part-2-powershell-functions/</link><pubDate>Tue, 04 Mar 2014 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml-part-2-powershell-functions/</guid><description>&lt;p&gt;In my previous post I talked about what &lt;a href="https://rikhepworth.com/post/2014/03/2014-03-03-Creating-Azure-Virtual-Networks-using-Powershell-and-XML" &gt;was involved in creating an Azure network configuration using Powershell&lt;/a&gt;. In this post I’ll cover where I’ve got so so far, which is a series of functions that do the following:&lt;/p&gt;</description></item><item><title>Creating Azure Virtual Networks using Powershell and XML Part 3: Powershell functions for deletion</title><link>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml-part-3-powershell-functions-for-deletion/</link><pubDate>Tue, 04 Mar 2014 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml-part-3-powershell-functions-for-deletion/</guid><description>&lt;p&gt;This is part three of a series of posts about using powershell to script the creation, deletion and (hopefully) modification of Azure Virtual Networks. In &lt;a href="https://rikhepworth.com/post/2014/03/2014-03-03-Creating-Azure-Virtual-Networks-using-Powershell-and-XML" &gt;part 1&lt;/a&gt; I went through the key steps with some rough code. &lt;a href="https://rikhepworth.com/post/2014/03/2014-03-04-Creating-Azure-Virtual-Networks-using-Powershell-and-XML-Part-2-Powershell-functions" &gt;Part 2&lt;/a&gt; showed the much tidier functions I’ve now written to create virtual network elements. This is part 3, and I will present functions to remove elements. Hopefully I will manage to get the modification functions to work which be a fourth installment!&lt;/p&gt;</description></item><item><title>Creating Azure Virtual Networks using Powershell and XML</title><link>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml/</link><pubDate>Mon, 03 Mar 2014 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/creating-azure-virtual-networks-using-powershell-and-xml/</guid><description>&lt;p&gt;I’ll be honest, I expected this task to be easier than it is. What I’m working on is some powershell that we might use as part of automated build processes that will create a new Virtual Network in an Azure subscription. What I’m after is to &lt;em&gt;add&lt;/em&gt; a new network to the existing configuration.&lt;/p&gt;</description></item><item><title>Content Types programmatically added to SharePoint libraries not appearing on New menu</title><link>https://rikhepworth.com/posts/content-types-programmatically-added-to-sharepoint-libraries-not-appearing-on-new-menu/</link><pubDate>Mon, 04 Apr 2011 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/content-types-programmatically-added-to-sharepoint-libraries-not-appearing-on-new-menu/</guid><description>&lt;p&gt;This one caused some consternation, I can tell you. As usual, the solution could be found on the great wide web, but it took some digging, so as usual I am repeating it here.&lt;/p&gt;</description></item><item><title>Powershell to find missing features in SharePoint 2010</title><link>https://rikhepworth.com/posts/powershell-to-find-missing-features-in-sharepoint-2010/</link><pubDate>Fri, 19 Nov 2010 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/powershell-to-find-missing-features-in-sharepoint-2010/</guid><description>&lt;p&gt;When migrating from SharePoint 2007 to 2010, no matter how hard you try there’s always the chance the the content database upgrade process will throw out errors about features being referenced that are not present in the farm. We have used Stefan Goßner’s &lt;a href="http://code.msdn.microsoft.com/WssAnalyzeFeatures" target="_blank" rel="noreferrer"&gt;WssAnalyzeFeatures&lt;/a&gt; and &lt;a href="http://code.msdn.microsoft.com/WssRemoveFeatureFrom" target="_blank" rel="noreferrer"&gt;WSSRemoveFeatureFromSite&lt;/a&gt; (see his &lt;a href="http://blogs.technet.com/b/stefan_gossner/archive/2008/04/12/moss-common-issue-content-deployment-fails-with-failed-to-compare-two-elements-in-the-array.aspx" target="_blank" rel="noreferrer"&gt;original article&lt;/a&gt;) to track down the references and exterminate them. It’s not the fastest thing on two legs though, and I have a fondness for having my SharePoint 2010 tooling in PowerShell because of the flexibility it gives me.&lt;/p&gt;</description></item><item><title>Powershell script to rename files for use as SharePoint 2010 User Profile thumbnails</title><link>https://rikhepworth.com/posts/powershell-script-to-rename-files-for-use-as-sharepoint-2010-user-profile-thumbnails/</link><pubDate>Thu, 29 Jul 2010 00:00:00 +0000</pubDate><guid>https://rikhepworth.com/posts/powershell-script-to-rename-files-for-use-as-sharepoint-2010-user-profile-thumbnails/</guid><description>&lt;p&gt;User profile photos have changed in SharePoint 2010 in that they are now stored in a single image library in the MySite Host root site collection. They have also changed in that when you change the profile photo, SharePoint takes the file and creates three new images at specific sizes, then discards the file you gave it. These files have specific names to link them to the user account and come in small, medium and large flavours.&lt;/p&gt;</description></item></channel></rss>