This code indicates success, rather than an error.
This may not be the correct interpretation of this code,
or possibly the program is handling errors incorrectly.
I'm trying to clean up the output of cscript 'C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs' /dstatus I want to display only the license and the last 5 chars of the key such as > Office16HomeBusinessR_Retail3 edition , 7H67X I've got pieces of it, but can't quite bring it together. $comp = "Computername" [...] read more