Method invocation failed because [System.Windows.Controls.ItemCollection]

Aug 9, 2013 at 10:16 AM
I am running the script after i started powershell with the -STA option.

I added 1 server and selected intalled updates-> get installed updates

but this is not working. I am getting errors in powershell:
PS C:\Patches\PoshPAIG_2_1_5> .\Start-PoshPAIG.ps1
Method invocation failed because [System.Windows.Controls.ItemCollection] doesn't contain a method named 'EditItem'.
At line:9 char:48
+                 $uiHash.Listview.Items.EditItem <<<< ($Computer)
    + CategoryInfo          : InvalidOperation: (EditItem:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

Method invocation failed because [System.Windows.Controls.ItemCollection] doesn't contain a method named 'CommitEdit'.
At line:11 char:50
+                 $uiHash.Listview.Items.CommitEdit <<<< ()
    + CategoryInfo          : InvalidOperation: (CommitEdit:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

Method invocation failed because [System.Windows.Controls.ItemCollection] doesn't contain a method named 'EditItem'.
At line:24 char:48
+                 $uiHash.Listview.Items.EditItem <<<< ($Computer)
    + CategoryInfo          : InvalidOperation: (EditItem:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

Method invocation failed because [System.Windows.Controls.ItemCollection] doesn't contain a method named 'CommitEdit'.
At line:30 char:50
+                 $uiHash.Listview.Items.CommitEdit <<<< ()
    + CategoryInfo          : InvalidOperation: (CommitEdit:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound
Aug 9, 2013 at 10:19 AM
Aug 9, 2013 at 12:36 PM
John_Bons wrote:
Ok going to check post https://poshpaig.codeplex.com/discussions/431703

:)
Updating to version 3 of powershell solved my problem.