Questions tagged [wmi]
Windows Management Instrumentation
399
questions
3
votes
1
answer
7k
views
How is the computer chassis type assigned
So you can use
Get-WmiObject win32_systemenclosure | select chassistypes
To get the Windows chassis type for a machine as defined in this list:
http://technet.microsoft.com/en-us/library/ee156537....
1
vote
0
answers
325
views
WMI request (Wbemtest), access is denied to domain computer
let me explain our setup first!
We have 2 site location with Cyberoam CR50ING Firewall, IPSec between the 2 Subnet. Cyberoam firewall has an AD authentication with their software linked to the ...
0
votes
0
answers
500
views
WMI filter working for some Windows 7 machines but not for others
I'm trying to use this WMI filter for our Windows 7 64bit machines:
select * from Win32_OperatingSystem where (Caption like "Microsoft Windows 7%") or (Version like "6.1%" and ProductType = "1" and ...
3
votes
1
answer
6k
views
I am getting Invalid class errors for my PowerShell script
When I run this script, I get this error
Get-WmiObject : Invalid class “Msvm_ImageManagementService”
and
Get-WmiObject : Invalid class "MSPower_DeviceEnable"
and
Get-WmiObject : Invalid class "...
4
votes
1
answer
4k
views
Error while querying various classes within root/webadministration namespace
I am using a WMI query(using wbemtest):
select * from AuthenticationSection
using namespace root/webadministration, and I am getting the follwing error on a few servers (Windows Server 2008):
...
3
votes
1
answer
7k
views
WMI command line event log acess
Can someone explain me how to get access to arbitrary system logs in eventlog service files?
Now I'm poking around WMI(wmic.exe) and trying to execute following commands:
For system services like ...
1
vote
1
answer
2k
views
wmic hanging on remote server?
Based on information from my previous question, I'm trying to learn wmic.
I'm playing around with trying to look at which processes are using the most resources on a remote server. What I've managed ...
3
votes
0
answers
1k
views
How to resolve security warning concerning WebAdministrationProvider?
I have a new Windows Server 2012 install, and have just installed IIS. I see the following warning in the Application Log:
A provider, WebAdministrationProvider, has been registered
in the ...
1
vote
2
answers
6k
views
What are the minimal permissions for WMI access to processes CommandLine?
I have been trying to get a remote listing of running windows processes including their CommandLine/ExecutablePath attribute through WMI as a non-administrator domain user for a monitoring tool. I ...
4
votes
3
answers
27k
views
What is the workaround for WMI remote connection failure with Access Denied error when client runs with Local System account?
What is the workaround for WMI remote connection failure with Access Denied error when client runs with Local System account?
I tried to run script under local system account on the client which ...
2
votes
1
answer
106
views
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 ...
5
votes
3
answers
2k
views
How do I launch a command on a remote computer with an invalid domain trust? (using local creds)
I intend to use WMIC to reset the trust of a machine that is remote, and off the network. All of the following variations result in an "access denied":
The following works fine:
net use \\patterson-...
2
votes
1
answer
389
views
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 ...
1
vote
0
answers
2k
views
Side effects or performance issues for keeping WMI Performance Adapter running always?
This is related to a similar question: Why is my System event log full of WMI Performance Adapter messages?
I've found various blog posts that suggest you can modify the service so that it starts ...
2
votes
1
answer
792
views
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 ...
5
votes
3
answers
2k
views
checking for missing values in WQL or (WQL/WMI filter to return `true` for desktops/servers, but `false` on laptops)
I have a challenge where I want to use a GPO to set a Power Plan.
Working on constructing a WMI Filter (using WQL), I ran into a problem of determining a set of WQL statements that would always ...
0
votes
1
answer
930
views
What rights should non-admin user have to run Get-WmiObject?
I am trying to monitor windows machine with the help of wmi and powershell remoting. I managed to successfully start remote session with that machine throught non-admin user account, but now I have a ...
3
votes
1
answer
397
views
What is causing the Collateral damage when deleting old profiles?
#Get user names that have logged onto workstation
$Users = gwmi win32_networkloginprofile | where {$_.name -match "EXP\\"} | where {$_.name -notmatch "srvtasksched"}
$Users | foreach{
$Name = $_....
11
votes
5
answers
69k
views
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 ...
5
votes
3
answers
18k
views
WMI: wmic linux agent query error: NTSTATUS: NT_STATUS_ACCESS_DENIED
Myself new to wmic and keep trying for a long time with default agent query approach.
wmic is linux based WMI tool to talk to windows WMI agent. While trying to fetch data with wmic from nt(win7 with ...
4
votes
1
answer
484
views
Are there any known incompatibilities with WMF 4.0?
We don't typically run bleeding edge software in $environment, that being said since 4.0 has been out for a while; I haven't come across any conflicts posted on the web. Does anyone know of any? ...
3
votes
1
answer
438
views
Windows 7 WMI ODBC driver installation?
I am interested leveraging the ease of report production provided by Microsoft SQL Report Builder, but I would like WMI as an available datasource. Since SQL Report Builder relies only on SQL, I ...
1
vote
0
answers
3k
views
WMIC with XCopy: Copy file from Remote System to Shared Location
Today I found one issue where, I would like your help...
Situation: I want to copy my remote file (which is not shared directly) to other system (which is shared)
so, basically it's like Remote ...
8
votes
1
answer
3k
views
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 "...
4
votes
3
answers
11k
views
Can you use WMI to determine if a connection gets its DNS servers from DHCP?
The DNS server search order for a network interface can be read from Win32_NetworkAdapterConfiguration like this in Powershell, or programmatically using .Net ManagementObjects:
> $NICs = Get-...
2
votes
1
answer
993
views
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 ...
0
votes
2
answers
10k
views
"HP Insight Management WBEM Providers" download
I am trying to query a Proliant Server's health thru Powershell. But I can't find a place to download the HP Insight Management WBEM Providers from here.
Is there any other Powershell equivalent of ...
0
votes
0
answers
999
views
Access to RSOP via WMI
I need to retrieve data from RSOP using the following script written in VBS:
Const FL_FORCE_CREATE_NAMESPACE = 5
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=...
3
votes
2
answers
3k
views
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 ...
5
votes
2
answers
8k
views
How do I identify a volume in WMI from a volume name reported in the event log?
I have a Windows 2008R2 server that's reporting the following error:
The file system structure on the disk is corrupt and unusable. Please
run the chkdsk utility on the volume \Device\...
7
votes
1
answer
5k
views
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, ...
4
votes
1
answer
6k
views
Can I apply a Group Policy only to systems that have specific software installed?
If I wanted to setup a group policy that installed Java, this would be no problem. But is it possible for the group policy to only apply to systems that have Mozilla Firefox installed?
I don't know ...
1
vote
1
answer
1k
views
retrieve software RAID information using WMI [duplicate]
I need to get software RAID configuration info from a remote windows server (2003, 2008, 2012) on a local linux system. I have searched and searched, but have been unsuccessful at finding a solution, ...
3
votes
1
answer
4k
views
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 ...
2
votes
2
answers
1k
views
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 ...
7
votes
1
answer
409
views
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 ...
3
votes
1
answer
16k
views
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:
...
1
vote
1
answer
988
views
How can I retrieve the data types of properties when querying WMI via Winrm
Winrm allows me to query WMI via the WS-MAN protocol as opposed to DCOM. However, in the DCOM implementation I can retrieve the data types of the various properties of the various classes I query. ...
4
votes
2
answers
9k
views
Use WMI to remove a page file
I can modify page file settings via WMI like this
PS D:\> gwmi win32_pagefilesetting
MaximumSize Name Caption
...
5
votes
1
answer
10k
views
WMI filter for Internet Explorer 10+
I need to apply a GPO on all machines with IE 10+ but the setting does not need to be and shouldn't be applied to ie 9. All the machines are Windows Vista, 7, and 8 (some 32 bit and others 64).
I ...
0
votes
1
answer
229
views
How can I monitor and graph this WMI/WQL data?
How can I graph this data? Looking for a non-cumbersome way to put this data into a graph/webpage.
select writeiops from Win32_PerfFormattedData_ISEVirtualDisks_ISEVirtualDisks WHERE NAME = "trax2"
...
2
votes
0
answers
913
views
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 ...
-2
votes
1
answer
139
views
How to loop specific powershell script
I need to uninstall Java from several computers in my network. After almost all day of Googling it seems the best way to do this is with a Powershell script. I found one that I have tested on a few ...
0
votes
0
answers
203
views
Powershell script to retrieve the same kind of info reported by DMDIAG for dynamic disks
This article about windows partition alignment explains that checking the alignment offset of dynamic disks can be done with the DMDIAG tool to get the "relative sectors" property.
With dynamic ...
0
votes
1
answer
385
views
IBM Server IMM settings throughWMI
We have few windows servers 2008 where we need to find out IP Address of IMM module.
Is there any way we can query it using WMI?
8
votes
2
answers
7k
views
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 ...
2
votes
0
answers
341
views
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:
...
8
votes
3
answers
11k
views
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 ...
0
votes
0
answers
1k
views
Unable to launch SQL Server Configuration Manager - WMI provider issue
Hoping you can help. I am having issues opening SQL Server Configuration Manager on Server 2k3 with the following error:
Cannot connect to WMI provider. You do not have permission or the server is ...
1
vote
1
answer
2k
views
Windows Remote WMI
i want to manage my Windows Server 2012 remotly via Server Manager and the MySQL installation via MySQL Workbench 6.
Now i got serval problems. The first one is that i cant get remote WMI access to ...