Windows Management Instrumentation

learn more… | top users | synonyms

3
votes
1answer
170 views

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$" ...
2
votes
0answers
248 views

RPC Server unavailable. 0x800706BA [closed]

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 ...
0
votes
0answers
144 views

Why Wmi info for disk size is wrong?

i am expecting a very curious problem. In a script collecting disk infos on a list of W2008 servers, i realize that, for some servers, the Wmi info for the disk size is wrong. My Powershell command: ...
2
votes
0answers
337 views

SCCM 2007: Create new Advertisement using WMI

I'm trying to create a new advertisement using Powershell. I've looked around and found a bunch of scripts that use WMI. Using Set-WMIInstance upon the SMS_Advertisement class. I can accomplish ...
11
votes
4answers
615 views

Identify Windows 2012 Server core

I want to detect if a 2012 server is has been setup as a Core install using WMI. An earlier question, would seem to indicate that I can get the OperatingSystemSKU from Win32_OperatingSystem. My ...
1
vote
1answer
136 views

System health monitoring of unmanaged server using WMI / SNMP

I need to monitor the health of a couple unmanaged servers (specifically Dell SC1425), preferably using WMI or SNMP. They are running Windows Server 2003 SP1. Ideally I am looking for a single ...
3
votes
2answers
743 views

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 ...
2
votes
1answer
118 views

Windows server 2012, missing WMI ASPNET counters

I've been using the following WMI query to check how many IIS sites are currently running on my Windows 2008 webservers: SELECT ApplicationsRunning FROM Win32_PerfRawData_ASPNET4030319_ASPNETv4030319 ...
0
votes
0answers
109 views

Adding properties to the Win32_UserAccount Class

How to add new properties to *Win32_UserAccount* class and add values to it? I have used wbemtest command and Have created a new property to the class Win32_UserAccount. How to make it fetch the ...
0
votes
1answer
110 views

Get OS information with WMI from Small Business Server 2011 for Windows 2008 virtual machine

In my organization, the main server is Windows Small Business 2011. It uses a WMI service (I think) to get the Security and Update status of computers on the network. I have a Server 2008 virtual ...
0
votes
1answer
131 views

How can I get Control Panel's Add/Remove programs list?

Ho can I obtain/export the Windows Control Panel Add/Remove programs list using WMI or VB script?
13
votes
1answer
3k views

SCCM 2012 SP1 - DownloadContentFiles() failed with hr=0x80041013

We noticed our Automatic Deployment Rules for Software Updates failed to automatically download and apply this month's patches from Microsoft although they are correctly listed in the Catalog. ...
0
votes
1answer
593 views

Exception Enumerating SQL Server Instances with SMO WMI ManagedComputer

I'm trying to use the SMO WMI API/objects in PowerShell 2.0 on Windows 7 with SQL Server 2008 R2 installed to get a list of SQL Server instances on the local computer using the Managed Comuter object. ...
2
votes
3answers
290 views

Notify when a message did not occur

In Nagios it is easy to check that a log message happened in the last 48 hours and sound alarm. But how can I configure Nagios that it should sound alarm when a message did not occur in the last 48 ...
0
votes
2answers
772 views

Update content on an application with Powershell or WMI in Microsoft SCMM 2012 SP1

While right-clicking an applications deployment type(s), we can select Update Content. Is there a way of doing this action using Powershell or a WMI-method?
0
votes
1answer
71 views

What are the ways/tools to compare 2 Windows installations and their KB updates?

I have a list of machines, some machines throw System.Runtime.InteropServices.Marshal.ThrowExceptionForHR upon doing Windows Management Object's query, select Name, State, Started, Status from ...
2
votes
0answers
263 views

What constitutes a large WMI repository and what can cause it to grow?

Our organization is experiencing lengthy startup times after improper shutdowns that seem to be tied to the size of the WMI repository. For example, a repository folder size of 50 megs might result ...
2
votes
1answer
154 views

Remote disk monitoring with WMI without admin rights

I am setting up a restricted WMI group that should be able to read WMI information from my remote hosts. I have the group set up as member of the remote DCOM and performance monitor groups. I also ...
2
votes
2answers
464 views

PowerShell to reset local Administrator account password. 5% failures

I have the responsibility for changing the local administrator account password on my environment of 16,000 servers; I wrote a PowerShell script, but it took too long, so I added multi-threading using ...
2
votes
1answer
549 views

The RPC server is unavailable from .NET over AWS

I am trying to access EC2 machines remotely to get some info using C#. I wrote code as below:- ConnectionOptions options = new ConnectionOptions { Username = serverspace.ServerIP + @"\xxxxxx", ...
0
votes
1answer
187 views

How to find a user in a specific group using wmi

I have added a "SearchingUser" user to administrators group of a remote server "RemoteServer". I am trying to verify the user is added to the server using WMIC and this is the command: wmic ...
2
votes
0answers
91 views

Windows WMI get a snapshot EnabledState

I am trying to get the EnabledState of a virtual machine snapshot using WMI. That is I try to get the EnabledState that was current for the virtual machine when the snapshot was taken. So far I know ...
1
vote
1answer
70 views

Undocumented value in DfsrIdRecordInfo class

According to MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/bb540013(v=vs.85).aspx) these are the only possible values of the "flags" attribute of the DfsrIdRecordInfo wmi class: ...
1
vote
3answers
2k views

WMI: How can I fixe 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 ...
2
votes
1answer
228 views

Is there a way to collect WMI or WBEM/CIM data with Collectd?

I've got an Ubuntu server running statsd, collectd and Graphite. I'm looking to collect data from Windows servers via WMI. I don't see an official plugin for WMI or WBEM/CIM on Collectd's web site. Is ...
4
votes
1answer
380 views

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 ...
0
votes
1answer
79 views

TCL, WMI and twapi

I am sorry if this is a double post. I thought I posted this question yesterday, but cannot find it. We are going to start the process of changing our network numbering scheme from 192.168.88.0/24 ...
3
votes
1answer
313 views

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 ...
0
votes
1answer
84 views

Pinging the hostname of the server I'm on does not reach out to DNS, responds with 'lowest' numerical IP

For example: Server: server1.contoso.com IPs present on server: Initially configured statically with 10.10.20.100, it had two additional IPs added to the same NIC, 10.10.20.20 and 10.10.20.102. A ...
0
votes
1answer
481 views

Use SCOM 2012, WMI, or Powershell to identify all servers that have hyper threading turned off

We recently setup SCOM 2012 and deployed agents to all of our servers. We also have noticed that a number of these servers do not have hyper threading enabled, which they should. Is there any way we ...
0
votes
1answer
232 views

Show processes running on remote computer using WMI

I'm using WMI in order to run commands on a remote machine. For now, and I know it's as it should be, the process which is being run is not shown on the screen of the remote, I can only see it running ...
0
votes
2answers
1k views

Issue when connecting to Hyper-V Server 2012 throw Hyper-V manager(Windows7) and Powershell

I know there is many topic, but i cannot find solution that works. There is issue when connecting to hyper-v server throw hyper-v manager and also powershell. Can not connect to RPC service. ...
0
votes
2answers
990 views

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.
11
votes
3answers
833 views

Installing Windows Management Framework 3.0 basically destroyed WMI, how can I fix it without reinstalling the O.S.?

Related, of course, to this question. Before discovering it was somewhat... dangerous, I installed Windows Management Framework 3.0 on a number of Windows Server 2008 R2 SP1 servers, and WMI got ...
28
votes
5answers
1k views

Should I install Windows Management Framework 3.0?

I'm posting this as a BIG CAVEAT to everyone. I know it's not a standard Q&A, but I think this is something every Windows admin should know. There is a very real risk of falling into Big ...
0
votes
0answers
223 views

is it possible to set DCOM static TCP endpoint from Server - FIx WMI Port SERVER SIDE

I need to establish remote WMI Connections from a Windows Server 2008 with static port. I know that WMI calls use port 135 and then chooses a random port, what I would like to know is if WMI can be ...
0
votes
1answer
130 views

Determine wifi capabilities of Windows box (with WSUS install rules)

I need to determine if a computer is in fact a laptop with wifi capabilities (with emphasis on wifi rather than laptop). More precisely, I want to distribute a piece of software I wrote via WSUS and ...
0
votes
1answer
156 views

ASP.NET Applications WMI class not found

I'm trying to instrument ASP.NET cache behavior on a web cluster by accessing the counters in the WMI class, Win32_PerfFormattedData_ASPNET_ASPNETApplications. 2 of my servers have this class, but 1 ...
4
votes
1answer
100 views

Is it easy or even possible yet to manage windows firewall with powershell?

I'm doing some POC testing on a server 2012 environment, and during initial firewall configuration I find myself going to the GUI repeatedly when I'd really much rather be able to write a script. I've ...
0
votes
1answer
261 views

GPO WMI username filter not working over RDP

I'm trying to write a WMI filter to prevent a GPO from applying to certain users SELECT * from Win32_ComputerSystem WHERE NOT UserName LIKE 'domain\\user1_%' AND NOT UserName LIKE 'domain\\user2_%' ...
0
votes
1answer
3k views

How to get cluster information remotely via Powershell?

I've been trying to find a good way to gather various pieces of a windows cluster setup remotely, preferably via WMI, as we are not yet at a point where Powershell remoting is implemented (and I know ...
0
votes
1answer
598 views

Remote Administer Local Groups with PowerShell and WMI

How do I administer local groups on a remote server with PowerShell and WMI? For example, I would like to add and remove domain AD groups from the "Remote Desktop Users" group. This article provides ...
1
vote
1answer
491 views

Obtain device driver version and associated GUID using PowerShell?

Right now, I am getting two separate objects A Win32_NetworkAdapter WMI object A Win32_PnpSignedDriver WMI object In my previous scripts, I've made sure I was calling separate objects, and ...
0
votes
1answer
3k views

'The RPC server is unavailable' when converting a physical ISA/Forefront TMG machine to virtual (P2V) in SCVMM

When I try to convert a physical ISA/TMG machine to virtual using SCVMM, i keep getting an error in the Collect machine configuration step ('Scan Now' button): VMM is unable to complete the ...
2
votes
2answers
1k views

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 ...
1
vote
2answers
1k views

Get detailed network adapter information using PowerShell

Is there an alternative to Get-NetAdapterRss that can be used on Windows Server 08/03/etc.? I'm looking to query NIC information from servers with a powershell script, but cannot seem to find how to ...
1
vote
1answer
181 views

WMI Access Denied using Windows 2008 connecting to Windows 2003

I'm trying to connect from a Windows 2008 server to Windows 2003 using WMI, however, each time I get access denied. There is no firewall between the servers, no hardware or software. The account is a ...
1
vote
1answer
1k views

Cannot WMI Query root\MSCluster namespace as Local Admin

I'm trying to use WMI Explorer to query the root\MSCluster namespace on various hosts to obtain cluster resource group and resource object data. I can access the namespace with no issue on Win2K3 ...
2
votes
1answer
291 views

Windows ADSI , WMI and Registry. How Do They All Relate With Each Other?

I have a work task which involves setting up Windows XP machines. I'm not a Windows user normally which is why I ask this question. The tasks involved in setting up one of these machines involve ...
0
votes
0answers
4k views

List ALL Printers using Powershell

I'm having issues listing all the printers on a computer using Powershell. We have a batch script that will add/remove/list "per computer" printers using PrintUI. I can use PrintUI to list the ...