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
9
votes
1 answer

DFSR-related WMI info is missing

OS: Server 2012 Core and Server 2012 R2 Core. DFS-Replication is installed and appears healthy. I am using WMI to collect information from DFSR replication members. The queries work on many of the computers, but there are a couple of replication…
Ryan Ries
  • 55,011
  • 9
  • 138
  • 197
9
votes
5 answers

How to find the creation date of a local user account?

I would like to get the creation date of a local user account (Win 7 if it matters). I've looked at the following WMI objects (and google of course): Win32_UserAccount Win32_NetworkLoginProfile The objects returned from NetworkLoginProfile have the…
MDMoore313
  • 5,531
  • 6
  • 34
  • 73
8
votes
1 answer

How to use WMIC to connect to remote machine and output OS information to a file?

I want to know how to use WMIC to connect to remote host and output their PC's OS information(Installed programs list) to a file. I tried wmic /node: OS get vendor, name > c:\output.txt but i got error "Node - Error: Description…
PYO
  • 91
  • 1
  • 1
  • 6
8
votes
1 answer

How to accept EULAs for Software updates deployed through SCCM using Powershell

I'm trying to use the Start-CMSoftwareUpdateDeployment cmdlet to deploy a software update group to an existing collection. PS WHO:\> Start-CMSoftwareUpdateDeployment -SoftwareUpdateGroupName "Update Group - Microsoft Updates" -CollectionName…
MDMoore313
  • 5,531
  • 6
  • 34
  • 73
8
votes
2 answers

powershell: How to check if S.M.A.R.T is enabled on remote machines

I was attempting to get disk info of remote machines, including whether or not SMART is enabled on the drive by using the win32_diskdrive class. This is trickier than I thought. While it's easy enough the read the status property I discovered…
red888
  • 4,069
  • 16
  • 58
  • 104
8
votes
3 answers

SCCM Global Condition WQL Query Type Mismatch (wbemErrTypeMismatch - 0x80041005)

We have been handling all of our targeting logic for Packages (and now Applications) with Collections. Now that we have moved from SCCM 2007 to SCCM 2012 SP1 it was recommended that we move that logic to the Application-Program model and implement…
user62491
8
votes
1 answer

How to apply an Group Policy only to Clients in a specific IP range? (using WMI Filter)

I need to apply a GPO only to some computers in a specific network range. I'm aware that there many other solutions for this issue. I could group them into an OU or use Sites. But the current situation doesn't allow me to act in any other way except…
CHfish
  • 353
  • 1
  • 3
  • 9
7
votes
1 answer

What wmi counters can indicate port exhaustion

I'm currently investigating an issue in which we suspect port exhaustion from too many outgoing connections is a factor. I'd like be able to identify when the server is at or near to port exhaustion, and it seems that there should be some wmi…
Foo42
  • 213
  • 2
  • 5
7
votes
1 answer

GPO software deployment without WMI?

I put together a GPO to deploy a MSI file to a security group comprised of computer objects. After rebooting a test workstation so that it picks up its group membership and running gpupdate, I then ran gpresult /r and I see that it is picking up the…
Bill Sambrone
  • 335
  • 2
  • 11
7
votes
2 answers

What are the minimum permissions to read the WMI class 'MSSerial_PortName'?

I am configuring a local application user (part of BUILTIN\Users) on a Windows 7 kiosk. The kiosk has a special USB device running on a virtual COM port. The user needs permission to read the WMI class, MSSerial_PortName, in the root\WMI namespace,…
Anthony Mastrean
  • 441
  • 1
  • 6
  • 18
6
votes
1 answer

WMI permissions for changing local IP without elevated privileges

I have implemented a tiny tool that allows one to change the IP settings of a selected Network Interface (NIC) by overwriting the values via the WMI. I've noticed that the tool can change the settings only if it has been started with "Run as…
6
votes
3 answers

Correlating volumes and physical disks through WMI

I'm trying to correlate volumes (as enumerated from win32_volume for those where DriveType = 3) back to win32_physicaldisk instances. Everything that I've seen in my research points to the answer being "it's not possible", but then again, I didn't…
Ben Thul
  • 2,969
  • 16
  • 23
6
votes
5 answers

Powershell recursive WMI query

I'd like to start at the top of a WMI namespace, recurse through all the objects, then recurse through each object's property list, filtering out and returning to console only those properties that have mem in their names. This is what I have so…
quux
  • 5,358
  • 1
  • 23
  • 36
6
votes
1 answer

WMI Rights required to read root\MicrosoftIISv2 in IIS7 with IIS6 compatibility mode

I need to manage my IIS7 (Windows Server 2008) remotely with a WMI IIS6 API. So I added the IIS6 WMI Compatibility and IIS6 Metabase Compatibility roles to access the root\MicrosoftIIsv2 namespace. I have a domain account which is not administrator…
JoeBilly
  • 121
  • 1
  • 1
  • 7
6
votes
2 answers

How to monitor DFSR backlog more efficiently than dfsrdiag

Is there a way to monitor the DFSR backlog in a manner more efficient than using dfsrdiag.exe backlog? I wrote a program that just slurps in the backlog count via dfsrdiag.exe backlog /smem:alpha /rmem:beta /rgname:domain\namespace\foldername…
Emmaly
  • 425
  • 2
  • 8
  • 16
1
2
3
26 27