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

Stopping a scheduled task with WMIC

I need to find some method for disabling a scheduled task on a remote machine and waiting until that task has stopped executing if it happens to be running at the moment. I'd like to do this through WMIC if possible. This will be integrated into a…
3
votes
1 answer

SCCM WMI Get Patches that require reboot

How can i get all patches that require a reboot before running the install process using WMI and SCCM. So far i have this wmi query that lists all the available patches but none of the properties returned indicate anything about patches being…
Warz
  • 235
  • 1
  • 3
  • 7
3
votes
1 answer

Windows PowerShell Select removing columns

I am a linux guy so I'm used to "grep". With grep it keeps the columns, however in powershell it changes the output. For example: Get-WmiObject -List | Select-String -Pattern "Win32_LogicalDisk$" \\COMP\ROOT\cimv2:Win32_LogicalDisk Where as…
linuxadmin
  • 51
  • 1
  • 1
  • 3
3
votes
2 answers

Delete Shadow Copies Remotely

I currently use DISKSHADOW to remove shadow copies from our Hyper-V servers. To do this I have to log onto the server but psexec doesn't work. psexec \\hyper-v-server diskshadow DISKSHADOW> Error reading from console. Win32 error: 0x6 The handle is…
john
  • 1,995
  • 2
  • 17
  • 30
3
votes
3 answers

WMI: How can I fix the port?

I need to use WMI for getting some information from my servers. But I have a server in DMZ, so I need to open a port in my firewall. I've searching and I found that WMI uses random port. How can this be fixed?
YoyoMan
  • 39
  • 1
  • 3
3
votes
1 answer

When I query Win32_PnPEntity , my PS/2 devices always show up as [Not Present, Not Working, No Driver]... Why?

I am using a WMI query as part of a general diagnostic script, and I query the following: strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery( _ "SELECT * FROM…
Yablargo
  • 227
  • 1
  • 9
3
votes
2 answers

Get User Rights Assignment values in Local Computer Setting using VBScript and WMI

I'd like to get all the values of User Rights Assignment in Local Computer Setting using VBScript and WMI. Is there a way I can do this with VBScript and WMI? Thanks.
Hendri
  • 31
  • 1
  • 2
3
votes
2 answers

How Can I Monitor an IIS 7.5 Application Pool with WMI?

I currently have an application in a load balanced IIS cluster (NLB) on Server 2008 R2. This application leverages some legacy database access code which occasionally fails enough to disable the app pool. I would like put a WMI event watcher in…
Steven Murawski
  • 1,580
  • 3
  • 14
  • 25
3
votes
2 answers

Can I still use WMI to manage SQL Server 2005 and 2008?

I've seen some articles on how to use WMI to manage SQL2000 servers (after installing SQLWMI80.msi manually) but I've not seen anything about this for SQL2005 and SQL2008. Has this been depreciated? Or is WMI now installed as standard with 2005 and…
Guy
  • 2,668
  • 2
  • 20
  • 24
3
votes
3 answers

How to retrieve names of all private MSMQ queues - efficiently?

How can I retrieve the names of all of the private MSMQ queues on the local machine, without using System.Messaging.MessageQueue.GetPrivateQueuesByMachine(".")? I'm using PowerShell so any solution using COM, WMI, or .NET is acceptable, although the…
Damian Powell
  • 325
  • 2
  • 5
  • 10
3
votes
1 answer

monitoring disk i/o via wmi

I'm using WMI to monitor Windows Server 2003 and Windows Server 2008 hosts. I got all the info I wanted but the disk I/O performance. I've tried quering the "Win32_PerfFormattedData_PerfDisk_LogicalDisk" for the "AvgDiskQueueLength", but I always…
Jorge
  • 33
  • 1
  • 3
3
votes
1 answer

Accessing Acer SNID via Windows WMI?

Dell have been really helpful in making their desktop and laptop serial numbers available via WMI. Has anyone had any success in finding similar information about Acer computers, especially the SNID, by similar means. If so, how? Context: Windows…
bugmagnet
  • 236
  • 1
  • 3
  • 16
3
votes
1 answer

Where can I find a guide to remotely enable WMI access to a Windows client machine

I need to enable the WMI remote access in a lot of client machines in order to connect to these machines and get some information. These machines have installed different versions of windows (Windows XP, Windows 7, Windows Server 2003). I followed…
Salvador
  • 139
  • 1
  • 3
3
votes
3 answers

Detect corrupted WMI

When WMI is corrupted it will fail in the strangest ways, certain queries (most of them) will work, some will throw exceptions, others will time out and a few will simply return no (or partial/erroneous) results. As I have a complicated important…
Lars Tackmann
  • 177
  • 1
  • 8
3
votes
1 answer

How can I best learn "wmic" the Windows WMI command line tool?

I'm interested in learning how to use WMIC, but I'm confused on where to begin. How does this tool compare to PowerShell? Can Powershell do everything WMIC can... and more?
makerofthings7
  • 8,911
  • 34
  • 121
  • 197