myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Clean SW & HW Inventory

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Clean SW & HW Inventory Page: [1]
Login
Message << Older Topic   Newer Topic >>
Clean SW & HW Inventory - 9/4/2008 3:06:49 AM   
ridvan

 

Posts: 70
Score: -7
Joined: 3/13/2008
Status: offline
Hi,

Is there any tool, or any option, or any VBS, that clears Completely SW & HW Inventory,

I woul like to do this, because i need to be 100% sure, that the report that i generate is  UP-TO-DATE,

Regards,
Ridvan
Post #: 1
RE: Clean SW & HW Inventory - 9/4/2008 4:38:44 AM   
jquirk822


Posts: 189
Score: 12
Joined: 2/20/2003
Status: offline
If what you are looking to do is to generate a full hardware inventory, rather than a delta, then SMS Client Center can do this for you on a per-machine basis.

If you're looking to script cleaning the inventory cache, the SDK provides this VBScript:

Sub ResetHardwareInventoryCache()

' Get a connection to the "root\ccm\invagt" namespace.
Dim locator
Set locator = CreateObject("WbemScripting.SWbemLocator")
Dim services
Set services = locator.ConnectServer( , "root\ccm\invagt")

' Delete the specified InventoryActionStatus instance.
services.Delete "InventoryActionStatus.InventoryActionID='{00000000-0000-0000-0000-000000000001}'"

' Display message.
wscript.echo "Reset Hardware Inventory cache."

End Sub


========= 
It's pretty much the same to reset the software inventory cache: Sub ResetSoftwareInventoryCache()

' Get a connection to the "root\ccm\invagt" namespace.
Dim locator
Set locator = CreateObject("WbemScripting.SWbemLocator")
Dim services
Set services = locator.ConnectServer( , "root\ccm\invagt")

' Delete the specified InventoryActionStatus instance.
services.Delete "InventoryActionStatus.InventoryActionID='{00000000-0000-0000-0000-000000000002}'"

' Display message.
wscript.echo "Reset Software Inventory cache."

End Sub

=====

I'd be interested to know what problems you're seeing that makes you need this though?

JQ

< Message edited by jquirk822 -- 9/4/2008 4:39:38 AM >

(in reply to ridvan)
Post #: 2
RE: Clean SW & HW Inventory - 9/4/2008 5:19:29 AM   
ridvan

 

Posts: 70
Score: -7
Joined: 3/13/2008
Status: offline
The reason why i would like to do this is:

I am planing to do a huge software installation (more than 50 different apps) in more than 1K PC-s,  and i like to have a 100% clean raport, where to deploy apps, where is deployed. i plan to generate the detailed report in morning and than deploy application and than in the end of the day to generate again the report.

Actually i do not need nothing to be kept in history of inventory, it is not needed for my enviroment, all what i need is Clean & Fresh & Quick report.

I Hope you undertstand my need based on explanation above,

Regards,
Ridvan 

(in reply to jquirk822)
Post #: 3
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Clean SW & HW Inventory Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.219