I wrote a PowerShell script to guess my PC's resale value (and learned my depreciation math was wrong)
A tech enthusiast created a PowerShell script to estimate the resale value of his old laptop. Initially, his linear depreciation model overestimated the value, prompting him to switch to a multiplicative decay model. The revised model provided a more accurate estimate that aligned with actual eBay sales data.
- ▪The initial linear depreciation model was found to be inaccurate, overestimating values by 25-40%.
- ▪The new multiplicative decay model retains 70% of the original value in the first year and decreases gradually thereafter.
- ▪The script utilizes WMI for hardware detection and includes a pricing lookup from a local JSON database.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3847611) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Jude Hilgendorf Posted on May 16 I wrote a PowerShell script to guess my PC's resale value (and learned my depreciation math was wrong) #powershell #windows #sysadmin #scripting Tried selling my old laptop last month. eBay sold listings were all over the place. Same model, same year, prices ranging from $180 to $420. Some had keyboards with missing keys, some were "great condition, no charger." Useless for getting a real number. So I built a script.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).