PowerShell: CimInstance is impossible to remove. ObjectNotFound being raised even though it exists
Scenario When I run: Get-CimInstance -Namespace “root/subscription” -Query “Select * from __FilterToConsumerBinding” …It clearly shows this CimInstance exists: Consumer : CommandLineEventConsumer (Name = “testConsumer”) CreatorSID : {1, 5, 0, 0…} DeliverSynchronously : False DeliveryQoS : Filter : __EventFilter (Name = “testFilter”) MaintainSecurityContext : False SlowDownProviders : False PSComputerName : Problem However, when I attempt to […]