Here is a script I use when pushing certain apps when the advertisement is dependant on collection membership.
Note that the hardware inventory actually does pertain to installed apps.
'force hardware inventory for SMS client
On Error Resume Next
Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
Set actions = cpApplet.GetClientActions
For Each action In actions
If Instr(action.Name,"Hardware Inventory") > 0 Then
action.PerformAction
End if
Next
---
Here is another script that does a full inventory
that I use more frequently than the aforementioned. Written by Chris Stauffer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.