This script performs all the actions as mentioned in the SCCM Client. The benefit is that you do not have to initiate each client action manually, the script takes care of it.
I made a script that installs all the Microsoft C++ Runtime modules. These modules can be found on the Microsoft site Latest Supported Visual C++ Downloads. On x86 only the x86 modules are installed. On x64, both x86 and x64 modules are installed.
Sometimes you ping a computer, but due to old local DNS cache, the ‘wrong’ computer replies, even after a ipconfig /flushdns. In this script it is solved by pinging the IP address and resolve it back to its hostname.