<?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"
	>
<channel>
	<title>Comments on: Important Changes in VMware Toolkit 1.0</title>
	<atom:link href="http://halr9000.com/article/552/feed" rel="self" type="application/rss+xml" />
	<link>http://halr9000.com/article/552</link>
	<description>(powershell &#38; other stuff)</description>
	<pubDate>Thu, 20 Nov 2008 07:18:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/552#comment-6819</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Tue, 29 Jul 2008 13:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/552#comment-6819</guid>
		<description>They did make changes to cvi (the alias I made for it) so that it now keeps your connection alive just like VIC.  

To my knowledge, their plans did not work out 100% with regards to $defaultVIServer.  One thing I don't like is that after you use disconnect-viserver, the $defaultVIServer variable still contains a value.  They should have nulled it.  If you use a function (named disconnect-viserver) to fix this up, then you can use the presence or absence of that variable to determine if there is a connection.  Sorta.  You can have multiple connections active at once, so that gets confusing.

I was never able to enforce scope on the variable, I don't know if that was a bug or by design.  It _always_ seemed to be privately scoped, even if you $global'd it.</description>
		<content:encoded><![CDATA[<p>They did make changes to cvi (the alias I made for it) so that it now keeps your connection alive just like VIC.  </p>
<p>To my knowledge, their plans did not work out 100% with regards to $defaultVIServer.  One thing I don&#8217;t like is that after you use disconnect-viserver, the $defaultVIServer variable still contains a value.  They should have nulled it.  If you use a function (named disconnect-viserver) to fix this up, then you can use the presence or absence of that variable to determine if there is a connection.  Sorta.  You can have multiple connections active at once, so that gets confusing.</p>
<p>I was never able to enforce scope on the variable, I don&#8217;t know if that was a bug or by design.  It _always_ seemed to be privately scoped, even if you $global&#8217;d it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://halr9000.com/article/552#comment-6815</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Tue, 29 Jul 2008 05:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/552#comment-6815</guid>
		<description>I saw the thread you started on VMware Communities about get-view... Holy crap they listened!  The fact that they fixed get-view to work in the pipeline just made it infinitely more useful.   Especially since, until vmware finishes building up there cmdlet base, Get-View is our only window into some of VI more hidden configuration items. 

Does the change in Connect-VIServer mean that a powershell session will maintain the same persistent state as VIC?  If so what about scripts? I know that get-VIServer was scoped because it stored all the connection information in $defaultVIServer (not at work going off mem).  Therefor, before, when connecting in a function that connection was not available to you once you left that function.  

If I'm reading everything correctly looks like it's time to start treating VI like AD or SQL  Connect-&#62; do stuff -&#62; Disconnect.</description>
		<content:encoded><![CDATA[<p>I saw the thread you started on VMware Communities about get-view&#8230; Holy crap they listened!  The fact that they fixed get-view to work in the pipeline just made it infinitely more useful.   Especially since, until vmware finishes building up there cmdlet base, Get-View is our only window into some of VI more hidden configuration items. </p>
<p>Does the change in Connect-VIServer mean that a powershell session will maintain the same persistent state as VIC?  If so what about scripts? I know that get-VIServer was scoped because it stored all the connection information in $defaultVIServer (not at work going off mem).  Therefor, before, when connecting in a function that connection was not available to you once you left that function.  </p>
<p>If I&#8217;m reading everything correctly looks like it&#8217;s time to start treating VI like AD or SQL  Connect-&gt; do stuff -&gt; Disconnect.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
