<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Joe Bothwell’s Personal Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/joeb/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/joeb/feed.xml</link>
    <description>Just another Developer Network site</description>
    <lastBuildDate>Tue, 16 Apr 2019 05:13:47 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Powershell Pass by Reference and WPF Controls</title>
      <link>https://docs.microsoft.com/archive/blogs/joeb/powershell-pass-by-reference-and-wpf-controls</link>
      <pubDate>Mon, 05 Feb 2018 19:45:00 GMT</pubDate>
      <dc:creator><![CDATA[joeb110]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joeb/?p=85</guid>
      <description><![CDATA[function Disable-ComboBox...]]></description>
      <content:encoded><![CDATA[function Disable-ComboBox ([ref][System.Windows.Forms.ComboBox]$comboBox)
{
$comboBox.Value.IsEnabled = $false
}
function Enable-Button ([ref][System.Windows.Forms.Button]$button)
{
$button.Value.IsEnabled = $True
}

Disable-ComboBox($myCombobox)]]></content:encoded>
    </item>
    <item>
      <title>Running PowerShell from C#</title>
      <link>https://docs.microsoft.com/archive/blogs/joeb/running-powershell-from-c</link>
      <pubDate>Mon, 04 Dec 2017 16:42:28 GMT</pubDate>
      <dc:creator><![CDATA[joeb110]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joeb/?p=65</guid>
      <description><![CDATA[using System.Collections.ObjectModel;
using System.Management.Automation;
using static...]]></description>
      <content:encoded><![CDATA[<code>using System.Collections.ObjectModel;
using System.Management.Automation;
using static System.Console;</code>

namespace InvokePS
{
class Program
{
static void Main(string[] args)
{
string message = "'does this work?'";
string script = $@"C:\Users\joe.bothwell\Desktop\HelloWorld.ps1 -a {message}";
PowerShell shell = PowerShell.Create();
shell.Commands.AddScript(script);

Collection results = shell.Invoke();

foreach(PSObject result in results)
{
WriteLine(result.ToString());
}

WriteLine("Press any key to continue...");
ReadLine();
}
}
}]]></content:encoded>
    </item>
    <item>
      <title>After installing v4.4.1642, unable to elevate to PAM Roles</title>
      <link>https://docs.microsoft.com/archive/blogs/joeb/after-installing-v4-4-1642-unable-to-elevate-to-pam-roles</link>
      <pubDate>Thu, 16 Nov 2017 17:57:34 GMT</pubDate>
      <dc:creator><![CDATA[joeb110]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joeb/?p=35</guid>
      <description><![CDATA[After installing v4.4.1642, we were unable to elevate.  Running Get-PAMUsers returned a not...]]></description>
      <content:encoded><![CDATA[<span style="color: #000000;font-family: Calibri">After installing v4.4.1642, we were unable to elevate.  Running Get-PAMUsers returned a not authorize error.  Steps that were taken to resolve the issue:</span>

<span style="color: #000000;font-family: Calibri"> </span>On the Sync server <span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">modify the object deletion run as below – this is done on the Person metaverse person object</span>

<img width="300" height="213" class="alignnone size-medium wp-image-36" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/11/Configure-Object-deletion-Rule-300x213.jpg" />
<ol type="1" start="1">
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Delete the connector space of the CTRL MA</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran Full import on the CTRL MA, this step triggers the metaverse deletion rule and then FIM MA deprovisioning rule. Note: No sync profile was needed here. This action delete all the users in the metaverse.</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran Export on FIM MA deleting all the users in FIM Service . Except for the Bulit-In Syanchronization serviceand  dte.* accounts</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Reverted the change done in step 1</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran Full Import Full Sync on CTRL MA</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran Export on FIM MA</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran Full Import Full Sync on FIM MA</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran Export on FIM MA</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Ran powershell script to set each users ResourceSID in the CtrlPortal</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Removed and re-added Users into PAM Roles in the portal.</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Corrected DNS entry for ctrlpamportal (one address was correct and one was wrong</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">In IIS removed host header for the MIM Privileged Access Management API (was ctrlportal.dte.ic.gov)</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Add ctrlpamportal as the host header for MIM Access Management Portal</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Change MIM Access Management Portal App Pool to PamRestApiAppPool</span></li>
 	<li style="margin: 0px 0px 0px -24px;color: #000000;font-family: 'Calibri',sans-serif;font-size: 11pt;font-style: normal;font-weight: normal"><span style="margin: 0px;color: #333333;font-family: 'Segoe UI',sans-serif;font-size: 10.5pt">Did iisreset</span></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Problem installing MIM v4.4.1642 - Access denied</title>
      <link>https://docs.microsoft.com/archive/blogs/joeb/problem-installing-mim-v4-4-1642-access-denied</link>
      <pubDate>Thu, 16 Nov 2017 17:50:43 GMT</pubDate>
      <dc:creator><![CDATA[joeb110]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/joeb/?p=26</guid>
      <description><![CDATA[When installing MIM 2016 v4.4.1542 Hotfix, we were getting the following error:
Calling custom...]]></description>
      <content:encoded><![CDATA[<pre>When installing MIM 2016 v4.4.1542 Hotfix, we were getting the following error:</pre>
<span>Calling custom action Microsoft.IdentityManagement.ServerCustomActions.CustomActions.AddServiceToPerformanceMonitors</span>

<span>Adding FIMService account to 'Peformance Monitor Users' group
Property name = 'ServiceAccount', value = 'domain\msvc'
DomainName='domain'
AccountName='msvc'
Domain AD Found
Exception Thrown by custom action"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation ---&gt; System.UnauthorizedAccessException: Access is denied.</span>
<pre>We resolved this by temporary add the MIM Portal Machine account to Domain Admins.  This allowed us to successfully install v4.4.1642</pre>]]></content:encoded>
    </item>
  </channel>
</rss>