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

Scripting inventory of machine name, current username, Operating System using WMIC or powershell

I have a text file of every machine in our Windows Active Directory domain, and I would like to determine the currently logged in user (if any) and operating system of each machine using WMIC: WMIC /NODE: COMPUTERSYSTEM GET…
tbone
  • 436
  • 3
  • 8
  • 17
3
votes
1 answer

Programmatically/remotely remove untrusted but "bound" Windows from Active Directory

Due to some mistakes, I have a lot of machines that seem to be bound to Active Directory (AD) from their side, but not from the side of the AD. The machines thinks they are still in the AD, but the AD disagrees. This results in the well known "The…
Kai Hatje
  • 143
  • 4
3
votes
1 answer

WMI queries can't run with a FQDN?

On my new Azure 2012r2 boxes in a DMZ I can't get a WMI query to work with a FQDN reference. These queries run from the local machine, but need to reference it by FQDN to work with our monitoring solution. It is erroring out with 'access is…
Tim Brigham
  • 15,545
  • 10
  • 75
  • 115
3
votes
1 answer

List 3rd party WMI providers before rebuilding repository

I'm looking for some Powershell cmdlet/script which list WMI 3rd party providers before I will rebuild whole repository. There is GWMI cmdlet which lists all WMI objects but I'm missing something like "Company:", then I would use filter to list…
MyKE
  • 301
  • 2
  • 9
3
votes
2 answers

Firewall Blocking PSWindowsUpdate

Problem I am trying to use the script from this link below to retrieve windows updates from a remote computer (Server 2012 R2) using the command…
mike9182
  • 131
  • 1
  • 4
3
votes
2 answers

Configuration of RelayIPList using CimObject breaks Windows SMTP server

I am trying to configure Windows Server 2012 SMTP server using PowerShell. I plumbed for using the IISSmtpServerSettings CimObject. I get the object, apply my change (allow localhost to relay sender list) and the script exits without error. However,…
wimnat
  • 299
  • 2
  • 10
3
votes
4 answers

Win32_LogicalDisk doesn't retrieve network drives from remote machines

I'd like to use WMI to retrieve all logical disks from a remote host. For some unknown reason, running get-wmiobject Win32_LogicalDisk -computername remoteHost fails to include network drives located on the remote Windows host. However, running…
w128
  • 255
  • 2
  • 5
  • 10
3
votes
3 answers

How do I get the free space of a remote disk without admin privileges? (Windows)

I'm an admin on two servers (Win 2008 R2). I have a scheduled task that copies large files from a share on one server to another. Before I do the copy, I check that the destination disk on the other server has enough free space. I've been running…
giltay
  • 133
  • 1
  • 5
3
votes
2 answers

Group policy WMI Logon Server

I'm trying to setup a GP to do tasks if in a certain location, I believe the best way in doing this is a WMI filter. Could someone help me out? I've never used this part of GP before. Was looking online and it seem that Win32_NetworkLoginProfile is…
user3329963
  • 163
  • 1
  • 4
  • 9
3
votes
1 answer

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.aspx Does anyone have any idea how this is actually…
mhouston100
  • 412
  • 1
  • 5
  • 20
3
votes
1 answer

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 "MSPower_DeviceWakeEnable" The above errors only occur…
software is fun
  • 306
  • 3
  • 6
  • 14
3
votes
1 answer

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 applications this approach works ok: WMIC NTEVENT…
user3441253
  • 133
  • 1
  • 5
3
votes
0 answers

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 Windows Management Instrumentation namespace …
asdf
  • 31
  • 2
3
votes
1 answer

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 = $_.Name $LastLogon = $_.LastLogon …
MDMoore313
  • 5,581
  • 6
  • 36
  • 75
3
votes
1 answer

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 would like to install the WMI ODBC driver on Windows…
brandeded
  • 1,845
  • 8
  • 32
  • 50