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 to the Application-Program model and implement it using Global Conditions and Requirements. This has [...] read more
I'm playing around with the Hyper-V WMI interface and am trying to create a snapshot of one of my local Hyper-V VMs, using C#. I'm trying to do this WITHOUT using System.Management. Instead, I'm using using Microsoft.Management.Infrastructure. Reason for this is that it is supported on .NET Core. Also, the [...] read more
So, trying to trigger a software update in SCCM with Invoke-CimMethod instead of Invoke-WMIMethod. WMIMethod Works: $UpdateID = 'Site_1EED8E47-D4D8-4823-883C-4FFE753FA233/SUM_0af47e05-17cb-4756-8610-09ce486df1ba' $FeatureUpdate = Get-WmiObject -Namespace Root\CCM\ClientSDK -Class CCM_SoftwareUpdate -Filter "UpdateID like '$UpdateID'" Invoke-WmiMethod -Namespace Root\ccm\clientSDK -Class CCM_SoftwareUpdatesManager -Name InstallUpdates -ArgumentList $FeatureUpdate Note that $FeatureUpdate is a instance of an update: $FeatureUpdate.GetType() IsPublic [...] read more
I am attempting to write a small application to update folder permissions. I have written the following code to remove oldGroup and add in newGroup. When I call InvokeMethod I catch an exception HRESULT 0x80041005 - Type Mismatch. Not very helpful! If I comment out newAces.Add(newAce); the old group is [...] read more
I'm trying to execute a WMI method using wbemtest.exe. I've selected the method in the select box, clicked the "Edit In Parameters", and I'm presented with "Object editor for __PARAMETERS". From there I select the parameter with type "CIM_DATETIME", and click "Edit Property" to be presented with the "Property Editor" [...] read more
I have a signed, trusted application in Silverlight 5 (and know its working correctly and AutomationFactory is enabled). However, no matter what I do, I get a COM exception of type mismatch, which is no help, when I try to query the registry. Windows 7 IE8. {System.Runtime.InteropServices.COMException (0x80041005): Exception from [...] read more