#Start process to uninstall SCCM Client.  Contains a loop to wait for successful uninstall before moving on.
Write-Host Uninstalling SCCM Client, please wait...
Start-Process -FilePath 'C:\\Windows\\ccmsetup\\ccmsetup.exe' -ArgumentList '/uninstall'
do {(Start-Sleep -Milliseconds 600)}
until (select-string -Path C:\\Windows\\ccmsetup\\Logs\\ccmsetup.log -Pattern "Uninstall succeeded") #End SCCM Uninstall.
Write-Host SCCM Client uninstalled.