Wmic export to txt systemname4/27/2023 Option 2:ġ) Run the task below on a system and copy the results to the SMP NSCap Share If it varies, then look up that SN in the List of Disks not to Image. Then run the WMI command and validate the current Disk matches the Physical Disk info. Run the returned data by the List of Disks not to Image. One way to put these pieces together, would be to run a SQL Query for the system name I'm imaging, and grab the Physical Disk info (This can be a Run SQL Query on Server Task). If drives do get swapped, we could use the WMI command above and do some manual searching for the drive in your list. If we assume that a disk never leaves a computer, we could match a computer name to a Disk very easily using the query above. NOTE: Inventory is usually captured weekly on all managed systems, and this specific data class (HW_Storage) comes from the Hardware Inventory. Run the Task, and view the results of the command:Ģ) We capture Physical Disk Serial Number in Inventory on Managed Machines in the Inv_HW_Storage data class, and here's a sample SQL Query to find System Name / Physical Disk info. Click Advanced, and choose: Save script output with Task output User could copy this and manually compare it against your list of serials number to not be wiped.Ĭreate a new Run Script task. Save the Output of this Task, and you will have the output in the Console. Option 1:ġ) We can run a Client Task (windows script) to run wmic diskdrive get serialnumber. This is not meant to be a full answer to your question, but enough to get you thinking about how you want to solve this issue.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |