I'm trying to learn PowerShell and this script is what I was hoping would be a 
good place to start.  I want to be able to input a list of computers and then 
kick off a full Hardware or Software inventory (rather than a delta inventory).

So far I have it kicking off a delta inventory.  I don't see a way to do a full 
inventory.

Here is what I have so far (this is just the inventory portion for testing):

$Computer = "XYZ"
[wmi]"\\$Computer\ROOT\ccm\invagt:InventoryActionStatus.InventoryActionID='{00000000-0000-0000-0000-000000000001}'"
 | remove-wmiobject
([wmiclass]"\\$Computer\Root\CCM:SMS_Client").TriggerSchedule('{00000000-0000-0000-0000-000000000001}')


When I run this I get the following in the InventoryAgent.log file:
[cid:image001.png@01CE62C0.84A17620]

Thanks,

[cid:image002.png@01CE62C0.84A17620]
Ken Lutz
Senior Systems Administrator
Information Systems Department
Spokane County
815 N. Jefferson
Spokane, Washington  99260





<<inline: image001.png>>

<<inline: image002.png>>

Reply via email to