<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: New PowerShell Script: Remove-HostingConnection V1.0	</title>
	<atom:link href="https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/</link>
	<description>The Accidental Citrix Admin - The site for those who find themselves supporting Citrix involuntarily or accidentally</description>
	<lastBuildDate>Mon, 31 May 2021 19:22:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Carl Webster		</title>
		<link>https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1663</link>

		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Mon, 18 Feb 2019 14:29:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=10546#comment-1663</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1662&quot;&gt;Jonathan Redford&lt;/a&gt;.

I have not heard of that before and without having access to your system, I don&#039;t know what you need to do to resolve it. Are you able to open a support ticket with either Nutanix or Citrix? I have a few friends who work at Nutanix. I will see if they have any suggestions.

Thanks

Webster]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1662">Jonathan Redford</a>.</p>
<p>I have not heard of that before and without having access to your system, I don&#8217;t know what you need to do to resolve it. Are you able to open a support ticket with either Nutanix or Citrix? I have a few friends who work at Nutanix. I will see if they have any suggestions.</p>
<p>Thanks</p>
<p>Webster</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Redford		</title>
		<link>https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1662</link>

		<dc:creator><![CDATA[Jonathan Redford]]></dc:creator>
		<pubDate>Sun, 17 Feb 2019 05:21:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=10546#comment-1662</guid>

					<description><![CDATA[Ok… I have a pesky controller in my environment that won’t let go of Nutanix after I upgraded the hypervisor. I’ve removed the machine catalogs and there are still 13 background jobs pending. Now, I have looked into clearing these jobs, but there are a lot to sift through. Like over 10000 kind of a lot. Your script cannot handle that too easily apparently. I am not sure what needs to be changed with the script so I figured I would nudge you and see if you’ve heard of this one before. Code looks pretty tight, btw.]]></description>
			<content:encoded><![CDATA[<p>Ok… I have a pesky controller in my environment that won’t let go of Nutanix after I upgraded the hypervisor. I’ve removed the machine catalogs and there are still 13 background jobs pending. Now, I have looked into clearing these jobs, but there are a lot to sift through. Like over 10000 kind of a lot. Your script cannot handle that too easily apparently. I am not sure what needs to be changed with the script so I figured I would nudge you and see if you’ve heard of this one before. Code looks pretty tight, btw.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Carl Webster		</title>
		<link>https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1469</link>

		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Sat, 04 Nov 2017 20:56:31 +0000</pubDate>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=10546#comment-1469</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1467&quot;&gt;Andrew Williamson&lt;/a&gt;.

I found the logic issue you reported. Thanks for finding the bug. I have submitted the fix to my PowerShell mentor for his feedback. It appears to work for me. If you would like to test the fix, just send me an email. webster@carlwebster.com

Thanks

Webster]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1467">Andrew Williamson</a>.</p>
<p>I found the logic issue you reported. Thanks for finding the bug. I have submitted the fix to my PowerShell mentor for his feedback. It appears to work for me. If you would like to test the fix, just send me an email. <a href="mailto:webster@carlwebster.com">webster@carlwebster.com</a></p>
<p>Thanks</p>
<p>Webster</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Carl Webster		</title>
		<link>https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1468</link>

		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Thu, 02 Nov 2017 10:27:59 +0000</pubDate>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=10546#comment-1468</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1467&quot;&gt;Andrew Williamson&lt;/a&gt;.

When I get back home and to my lab, I will re-test that scenario. Thanks for looking at the script.

Webster]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1467">Andrew Williamson</a>.</p>
<p>When I get back home and to my lab, I will re-test that scenario. Thanks for looking at the script.</p>
<p>Webster</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrew Williamson		</title>
		<link>https://www.carlwebster.com/new-powershell-script-remove-hostingconnection-v1-0/comment-page-1/#comment-1467</link>

		<dc:creator><![CDATA[Andrew Williamson]]></dc:creator>
		<pubDate>Thu, 02 Nov 2017 10:23:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.carlwebster.com/?p=10546#comment-1467</guid>

					<description><![CDATA[Nice script Carl - can&#039;t test it, but I think I spotted a slight logic flaw?

Your ShouldProcess will rightly only operate if -WhatIf isn&#039;t provided - but it looks like you&#039;re going to write fails to your log if you supply WhatIf. Which isn&#039;t really a fail - you just didn&#039;t carry out the action, in which case no point in logging?

If I&#039;m reading it right, here&#039;s a typical sample with line numbers where I think the issue is:

552: Set Succeeded = false
555: Start the highlevel log action with Start-LogHighLevelOperation
563: remove-item with whatif...
   569: and if that worked, succeeded = true
But we passed -whatif, so succeeded = false - for something we never tried to do
583: close and write a log for that fail

Would suggest perhaps wrapping the logging elements as well in the ShouldProcess blocks. Otherwise, every time you pass WhatIf (testing etc), you&#039;ll be logging fails all over the place.]]></description>
			<content:encoded><![CDATA[<p>Nice script Carl &#8211; can&#8217;t test it, but I think I spotted a slight logic flaw?</p>
<p>Your ShouldProcess will rightly only operate if -WhatIf isn&#8217;t provided &#8211; but it looks like you&#8217;re going to write fails to your log if you supply WhatIf. Which isn&#8217;t really a fail &#8211; you just didn&#8217;t carry out the action, in which case no point in logging?</p>
<p>If I&#8217;m reading it right, here&#8217;s a typical sample with line numbers where I think the issue is:</p>
<p>552: Set Succeeded = false<br />
555: Start the highlevel log action with Start-LogHighLevelOperation<br />
563: remove-item with whatif&#8230;<br />
   569: and if that worked, succeeded = true<br />
But we passed -whatif, so succeeded = false &#8211; for something we never tried to do<br />
583: close and write a log for that fail</p>
<p>Would suggest perhaps wrapping the logging elements as well in the ShouldProcess blocks. Otherwise, every time you pass WhatIf (testing etc), you&#8217;ll be logging fails all over the place.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
