1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
| $discoverer = Discover-SystemAssets -DiscoveryID "DISCOVERY001" ` -AssetTypes @("Hardware", "Software", "Network", "Storage") ` -DiscoveryMode "Full" ` -DiscoveryConfig @{ "Hardware" = @{ "Categories" = @("Server", "Desktop", "Mobile") "Attributes" = @("CPU", "Memory", "Storage") "Filter" = "Status = Active" "Retention" = 7 } "Software" = @{ "Categories" = @("OS", "Application", "Driver") "Attributes" = @("Version", "License", "InstallDate") "Filter" = "Status = Installed" "Retention" = 7 } "Network" = @{ "Categories" = @("Device", "Connection", "Protocol") "Attributes" = @("IP", "MAC", "Speed") "Filter" = "Status = Connected" "Retention" = 7 } "Storage" = @{ "Categories" = @("Disk", "Volume", "Share") "Attributes" = @("Size", "Free", "Type") "Filter" = "Status = Online" "Retention" = 7 } } ` -LogPath "C:\Logs\asset_discovery.json"
$tracker = Track-SystemAssets -TrackingID "TRACKING001" ` -TrackingTypes @("Usage", "Cost", "Lifecycle") ` -TrackingMode "Usage" ` -TrackingConfig @{ "Usage" = @{ "Metrics" = @("CPU", "Memory", "Storage", "Network") "Threshold" = 80 "Interval" = 60 "Report" = $true } "Cost" = @{ "Metrics" = @("License", "Maintenance", "Support") "Threshold" = 1000 "Interval" = 30 "Report" = $true } "Lifecycle" = @{ "Metrics" = @("Age", "Warranty", "Depreciation") "Threshold" = 365 "Interval" = 90 "Report" = $true } } ` -ReportPath "C:\Reports\asset_tracking.json"
$optimizer = Optimize-SystemAssets -OptimizationID "OPTIMIZATION001" ` -OptimizationTypes @("Cost", "Performance", "Utilization") ` -OptimizationMode "Cost" ` -OptimizationConfig @{ "Cost" = @{ "Metrics" = @("License", "Maintenance", "Support") "Threshold" = 1000 "Actions" = @("Renew", "Upgrade", "Terminate") "Report" = $true } "Performance" = @{ "Metrics" = @("CPU", "Memory", "Storage", "Network") "Threshold" = 80 "Actions" = @("Scale", "Upgrade", "Migrate") "Report" = $true } "Utilization" = @{ "Metrics" = @("Usage", "Efficiency", "Availability") "Threshold" = 60 "Actions" = @("Consolidate", "Optimize", "Decommission") "Report" = $true } } ` -ReportPath "C:\Reports\asset_optimization.json"
|