<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>vSphere PowerCLI : VMware Healthcheck script : Comments</title>
    <link>http://communities.vmware.com/docs/DOC-7430#comments</link>
    <description>Comments on : VMware Healthcheck script</description>
    <language>en</language>
    <pubDate>Mon, 23 Mar 2009 15:55:16 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-03-23T15:55:16Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: VMware Healthcheck script</title>
      <link>http://communities.vmware.com/docs/DOC-7430#comments-11101</link>
      <description>Hi  - &lt;br /&gt;
&lt;br /&gt;
We have recently started using this script and found it to be more helpful than we could have imagined.  We are having one problem, however, which I hope you can help us with.  We can only get the script to run when we are logged into the server.  When the script is set to run as a scheduled task, we get the email report, however all the fields are empty.  I then mofified our batch file to write to an error log, via "2&amp;gt;&amp;#38;1 &amp;gt; error.log" and the output I see when the script attempts to run as a scheduled task is as follows - &lt;br /&gt;
You are not currently connected to any servers. Please connect first using Connect-V&lt;br /&gt;
IServer &lt;br /&gt;
Might you be able to help us understand what we need to do to make this error go away?&lt;br /&gt;
&lt;br /&gt;
Thank you very much for sharing the script and for your time - &lt;br /&gt;
&lt;br /&gt;
Steve Fortuna</description>
      <pubDate>Mon, 23 Mar 2009 15:54:52 GMT</pubDate>
      <author>sfortuna74</author>
      <guid>http://communities.vmware.com/docs/DOC-7430#comments-11101</guid>
      <dc:date>2009-03-23T15:54:52Z</dc:date>
      <clearspace:dateToText>8 months, 4 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: VMware Healthcheck script</title>
      <link>http://communities.vmware.com/docs/DOC-7430#comments-11354</link>
      <description>Try the fix located here.&lt;br /&gt;
scheduled tasks + credentials not passed to script&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://communities.vmware.com/message/1162102#1162102"&gt;http://communities.vmware.com/message/1162102#1162102&lt;/a&gt;</description>
      <pubDate>Mon, 11 May 2009 12:16:55 GMT</pubDate>
      <author>dmn0211</author>
      <guid>http://communities.vmware.com/docs/DOC-7430#comments-11354</guid>
      <dc:date>2009-05-11T12:16:55Z</dc:date>
      <clearspace:dateToText>6 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: VMware Healthcheck script</title>
      <link>http://communities.vmware.com/docs/DOC-7430#comments-12747</link>
      <description>hi,&lt;br /&gt;
&lt;br /&gt;
firstly, thank you very VERY much to all involved with the script, I is a great utililty and has made my life much easier, so cudos to the smart people &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
I would like some help however. I have downloaded the modified script and I am trying to start it with a batch file. It does not run as a scheduled task, after reading this thread I understand that I shoudl create a profile for the user account which I use to run the script. there is no profile.ps1 file to edit on this account. can someone please help me step by step how to get the profile.ps1 file created and edited so that I can schedule this task to run it?&lt;br /&gt;
&lt;br /&gt;
thanks again to the community!</description>
      <pubDate>Thu, 08 Oct 2009 04:50:07 GMT</pubDate>
      <author>VRudi777</author>
      <guid>http://communities.vmware.com/docs/DOC-7430#comments-12747</guid>
      <dc:date>2009-10-08T04:50:07Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: VMware Healthcheck script</title>
      <link>http://communities.vmware.com/docs/DOC-7430#comments-12755</link>
      <description>Did you try adding the section below to your PS script? &lt;br /&gt;
&lt;p /&gt;
	$USER = $env:username&lt;br /&gt;
	$APPPATH = "C:\Documents and Settings\" + $USER + "\Application Data"&lt;br /&gt;
&lt;br /&gt;
	#SET THE APPDATA ENVIRONMENT WHEN NEEDED&lt;br /&gt;
	if ($env:appdata -eq $null -or $env:appdata -eq 0)&lt;br /&gt;
	{&lt;br /&gt;
		$env:appdata = $APPPATH&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
The 1.5 toolkit update required this fix. &lt;br /&gt;
&lt;br /&gt;
As for the batch file, you don't really need one to run a powershell script as a schedule task.&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.virtu-al.net/2009/07/10/running-a-powercli-scheduled-task/"&gt;http://www.virtu-al.net/2009/07/10/running-a-powercli-scheduled-task/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you want to edit the profile.ps1, the simplest way is to use powergui.&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.powergui.org/index.jspa"&gt;http://www.powergui.org/index.jspa&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In addition, you can also look at the script located here for some additional ideas on reporting. And scripting &lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://www.virtu-al.net/2009/08/18/powercli-daily-report-v2/"&gt;http://www.virtu-al.net/2009/08/18/powercli-daily-report-v2/&lt;/a&gt;</description>
      <pubDate>Thu, 08 Oct 2009 23:33:57 GMT</pubDate>
      <author>dmn0211</author>
      <guid>http://communities.vmware.com/docs/DOC-7430#comments-12755</guid>
      <dc:date>2009-10-08T23:33:57Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: VMware Healthcheck script</title>
      <link>http://communities.vmware.com/docs/DOC-7430#comments-12739</link>
      <description>thanks I got it working... had to create a new profile in powershell and then pasted in the one liner from the previous page... &lt;br /&gt;
&lt;br /&gt;
thank you for the extra links! &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Fri, 09 Oct 2009 04:42:58 GMT</pubDate>
      <author>VRudi777</author>
      <guid>http://communities.vmware.com/docs/DOC-7430#comments-12739</guid>
      <dc:date>2009-10-09T04:42:58Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
    </item>
  </channel>
</rss>

