Exception calling "CreateInstance" with "2" argument(s): for Microsoft.Update.UpdateColl


  1.    23 Jan 2009 #1
    Rich Guest

    Exception calling "CreateInstance" with "2" argument(s): for Microsoft.Update.UpdateColl


    I have been fighthing with this error a good amount of time. I have
    verified that the wuapi.dll is registered for the CLSID as found in the
    registry. I cant seem to make this com object work locally or remotely on
    any desktop or servers. Anyone with any ideas or experience with the
    Microsoft.Update.UpdateColl? Thanks.

    $Server = "server001"
    $type =
    [System.Type]::GetTypeFromProgID("Microsoft.Update.UpdateColl",$Server)
    $objUpdatesToDownload = [system.Activator]::CreateInstance($type)

    Exception calling "CreateInstance" with "2" argument(s): "Retrieving
    the COM class factory for remote component with CLSID {13639463-00DB-
    4646-803D-528026140D88} from machine server001 failed due to the fol
    lowing error: 80040154."
    At line:1 char:59
    + $objUpdatesToDownload = [system.Activator]::CreateInstance <<<< ($t
    ype)

      My System SpecsSystem Spec

  2.    24 Jan 2009 #2
    Shay Levy [MVP] Guest

    Re: Exception calling "CreateInstance" with "2" argument(s): for Microsoft.Update.UpdateColl




    "Incidentally, the Windows Update object model is a mixed-bag: some of the
    objects can be created on - and thus used against - remote computers while
    others canít."

    http://www.microsoft.com/technet/scr...5/hey0824.mspx



    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar



    R> I have been fighthing with this error a good amount of time. I have
    R> verified that the wuapi.dll is registered for the CLSID as found in
    R> the registry. I cant seem to make this com object work locally or
    R> remotely on any desktop or servers. Anyone with any ideas or
    R> experience with the Microsoft.Update.UpdateColl? Thanks.
    R>
    R> $Server = "server001"
    R> $type =
    R> [System.Type]::GetTypeFromProgID("Microsoft.Update.UpdateColl",$Serve
    R> r)
    R> $objUpdatesToDownload = [system.Activator]::CreateInstance($type)
    R> Exception calling "CreateInstance" with "2" argument(s): "Retrieving
    R> the COM class factory for remote component with CLSID {13639463-00DB-
    R> 4646-803D-528026140D88} from machine server001 failed due to the fol
    R> lowing error: 80040154."
    R> At line:1 char:59
    R> + $objUpdatesToDownload = [system.Activator]::CreateInstance <<<< ($t
    R> ype)


      My System SpecsSystem Spec

  3.    26 Jan 2009 #3
    Marco Shaw [MVP] Guest

    Re: Exception calling "CreateInstance" with "2" argument(s): forMicrosoft.Update.UpdateColl


    Rich wrote:

    > I just tried this using vbscript and it worked locally. So as you were
    > saying it does look like Powershell has some issue with this specific
    > COM object.
    What does your VBScript code look like? Curious...
      My System SpecsSystem Spec

Exception calling "CreateInstance" with "2" argument(s): for Microsoft.Update.UpdateColl

Similar Threads
Thread Forum
"Space character " making "improper argument" error in vista
Hi Everyone, i am using CRichEditCtrl::GetLine() function to read the text from a dialog. If my text contains any space character then it is...
General Discussion
Unwanted Multiple contacts in "To","CC","BCC" of email send catago
In the email "Contacts" address listing my contacts are listed one time which is fine. When I "Create" a new email or "Forward", "Reply" or "Reply...
Vista mail
Exception calling "Send" with "1" argument(s) error using PING
I have a PowerShell script which uses the System.Net.NetworkInformation.Ping object. It reads thru a text file of hostnames and does a PING test....
PowerShell
Vista not wotking with "My Computer" or "Control Panel", "Screen Saver"
HI Folks, When I try to check contents of "My Computer", "Control Panel" the screen does a 1 second display then disappears back the Start screen....
Vista General
How can I add the icons "Delete", "Cut", "Copy" and "Paste" in Vis
Hi, Does anybody know how I can find the icons was usually i earlier verisons of Windows in Vista? I miss the icons as "Delete", "Cut", "Copy"...
Vista file management
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail"
I just bought Vista Home Premium together with Office 2007 Home and Student. I noticed that Home and Student doesn't include Outlook 2007, but...
Vista General
interesting "issue" or "bug" with psobjects when calling DOTNET framework stuff
so in a previous issue, we were having cases where we had an object, spotwelded on some properties with addmember (which is stored in the psobject...
PowerShell

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    © Designer Media Ltd
    All times are GMT -5. The time now is 15:05.
    .