Questions tagged [wmi-service]
62 questions
0
votes
1 answer
Does WMI data get refreshed while OS is running?
I have a question about Windows Management Interface data (WMI).
I know this data gets populated at the boot time. When OS keeps running without powering cycle the machine, does this WMI data ever get refreshed?
Thanks!

CodingFanSteve
- 713
- 2
- 6
- 17
0
votes
0 answers
WMI C++ get data from object
I implemented 1-5 steps from :
https://msdn.microsoft.com/en-us/library/aa390423(v=vs.85).aspx
Everyting works, but i have problem with getting data from object which i retreive with query.
My code:
// Step 1:…

user2667455
- 99
- 2
- 9
0
votes
1 answer
How to register for WMI events using Java
I am integrating window based application with java application and want to capture window events in java.
I found in google J-Interop is the library thorugh this can be achived.
i did some POC wih below code but facing issue while locating the…

ArmStrong
- 47
- 9
0
votes
1 answer
registering different versions of a dll through installutil
I am trying to register different versions of a dll for WMI. There are 2 versions of application on the same server which we need to deploy. But the dll which is registered later overwrites the dll which was registered earlier. Can 2 dlls with…

puneet
- 769
- 1
- 9
- 34
0
votes
1 answer
WMI win32_physicalmedia code is crashing in windows 8.1
Hello I'm using Visual C++ 2010.
I am trying to extract hardware details using wmi and everything is working fine but when i tested the application in windows 8.1 the application crashes and it turned out to be from the win32_physicalmedia…

user3735032
- 73
- 1
- 1
- 8
0
votes
1 answer
I need help syncing perforce on a remote machine with c#
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…

Alos
- 2,657
- 5
- 35
- 47
0
votes
1 answer
Why does SWbemServices.ExecQuery return more properties than requested?
I'm getting unexpected results from the below JScript code. The Index property is returned even though I've only requested MACAddress.
What's going on here?
JScript:
var wmi, col, itr, obj;
wmi = GetObject('winmgmts:');
col = wmi.ExecQuery('SELECT…

user710307
- 13
- 4
0
votes
1 answer
vbscript permission denied: getobject
I'm trying to execute a batch file which is located in a server from a vbscript in my local system.
Below code throws permission denied while accessing GETOBJECT
strDomain = "SBICAD"
strComputer = "10.29.83.22"
Set objSWbemLocator =…

user3186990
- 21
- 3
- 5
0
votes
2 answers
WMI event processor useage vs WMI query
I want to be able to detect a change in the list of installed programs on a pc using wmi.
I have 2 options 1- run a wmi query every X seconds and compare to a saved file containing the list. 2 - start a Wmi event that polls every X seconds.
Which…

user1438082
- 2,740
- 10
- 48
- 82
0
votes
0 answers
Event for an existing query using WMI
If I have WMI query to get the status of something,is there an associated event that can listen for a change to that status. For example - i can query a motherboard serial number but is it possible to detect a change to the serial in the form of an…

user1438082
- 2,740
- 10
- 48
- 82
0
votes
1 answer
WMIPRVSE needs to be run under network services by default
I have 2 separate servers (windows server 2008 r2) from where I am running vbs scripts through a microsoft scheduler ( my-computer>manager>Schedule). when I run vbs scripts locally they are working fine, but when it is being run through scheduler…

InGeek
- 2,532
- 2
- 26
- 36
0
votes
1 answer
Skipping computers with error
I'm having an issue with a VBScript that looks for printers on computers from a list on an Excel sheet and then finds them through WMI. It matches them through the IP address name and then writes a batch file that I can install them from. My issue…
0
votes
0 answers
wmi and network drives
I have an application which uses WMI to do stuff on a remote machine.
One of those things is running a script which writes an output to a file on the hd.
If I choose to save the output on the remote machine's local drives - everything works.
But, if…

Idanis
- 1,918
- 6
- 38
- 69
0
votes
1 answer
Running commands on remote machine
I have written a wmi application which runs a batch file on a remote machine.
This batch file writes the output to the directory-string passed to it as an argument.
When I launch my application, and choose drive C as the output directory,…

Idanis
- 1,918
- 6
- 38
- 69
0
votes
0 answers
wmi not executing the process
Well, I'm trying to run "notepad" (for example) on a remote computer, here is my code:
object[] theProcessToRun = { "notepad.exe" };
ConnectionOptions theConnection = new ConnectionOptions();
theConnection.Username = "My…

Idanis
- 1,918
- 6
- 38
- 69