<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GUI Archives - LucD notes</title>
	<atom:link href="https://www.lucd.info/tag/gui/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/tag/gui/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Wed, 09 Nov 2022 08:11:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.lucd.info/wp-content/uploads/2018/12/cropped-120px-Tibetan_Dharmacakra-32x32.png</url>
	<title>GUI Archives - LucD notes</title>
	<link>https://www.lucd.info/tag/gui/</link>
	<width>32</width>
	<height>32</height>
</image> 
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>Event-O-Matic</title>
		<link>https://www.lucd.info/2013/09/02/event-o-matic/</link>
					<comments>https://www.lucd.info/2013/09/02/event-o-matic/#comments</comments>
		
		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Sun, 01 Sep 2013 23:54:03 +0000</pubDate>
				<category><![CDATA[2013]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[VSVC4944]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[VMworld]]></category>
		<category><![CDATA[WIndows Forms]]></category>
		<guid isPermaLink="false">http://www.lucd.info/?p=4550</guid>

					<description><![CDATA[One of the questions, related to working with vSphere events and tasks, that [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>One of the questions, related to working with vSphere <strong>events</strong> and <strong>tasks</strong>, that often appear in the <a href="https://communities.vmware.com/community/vmtn/automationtools/powercli" target="_blank" rel="noopener noreferrer">PowerCLI Community</a>, is how do we know which events to select for a query.</p>
<p>To make that task a bit easier, I wrote the <strong>Event-O-Matic</strong> script. It&#8217;s a GUI that allows you to pick a number of events, and the script will generate the PowerShell code, and place it in the <span style="background-color: #ffff00;"><strong>clipboard</strong></span>. The Event-O-Matic script was mentioned during our <strong>VMworld 2013 US</strong> session VSVC4944.</p>
<p><a href="https://www.lucd.info/2013/09/02/event-o-matic/event-o-matic-3-2/" rel="attachment wp-att-4572"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4572" src="https://lucd.info/wp-content/uploads/2013/09/event-o-matic-3-2.png" alt="event-o-matic-3-2" width="598" height="396" srcset="https://www.lucd.info/wp-content/uploads/2013/09/event-o-matic-3-2.png 598w, https://www.lucd.info/wp-content/uploads/2013/09/event-o-matic-3-2-300x198.png 300w" sizes="(max-width: 598px) 100vw, 598px" /></a></p>
<p><strong><span style="color: #000000; background-color: #ffff00;">Update November 9th 2022</span>: </strong></p>
<ul>
<li>removed PSSnapin loaded test</li>
</ul>
<p><strong><span style="color: #000000; background-color: #ffff00;">Update September 7th 2013</span>: </strong></p>
<ul>
<li>added at least PowerShell v3 test</li>
<li>added PowerCLI core pssnapin loaded test</li>
</ul>
<p><span id="more-4550"></span></p>
<p>The script presents a GUI based on Windows Forms. The PowerShell code to generate the GUI was created by the <a href="https://www.sapien.com/software/communitytools#PrimalFormsCE" target="_blank" rel="noopener noreferrer">Sapien PrimalForms Community Edition</a>.</p>
<p>Due to the size of the script, I did not place the complete script inline in this post, but rather I provided a download link. Make sure to &#8220;<span style="background-color: #ffff00;"><strong><em>unblock</em></strong></span>&#8221; the script after you downloaded it, to avoid problems with the PowerShell execution policy.</p>
<p>[wpfilebase tag=file id=28]</p>
<p>The use of the script is quite easy (we think). A short overview of a typical session:</p>
<ol>
<li>Start the script</li>
<li>In the <strong>vSphere Server</strong> text-box enter the name or IP address of an <strong>ESXi</strong> or a <strong>vCenter server</strong>.</li>
<li>Click the <strong>Connect</strong> button.
<ol>
<li>If the connection is successful, the line below the vSphere Server text-box will display the version of the vSphere Server.</li>
<li>The <strong>Events</strong> box will list all the events that exist on the vSphere server.</li>
<li>The number of events that are found will be displayed just above the Events box.</li>
</ol>
</li>
<li>When you <strong>hover</strong> over a specific event, the <strong>description</strong> of the event (if present) will be displayed in a pop-up box.</li>
<li>You can also use the Name and Description <strong>radio-buttons</strong> to switch between the eventname and it&#8217;s description.</li>
<li>You can search for text that should appear in the Name or Description field. Enter the text in the <strong>Search text box</strong> and click <strong>Search</strong>. The Events window will now only show the events that have the specific text in the <strong>Name</strong> of in the <strong>Description</strong> field.</li>
<li>When you <strong>select</strong> an event by clicking on it, the event will appear in the <strong>Selected</strong> box.</li>
<li>When you <strong>click</strong> on an event in the Selected box, the event will be <strong>removed</strong>.</li>
<li>When all the required events are selected, click the Generate Code button. The code will be stored <span style="background-color: #ffff00;">in the clipboard</span>.</li>
<li>By default the code generator uses the <a href="https://www.vmware.com/support/developer/PowerCLI/PowerCLI51R2/html/Get-VIEvent.html" target="_blank" rel="noopener noreferrer">Get-VIEvent</a> cmdlet, but by selected the <strong>Get-VIEventPlus switch</strong>, you can generate code that uses the <strong>Get-VIEventPlus</strong> function. See my <a href="https://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/" target="_blank" rel="noopener noreferrer">Get the vMotion/svMotion history</a> post for the Get-VIEventPlus function.</li>
<li>The Finish button is self-explaining I assume.</li>
</ol>
<p>During our VMworld US 2013 session, we showed a short video that demonstrated the use of the script.</p>
<p><iframe title="Event-O-Matic 3.1" width="770" height="578" src="https://www.youtube.com/embed/LMathNe0bYE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p>Enjoy !</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lucd.info/2013/09/02/event-o-matic/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
