473,569 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.SetP owerState(6, Convert.ToDateT ime(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.
Help!

Nov 22 '05 #1
0 778

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1278
by: Ken North | last post by:
To counter the overhead of XML processing, some organizations are turning to hardware accelerators. Jeff Carmichael of Tarari discussed XML accelerators and content processors at the recent web services conference at the San Diego Supercomputer Center. His presentation is one of several video and audio programs recorded during the...
3
3529
by: Peter | last post by:
If I want to build a web services application (not web application), what is the hardware requirement ? Does anyone have the experience?
12
1507
by: Boris | last post by:
I need to build a new .NET development server (Visual Studio) for 50 users who will be accesing the server using Windows Server 2003 Terminal Service. Do you have any advice in terms of how big/fast the box should be, how many processors, RAM, disk drives, etc.? I appreciate anybody's input on this.
20
2090
by: dukeleto | last post by:
I know this is an annoying thing on some sites. I have set some images in an online gallery to have their own java po up window that is set to be the same size as the image. I would like to set ONLY the pop up window so it does not allow th user to right click. Now I did a search, and found some options, but when you right click it...
0
942
by: ChrisC | last post by:
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())) :(
2
2831
by: HumptyDumpty | last post by:
Does anyone know if there is a problem with re-enabling the Screen Saver after it has been disabled programmatically. I am using the SystemParametersInfo function within User32.dll, and have been successful in disabling the Screen Saver, but it does not work for re-enabling. The only way I can re-activate it is to re-apply the settings...
3
1787
by: Raheel Hussain | last post by:
hi buddys, I want to know if there is some API / Code available to disable the Network connection in a windows 2000 server machine. more specifically, I want to make an application which will calculate the bandwidth (up/down) limit and automatically disables the network connection if it exeeds the specified limit (in MBs). I searched...
2
1247
by: eclectic.01 | last post by:
I need to control the way a document is printed ... I would like a user to print a 'ticket', however, if multiple 'tickets' are selected, each ticket must be printed separately (separate piece of paper per ticket) as each ticket holder MUST have their own individual ticket for scanning (I can not assume the user would be smart enough to cut...
110
10509
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst case scenario for MyISAM backend? Also is it possible to not to lose data but get them corrupted?
5
1314
by: Dave | last post by:
I'm developing a piece of Hardware that I wish to have utilize a web service on a Windows 2003 server. I send an XML file to the server over port 80 but, it doesn't work. Whatis required to make this connection?
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.