Jump to content
Sign in to follow this  
November

WMI Issue

Recommended Posts

How can i prevent a script to error exit when the user dont have access to wmi?

Anyone can help this poor soul? :whistle:

Cheers.

P.S. - Any code ill post it!


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

I don't know a lot of this but I ones stumpled over this MSDN page that could cast some light in here...

take a look

http://msdn2.microsoft.com/en-us/library/aa389276.aspx

kjactive :P

Been there, read that :S

Thanx anyway but no good 4 me... just to stupid do understand vbs :whistle:

Well,

1st i hate Microsoft.

2nd i hate Microsoft

I just want to have 2 choices:

1st : try to get an error msg if user dont have access to wmi.

2nd : not having my script blasting with a error :D

I know its hard.

I'll just run this with enterprise admin :lmao:

LOL

Cheer all

P.S. - Ideas are welcome


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

Well there's two choises around:

Try to make Autoit3 catch the error with its internal error handle function and not though msg...

$Errorhandle = ObjEvent("AutoIt.Error","MyErrFunc")

This code activates Autoit3 error handle process and drop information to a function called 'MyErrFunc', read more in doc

Find the component error handle functions - most components do have several buildins both as return value and as functions...

Microsoft "%¤#%//&% Vista %¤&(%%/%/%/(/%#""!¤) * 10

Almost all VB components can be used with SvenPs nice activex interface...

kjactive :whistle:

Edited by kjactive

Share this post


Link to post
Share on other sites

Well there's two choises around:

Try to make Autoit3 catch the error with its internal error handle function and not though msg...

$Errorhandle = ObjEvent("AutoIt.Error","MyErrFunc")

This code activates Autoit3 error handle process and drop information to a function called 'MyErrFunc', read more in doc

Find the component error handle functions - most components do have several buildins both as return value and as functions...

Microsoft "%¤#%//&% Vista %¤&(%%/%/%/(/%#""!¤) * 10

Almost all VB components can be used with SvenPs nice activex interface...

kjactive :whistle:

Work like a charm... BUT :P

Now i have to say to the loop to ignore last array item :S

I should be a doctor instead :D

thanx anyway

cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...