Hello,
I'm writing an application which allows me to monitor various health parameters of a server system (CPU, RAM, HDD, Processes & Service Usage etc.) and then ties into a different system for data analysis. I could grab lots of values via PerformanceCounter or query WMI, but wondered if there is already some kind of free/open source...
Hi I would like to be able to sync perforce on my build server from another server programmatically using C# .
Server A has the EXE on it.
Server B has perforce.
I have admin privileges on both machines.
I would like to use something like
System.Diagnostics.Process.Start("p4 sync", "\"" + path + @""" -f //release/production/...")
...
I want to create a service that takes some parameters. How do I do this with WMI?
In the commandline, it was
sc create ServiceName binPath= ""C:\Path\Service.exe\" /Service somefile1.xml somefile2.xml" start=auto DisplayName="DisplayName"
I have tried to use
ManagementBaseObject inParams = managementClass.GetMethodParameters("creat...
I have a Windows 2008 R2 server running on a VM machine.
My .NET service is running on this server periodically querying WMI, for example:
SELECT ProcessId FROM Win32_Service WHERE ...
After a day or two WMIprvse takes up to 500M memory and WMI queries start getting out of memory exceptions.
This article seems to be talking about thi...
hi everyone,
I have been trying to configure centralized eventlogging for our windows environment, and I am using winrm utility to accomplish this. I have been facing multiple issues in
1.) configuring a Windows 2008 R2 server (purpose: event collector) with Windows 2003 ( source computer), especially the WS-man ping works at times fr...
Hi
I want to do something when a memory stick attached to PC. Now I use a timer and check it in every tick whether any memory stick is plugged(use DriveInfo or with querying WMI)
Is there any event driven model available to do? for example i use an event in my program that raise whenever a memory stick is plugged in to computer?
...
How would one go about using WMI to start, stop, and query services on the local computer from .NET code? (I'm using C#)
I have found good and accurate answers for using the ServiceController class to do this, but I'd like to use WMI if I can.
...
Hi,
when i try to start the service and type net start winmgmt in the command promt, i get a response saying the service name is invalid. Is there anyway i can start this?
Thanks
...
The following code fails when ExecMethod is called. Can anyone pinpoint what I am doing wrong?
#define _WIN32_DCOM
#include <iostream>
using namespace std;
#include <comdef.h>
#include <Wbemidl.h>
# pragma comment(lib, "wbemuuid.lib")
int main(int iArgCnt, char ** argv)
{
HRESULT hres;
// Step 1: ----------------------------...