Questions tagged as 'wmi'

1
answer

Control the CPU fan in C #

How do I read and set the fan speed of the CPU and also read the current speed? I tried to use this code but I did not get results either. [DllImport("Cimwin32.dll")] static extern uint32 SetSpeed(in uint64 sp); private void button1_Click(...
asked by 13.12.2013 / 11:44
2
answers

wmic wrapper wmic

I'm currently using wmic in Linux to query data on a Windows machine. The web interface of the query system is written in PHP, since the query core is written in Python, since I need the wmi_client_wrapper library to wrap the wmic output....
asked by 25.08.2016 / 21:54
1
answer

iis ado.net version

Good, I have the following code: private void AspNet35() { String sWebSite = "W3SVC/1"; DirectoryEntry site = new DirectoryEntry("IIS://localhost/" + sWebSite + @"/Root"); try { PropertyV...
asked by 23.03.2016 / 10:16
2
answers

Problem with comma cmd

C:\Windows\system32>wmic /node:"BR1102013" /user:"vedadmin" /password:"i@M}r43/3g%s,L;" product get name , - Alias not found. Can someone tell me why I can not use the comma and how to solve it?     
asked by 03.08.2017 / 18:32
1
answer

Print Spool Monitoring

I'm trying to make an application that monitors my printer and when the user sends an impression, of whatever program, it captures that information, pauses the printing and opens a new window for the user to enter a code. If the code is correct...
asked by 13.06.2018 / 21:16
0
answers

How to check more than one service using WMI Query or C #?

I have this project where the system will check for specific services on several different remote machines. All of the connection, network and etc are defined and working, but I still have not been able to figure out a way to get the query to...
asked by 09.03.2018 / 14:06
0
answers

HealthCheck in PHP

Build a PHP code that requests a web page, checks the returned HTTP code, and allows you to fetch a string from the html source. I used CURL for this. The code is basically this: class HealthCheck { /** * Apontamento para uma instâ...
asked by 26.09.2016 / 06:20
0
answers

Error in some computers when trying to capture the voltage of the processor by WMI

On only a few computers when running my hardware specification program, it reports an error on line 155. public static String voltage() { String Ic = String.Empty; foreach (var item in new Management...
asked by 01.12.2015 / 15:46
2
answers

I can not display the modification date of a directory with powershell

Hello, I'm trying to display the date of creation and modification of a directory using powershell, I'm using the command: Get-WmiObject Win32_Directory -filter 'Drive="C:" and Path="\"' -ComputerName MyPC | select FileName,LastModified -First...
asked by 18.11.2015 / 14:21