Here is an example how to uninstall Microsoft SQL Server 2008 R2 remotely.
This script include these steps:
1. Getting the list of computers and performs actions following actions on them
2. Check if it is pinging, if there is installed Microsoft SQL Server 2008 R2 using WMI
3. Creates a job with...