When I run the lastest script my PowerStar window comes up but in PS I get the error Below
The variable '$global:one' cannot be retrieved because it has not been set.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:589 char:1
+ $global:one
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (global

String) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
I can connect to one of my 2 HA nodes and when I click the HAImagex it does show me the info and sync status, but when I click on the IQN it shows nothing and generates PS Errors:
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5
0
0
The variable '$global:one' cannot be retrieved because it has not been set.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:589 char:1
+ $global:one
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (global

String) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
The variable '$M_TextBox01' cannot be retrieved because it has not been set.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:596 char:5
+ $M_TextBox01.Text
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (M_TextBox01:String) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
The property 'TargetName' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:519 char:5
+ $M_ListBox1.Items.Add(""+$targettemp.TargetName)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Name' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:520 char:5
+ $M_ListBox1.Items.Add("LuneName: "+$targettemp.Name)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'File' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:521 char:5
+ $M_ListBox1.Items.Add("File: "+$targettemp.File)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Size' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:522 char:5
+ $M_ListBox1.Items.Add("Size: "+$targettemp.Size)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'DeviceType' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:523 char:5
+ $M_ListBox1.Items.Add("Type: "+$targettemp.DeviceType)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'name' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:524 char:9
+ if ($targettemp.name -like "HA*") {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'TargetName' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:519 char:5
+ $M_ListBox1.Items.Add(""+$targettemp.TargetName)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Name' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:520 char:5
+ $M_ListBox1.Items.Add("LuneName: "+$targettemp.Name)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'File' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:521 char:5
+ $M_ListBox1.Items.Add("File: "+$targettemp.File)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Size' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:522 char:5
+ $M_ListBox1.Items.Add("Size: "+$targettemp.Size)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'DeviceType' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:523 char:5
+ $M_ListBox1.Items.Add("Type: "+$targettemp.DeviceType)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'name' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:524 char:9
+ if ($targettemp.name -like "HA*") {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'TargetName' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:519 char:5
+ $M_ListBox1.Items.Add(""+$targettemp.TargetName)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Name' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:520 char:5
+ $M_ListBox1.Items.Add("LuneName: "+$targettemp.Name)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'File' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:521 char:5
+ $M_ListBox1.Items.Add("File: "+$targettemp.File)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Size' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:522 char:5
+ $M_ListBox1.Items.Add("Size: "+$targettemp.Size)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'DeviceType' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:523 char:5
+ $M_ListBox1.Items.Add("Type: "+$targettemp.DeviceType)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'name' cannot be found on this object. Verify that the property exists.
At C:\Windows\system32\WindowsPowerShell\v1.0\Starwind_a_06.ps1:524 char:9
+ if ($targettemp.name -like "HA*") {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
Thanks! This is a very nice script and will be a valuable addition.