levi
Junior Member
Posts: 57
|
Post by levi on Feb 22, 2019 16:21:54 GMT
With newer builds of SCCM you can expose WMI via a web-service. It would be great if there was an option to populate the AppTree based on published applications.
|
|
|
Post by Jason on Feb 26, 2019 23:04:25 GMT
I agree that could be nice; however, it would require separate authentication most likely and wouldn't give explicit control over what's visible or not.
|
|
levi
Junior Member
Posts: 57
|
Post by levi on Mar 6, 2019 20:51:29 GMT
After reviewing the WebService in CM, I realized it isn't really helpful for this scenario. I am going to work on a PowerShell script to query WMI to get all applications enabled for OSD deployments "in a task sequence" with at least one deployment type that supports System installs. Ideally it would connect to the WMI provider using the techs credential. Once I have something functional I'll post back, will probably be a month or so before I get to it. In this case technicians are read-only analyst role, so they can do the query. My initial testing from the command-line was using the NAA from the TS variables.
|
|
|
Post by yirmio on Jun 17, 2019 7:41:44 GMT
After reviewing the WebService in CM, I realized it isn't really helpful for this scenario. I am going to work on a PowerShell script to query WMI to get all applications enabled for OSD deployments "in a task sequence" with at least one deployment type that supports System installs. Ideally it would connect to the WMI provider using the techs credential. Once I have something functional I'll post back, will probably be a month or so before I get to it. In this case technicians are read-only analyst role, so they can do the query. My initial testing from the command-line was using the NAA from the TS variables. Can you share this script please?
|
|
levi
Junior Member
Posts: 57
|
Post by levi on Jun 17, 2019 16:22:32 GMT
I did not get to implementing this yet. Here is the proof-of-concept query I was using:
$app = gwmi -class 'SMS_ApplicationAssignment' -credential $creds $app | Where CollectionName -like "AppTree*" | Select ApplicationName,CollectionName,AssignmentType,AssignedCI_UniqueID | Sort ApplicationName | Group ApplicationName,AssignedCI_UniqueID | Select Name
When I have time to work out a fully functional example, I'll post back.
|
|