Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

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

Reply
 
Old 01-23-2009   #1 (permalink)
Rich


 
 

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
Old 01-24-2009   #2 (permalink)
Shay Levy [MVP]


 
 

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
Old 01-26-2009   #3 (permalink)
Marco Shaw [MVP]


 
 

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

Rich wrote:
Quote:

> 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
Reply

Thread Tools


Similar Threads
Thread Forum
Unwanted Multiple contacts in "To","CC","BCC" of email send catago Vista mail
Exception calling "Send" with "1" argument(s) error using PING PowerShell
Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" Vista General
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Vista General
interesting "issue" or "bug" with psobjects when calling DOTNET framework stuff PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46