This script is useful if you re-image a machine which will re-use its AD computer name, or a new machine which needs to be moved to a specific OU chosen in a HTA.
Follow the steps in the script description to accomplish this and match the step in the image.
I had a lot of software at a costumer which needed to be uninstalled automatically because of expensive licencing. I stumbled upon this article from systemcenterdudes where Nicolas Pilon have created queries and collections in SCCM containing exactly what i needed. Based on that article i created a powershell script to do that for me.
Microsoft has introduced the ability to create your own packaged Win32 applications to deploy in Intune. What this makes possible, is to package your MST based MSI installations – or even scripted deployments as a single package.