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

Why is WMI not actually using the fixed port?

When I asked this question (both here on SF and IRL) about how to remotely access WMI, the answer I got from multiple sources was "use a fixed port." I've tried doing this, but it doesn't seem to be working, and as the other question is about…
nateirvin
  • 151
  • 1
  • 7
2
votes
2 answers

Invalid method Parameter when calling DfsrConnectionInfo->ForceReplication() with WMIC

In our AD infrastructure the SYSVOL is replicated by DFSR. I want to force replication using WMI (ForceReplication method) via WMIC: wmic /namespace:\\root\microsoftdfs path DfsrConnectionInfo call ForceReplication(15,10,2) But this fails…
iPath
  • 622
  • 4
  • 11
2
votes
1 answer

unable to set service user account via command line

I am writing a puppet script to automate creation of TeamCity agents on Windows 2008 R2 SP2.For this, I need to set a custom TeamCity service user account via command-line. So far, I have tried this sequence of commands: 1) Grant my custom account…
2
votes
1 answer

Remote Computer Management from Active Directory Snap-In fails with DCOM error 10006

So here's a little background. Our system originally started with Windows Server 2003 machines and eventually over time expanded and grew. We still have a few Server 2003's but they're being removed. Our domain controllers were recently upgraded…
2
votes
0 answers

Software deployed using WMIC requires restart before launching

I have an MSI I'm attempting to deploy via WMIC. The MSI install completes without error but I cannot launch the installed application until I reboot the PC. If I try it pops up momentarily then closes. As soon as the PC is reboot the application…
hendmp
  • 21
  • 2
2
votes
2 answers

Find last run defrag WMI or Reg key

I am trying to discover if there has been a defrag run on our servers. To save myself going to each one and loading the defrag program and checking the "Last Run" column I thought WMI might have this info. I have been checking the Win32_Volume…
user35213
2
votes
1 answer

Executing WMI methods by proxy - how can I keep credentials out of the hands of users?

Management wants me to create a script/application/ancient magical artifact that allows field technicians to perform a task on our Configuration Manager server (updating collection memberships - very easily done via WMI calls) without actually…
Prosun
  • 203
  • 1
  • 2
  • 9
2
votes
1 answer

Get the IPv6 routing table from a windows pc with WS-Management

I have to get the IPv6 routing table from a windows pc with WS-Management. I'm using wsman for the client on linux. I found the Win32_IP4RouteTable WMI class fot IPv4, but it looks like WMI doesn't support IPv6. Is there any way to do this?
gberes
  • 121
  • 3
2
votes
1 answer

WMI: Win32_PerfRawData_Counters_ProcessorInformation versus Win32_PerfRawData_PerfOS_Processor

Folks, I am looking to monitor stuff like "PercentProcessorTime", "Timestamp_Sys100NS" (Total Processor Time) using WMI. The problem I am facing is, I find that Windows Server 2008 R2 have following two WMI…
2
votes
1 answer

WMI query of DNS shows a root hint that's not present in the DNS plugin.

I was writing a Powershell script for my network when I came across some alarming information in our DNS. Bear in mind we still use Powershell v2, not v3. So I have to query DNS via the Get-WMI command. I wrote a query to get all A records from one…
2
votes
2 answers

BGInfo and WMI Filter

I have applied a Logon script via GPO to run BGInfo. As I understand it, as I am setting a User Configuration the GPO must be applied to a User OU. We have an OU called SERVERS which is the only OU we want this GPO to run on, however when I linked…
dotdev
  • 123
  • 1
  • 4
2
votes
1 answer

WMIC mystery - why is this query invalid?

Why is this an invalid query? wmic service where 'caption like "%documentum%"' get name, caption Node - PE95AOECM ERROR: Description = Invalid query This is the expected output: Caption Name EMC…
mgr326639
  • 143
  • 2
  • 2
  • 4
2
votes
0 answers

Can I create a WMI filter that will evaluate to True for both Client computers and Terminal Servers?

I have a GPO that is currently being run only on client computers (XP, Vista, 7, etc.), by using a WMI filter with the following query: select * from Win32_OperatingSystem where ProductType='1' I would like to include Terminal Servers in this…
bshacklett
  • 1,378
  • 4
  • 19
  • 39
2
votes
0 answers

Listing all WMI classes with winrm/wsman

Is there a way to pull all WMI information from a system with a single winrm command? I can run commands such as winrm enum wmicimv2/win32_computersystem, which will give me information like: Win32_ComputerSystem AdminPasswordStatus = 3 …
vicfn
  • 346
  • 1
  • 7
2
votes
0 answers

RPC Server unavailable. 0x800706BA

I've alsready seen some similar threads on the RPC server unavailable messages; HRESULT: 0x800706BA. I've read some and looked at the recommendations on this thread; WMI query between two different AD sites? While there were some helpful hints it…