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 > VB Script

Vista - Re: VBscript works normally on Windows XP/Win2003 but not on Win Vista -> "Invalid class" error

Reply
 
Old 09-24-2009   #1 (permalink)
Richard Mueller [MVP]


 
 

Re: VBscript works normally on Windows XP/Win2003 but not on Win Vista -> "Invalid class" error


"Nick Dakoronias" <dakoroni@newsgroup> wrote in message
news:AF5BC5A9-873A-447E-9FD4-F75E0F89655D@newsgroup
Quote:

> Dear forum users
>
> I have a customer who is using a VB Script to create one swbemrefresher
> object which works normally on Win XP and Win2003 platform,
>
> but on Windows Vista platform prompts with "invalid class" error.
>
> Has anybody experienced something similar? Is it a matter of missing
> class? If yes, where it can be found?
>
> Any advice or guidance will be much appreciated.
>
>
>
> Many thanks in advance for your time, effort and support.
>
> Regards, Nick.
I added microsoft.public.scripting.vbscript to you message.

I suspect the script must be run by right-clicking the *.vbs file and
selecting the option "Run as administrator". Or, the script can be run at a
command prompt, but one that has been launched by right clicking a shortcut
to cmd.exe and selecting "Run as administrator". If this doesn't solve the
problem, we need to see some code that duplicates the error.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--



My System SpecsSystem Spec
Old 09-24-2009   #2 (permalink)
Nick Dakoronias


 
 

Re: VBscript works normally on Windows XP/Win2003 but not on Win Vista -> "Invalid class" error

Richard, thanks for posting my thread and your feedback.
I will communicate your suggestions.


"Richard Mueller [MVP]" <rlmueller-nospam@newsgroup> wrote in
message news:eks9lMTPKHA.5108@newsgroup
Quote:

>
> "Nick Dakoronias" <dakoroni@newsgroup> wrote in message
> news:AF5BC5A9-873A-447E-9FD4-F75E0F89655D@newsgroup
Quote:

>> Dear forum users
>>
>> I have a customer who is using a VB Script to create one swbemrefresher
>> object which works normally on Win XP and Win2003 platform,
>>
>> but on Windows Vista platform prompts with "invalid class" error.
>>
>> Has anybody experienced something similar? Is it a matter of missing
>> class? If yes, where it can be found?
>>
>> Any advice or guidance will be much appreciated.
>>
>>
>>
>> Many thanks in advance for your time, effort and support.
>>
>> Regards, Nick.
>
> I added microsoft.public.scripting.vbscript to you message.
>
> I suspect the script must be run by right-clicking the *.vbs file and
> selecting the option "Run as administrator". Or, the script can be run at
> a command prompt, but one that has been launched by right clicking a
> shortcut to cmd.exe and selecting "Run as administrator". If this doesn't
> solve the problem, we need to see some code that duplicates the error.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>
My System SpecsSystem Spec
Old 09-25-2009   #3 (permalink)
Nick Dakoronias


 
 

Re: VBscript works normally on Windows XP/Win2003 but not on Win Vista -> "Invalid class" error

It seems that your suggestions finally worked.
Thanks for your support.
Rgds, Nick.

"Nick Dakoronias" <dakoroni@newsgroup> wrote in message
news:E4456BC9-40AA-4EEA-96DE-67926EC18109@newsgroup
Quote:

> Richard, thanks for posting my thread and your feedback.
> I will communicate your suggestions.
>
>
> "Richard Mueller [MVP]" <rlmueller-nospam@newsgroup> wrote in
> message news:eks9lMTPKHA.5108@newsgroup
Quote:

>>
>> "Nick Dakoronias" <dakoroni@newsgroup> wrote in message
>> news:AF5BC5A9-873A-447E-9FD4-F75E0F89655D@newsgroup
Quote:

>>> Dear forum users
>>>
>>> I have a customer who is using a VB Script to create one swbemrefresher
>>> object which works normally on Win XP and Win2003 platform,
>>>
>>> but on Windows Vista platform prompts with "invalid class" error.
>>>
>>> Has anybody experienced something similar? Is it a matter of missing
>>> class? If yes, where it can be found?
>>>
>>> Any advice or guidance will be much appreciated.
>>>
>>>
>>>
>>> Many thanks in advance for your time, effort and support.
>>>
>>> Regards, Nick.
>>
>> I added microsoft.public.scripting.vbscript to you message.
>>
>> I suspect the script must be run by right-clicking the *.vbs file and
>> selecting the option "Run as administrator". Or, the script can be run at
>> a command prompt, but one that has been launched by right clicking a
>> shortcut to cmd.exe and selecting "Run as administrator". If this doesn't
>> solve the problem, we need to see some code that duplicates the error.
>>
>> --
>> Richard Mueller
>> MVP Directory Services
>> Hilltop Lab - http://www.rlmueller.net
>> --
>>
>>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
DVD Maker "invalid class string" during transcode Vista music pictures video
0X800CCC0B - Get "invalid password" error???? Live Mail
Not a "Genuine Copy", and an "Invalid Activation Key" from Gateway Vista installation & setup
Lexmark 1150 gets "Handle is invalid" error... Vista print fax & scan
gwmi "Invalid class" error 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