sometimes I get so into a problem that I forget some basic troubleshooting steps! I replaced the new plugin content with a simple script and it worked. Thanks again Luc!
The new plugin contains a function that I loaded in the ISE profile that I normally use every day but it's not used by the scripts that run scheduled, so I created the $profile.ps1 and added the function there...and it worked!
and no... I don't use the 00 plugin to call the vcenter servers actually I set the 00 plugin NOT to call anything..
$Title = "Connection settings for vCenter"
$Author = "Alan Renouf"
$PluginVersion = 1.20
$Header = "Connection Settings"
$Comments = "Connection Plugin for connecting to vSphere"
$Display = "None"
$PluginCategory = "vSphere"
# Start of Settings
# Please Specify the address (and optional port) of the vCenter server to connect to [servername(:port)]
#$Server = ""
# End of Settings
I instead created a global-variables-VCx.ps1 file for each vcenter server and edited it like this:
# Set the following to true to enable the setup wizard for first time run
$SetupWizard = $False
$Server = "VC1"
$diskformat = "thin"
$OverAllocation = 100
then the vcheck.ps1 invoke the right plugin-VC1.xml file which calls that global-variables-VC1.ps1
<vCheck>
<globalVariables>global-variables-VC1.ps1</globalVariables>
<plugins path="Plugins">
<plugin>00 Connection Plugin for vCenter.ps1</plugin>
<plugin>03 Datastore Information.ps1</plugin>
<plugin>07 Hosts Overcommit State.ps1</plugin>
then anytime I need a report on the fly I run the scheduled task manually. Do you foresee any problems with my approach?