Windows Vista Forums

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


    Richard Mueller [MVP] Guest

    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

    > 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

  2. #2


    Nick Dakoronias Guest

    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

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

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

  3. #3


    Nick Dakoronias Guest

    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

    > 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

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

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2003 Server - NTFRS error 13506 - "Invalid CO Location" Castelfidardo Server General 0 20 Oct 2009
"Class Not Registered" Error Message: Huh? Scott Seely Vista performance & maintenance 2 05 Oct 2009
DVD Maker "invalid class string" during transcode Maurice Vista music pictures video 3 27 Jan 2009
Lexmark 1150 gets "Handle is invalid" error... evolutionxbox Vista print fax & scan 0 30 Mar 2007
gwmi "Invalid class" error rockmoose PowerShell 5 29 Dec 2006