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
2
votes
2 answers

Powershell or WMI to pull Printer Properties and Additional Drivers?

What I am trying to accomplish: Use a powershell script (WMI or cmdlets directly, or a combination) to query a 2003 or 2008 server with the PrintServer role, enumerate the printers shared, then list the drivers in use for that printer and…
JeremiahJohnson
  • 100
  • 1
  • 7
2
votes
2 answers

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the computer name in a specific workgroup for that…
toups
  • 131
  • 1
  • 6
2
votes
2 answers

WMI is showing wrong version of Microsoft Access

We use Microsoft Access for certain database functions and as most of you already know an Access database can be very grumpy when accessed by an outdated version of Access. In order to control this I have an appliance that can track version number's…
user89350
2
votes
4 answers

Which windows rights for powershell's Get-WmiObject on remote PC?

When I run a simple powershell command on a remote PC such as Get-WmiObject Win32_Process -computer Pc1 Some Pcs reply "Access denied", while other reply fine, but I can't get the difference. Which rights are involved?
sthiers
  • 121
  • 1
  • 1
  • 2
2
votes
3 answers

How to assign two IP addresses (one DHCP, one static) to a NIC using WMI?

Found question and great answer: WMI and adding Multiple IP Addresses? However this only explains how to add multiple static IP addresses. I am looking how to configure a dynamic (DHCP) and at least one static IP address on the same NIC. But only…
John Next
  • 23
  • 1
  • 3
2
votes
5 answers

Server & Workstation Power Consumption - obtaining programmatically/via script

I'm looking for a generic way to query a network of Windows PCs (XP/Vista/7/Server 2k3) for their current power consumption - ideally in Watts! I'm sure this kind of thing is built into WMI, but it might just be available through the manufacturers…
Mike McClelland
  • 810
  • 4
  • 10
  • 19
2
votes
2 answers

How to put laptop to sleep with powershell/vbs/wmi/...?

I'd like to be able to put my laptop to sleep from the command line. According to Microsoft, the Win32_Battery WMI class has a SetPowerState method that looks like it should be able to do this, however, on several laptops I've tried, I just get…
Chris Bilson
  • 123
  • 1
  • 5
2
votes
3 answers

Rename file in folder whenever it's created?

I need to find a way to automatically rename all files that are created within a specific directory on a Windows 2008r2 file server. This needs to be done more or less instantanously, so I can't have a scheduled job run every 5 minutes or so. I've…
2
votes
1 answer

Remote WMI Connection Issue on Windows Server 2008 R2

I just did a clean install of Windows Server 2008 R2 (x64). I have an application that talks to the server using Remote DCOM communication and queries some WMI objects. All is good while I use the Administrator login to do the WMI comm. It just…
Elitecoder
  • 45
  • 1
  • 1
  • 7
2
votes
1 answer

Converting WMI from vbscript to powershell

I'm trying to follow the guides for accessing IIS 6 using WMI but I'm having trouble working out how to translate the Get method of SWbemServices as Get-WmiObject doesn't seem to use the same path syntax (Describing the Location of a WMI…
2
votes
1 answer

DCOM Access Issues through Windows Server 2008 Firewall

I am trying to connect remotely to a Windows Server 2008 Machine through WMI Protocol using J-Interop Library. Although I have not been able to configure the firewall properly even after following quite a few online guides. I get the "The RPC Server…
Elitecoder
  • 45
  • 1
  • 1
  • 7
2
votes
1 answer

How do I uninstall an ActiveX control via Powershell

I have to constantly switch back and forth between two installations of a web app with two different versions of an ActiveX control. Therefore I'd like to script the ability to uninstall this control. Its does not show up in Win32_Product because it…
Justin Dearing
  • 1,037
  • 12
  • 33
2
votes
5 answers

Export a list of installed features on a Windows 2008 server

I have been asked to specify the features which are installed on a production web server so a replica test environment can be created. I could point and click my way to the solution but I am curious as to how this could be done through a script.…
Keith Bloom
  • 257
  • 2
  • 4
  • 10
2
votes
2 answers

Timestamp of Last Definition Update for Microsoft Security Essentials via Script

Is there any way to check this via VBScript or Powershell? I have briefly looked at the SecurityCenter and SecurityCenter2 WMI classes, but neither of them look especially useful. It appears the easiest way is determining what the value of…
songei2f
  • 1,934
  • 1
  • 20
  • 30
2
votes
1 answer

WMI query of Win32_Product creates events in the W2K8+ Application Event Log

On Windows Server 2008 and Windows Server 2008 R2 querying installed software with WMI and the Win32_Product class events are written to the Application event log. The events are purely informational but one event is generated for each piece of…
Greg Wojan
  • 158
  • 5