471,305 Members | 1,104 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Disabling hardware or services using WMI

Im having some trouble disabling hardware using WMI. I got a handle on
the device, but when I call SetPowerState I get a type mismatch. The
definition of the method says it takes an int (power level), datetime
(when to do it)
objNetCard.SetPowerState(6, Convert.ToDateTime(Now()))
Seeing as that wasnt going anywhere I tried stopping the service for
the driver using StopService - but this returns 4, which apparently
means Invalid service control.... but ive got no idea what that really
means or how to fix it.

Aug 17 '05 #1
0 864

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Boris | last post: by
20 posts views Thread by dukeleto | last post: by
2 posts views Thread by HumptyDumpty | last post: by
reply views Thread by ChrisC | last post: by
2 posts views Thread by eclectic.01 | last post: by
5 posts views Thread by Dave | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.