Questions tagged [wmi]

Windows Management Instrumentation

Windows Management Instrumentation (WMI) is the infrastructure for management data and operations on Windows-based operating systems. You can write WMI scripts or applications to automate administrative tasks on remote computers but WMI also supplies management data to other parts of the operating system and products, for example System Center Operations Manager, formerly Microsoft Operations Manager (MOM), or Windows Remote Management (WinRM).

396 questions
5
votes
1 answer

WMI Impersonation levels within vbscript / ASP code

I have an IIS 7.5 web site running "classic" ASP code (not ASP.NET) where the site is running under the normal service context, and only "Windows Authentication" is enabled. Users and navigate the site without any problem, regardless of having…
5
votes
3 answers

How to retrieve Serial Number from Windows on new U/EFI box?

I need to retrieve the hardware serial numbers from a set of new HP mini desktops that need provisioning. This worked in the past using a WSH script to query it via WMI. Unfortunately, the newer models no longer contain a BIOS but rather come with…
Gringo Suave
  • 474
  • 5
  • 12
5
votes
4 answers

WMI permissions: Select CommandLine, ProcessId FROM Win32_Process returns no data for CommandLine

I am gathering performance data via WMI and would like to avoid having to use an account in the Administrators group for this purpose. The target machine is running Windows Server 2003 with the latest SP/updates. I've done what I believe to be the…
user57935
  • 51
  • 1
  • 2
5
votes
6 answers

Useful WMI admin scripts

In a comment to my response to this question , cop1152 said he loved WMI scripts. Well, so do I! What are your favourite, best, most useful scripts you'd like to share with the community? thanks.
gbjbaanb
  • 3,892
  • 1
  • 23
  • 27
5
votes
1 answer

Difference between CurrentClockSpeed and MaxClockSpeed

Rationale this belongs on ServerFault rather than StackOverflow - I already have my program which gets the value, I am querying the value returned and what it means. I have an in-house program which audits our company PCs, and one of the things it…
Ben Pilbrow
  • 12,041
  • 5
  • 36
  • 57
4
votes
4 answers

Disable a specific ethernet card via batch commands on Windows

What I would like to do is disable a NIC based on the connection name (aka: what you see in the "network connections" window, or what you would use with netsh commands). I know enabling/disabling can be done using devcon, however devcon identifies…
Antonio
4
votes
4 answers

WMI instead of WMIC command to find application version?

I'm using wmic to find the current version of an in-house application. My command looks like this: wmic product where "name='Application Name'" get version I've never used wmi, but I've read about people saying it's easier to use than wmic. I think…
WhiteHotLoveTiger
  • 163
  • 1
  • 1
  • 8
4
votes
1 answer

WMI Issue - The paging file is too small for this operation to complete

I have an issue with a Windows Server 2008 Standard SP1 whereby I have lost the ability to monitor it remotely. After investigation, it appears to be because there is an issue with WMI. In the WMI COntrol Properties, it states: Failed to initialize…
omega1
  • 416
  • 3
  • 9
  • 29
4
votes
1 answer

Get-Process not working against remote Windows 7 clients

I have been trying to run Microsoft's GetNetworkStatistics script against remote computers to enable us to track what processes are using bandwidth along with other tools. I am unable to run the script against remote Windows 7 clients. It works fine…
4
votes
0 answers

WMI computersystem get username returns null

I'm having an issue with the below WMI query running under a non-admin service account against windows 7 PCs: wmic /node:x.x.x.x computersystem get username where x.x.x.x is the IP address of the windows 7 PC. I have granted what I believe to be…
user468562
  • 41
  • 1
  • 2
4
votes
2 answers

Using SCCM and WMI to retrieve Font information

I need to be able to inventory the information about the fonts currently installed in our machines (around 200,000). It seems some users installed fonts they were not supposed to (due to licensing restrictions and so on) and now the company is…
Henrique
  • 41
  • 3
4
votes
1 answer

Server 2008 R2 WMI problems

I get error "1065" from Group Policy when trying to run GPUpdate, and Group Policy is specifying that it cannot process the WMI query. I can successfully run some queries manually, but WMIDiag returned a number of missing objects in the CIMV2…
Colin
  • 41
  • 1
4
votes
1 answer

Error while querying various classes within root/webadministration namespace

I am using a WMI query(using wbemtest): select * from AuthenticationSection using namespace root/webadministration, and I am getting the follwing error on a few servers (Windows Server 2008): Number: 0x80041013 Facility: Win32…
user3839835
  • 41
  • 1
  • 2
4
votes
3 answers

What is the workaround for WMI remote connection failure with Access Denied error when client runs with Local System account?

What is the workaround for WMI remote connection failure with Access Denied error when client runs with Local System account? I tried to run script under local system account on the client which connects to remote WMI (namespace: root\cimv2) using…
user23996
  • 191
  • 1
  • 2
  • 4
4
votes
1 answer

Are there any known incompatibilities with WMF 4.0?

We don't typically run bleeding edge software in $environment, that being said since 4.0 has been out for a while; I haven't come across any conflicts posted on the web. Does anyone know of any? Specifically, with regard to SCCM, Exchange,…
MDMoore313
  • 5,581
  • 6
  • 36
  • 75