title: SCCM Client Un-install Script won't work
body: <p>I have written this pretty basic script to uninstall the SCCM 2012 Client but it refuses to work. I am pretty sure it's due to the elevated privileges required to access the CCMSetup folder.<br>
  How else can I get this to work? </p>
  
  <pre><code>$comp = Read-Host "Enter Computer Name"
  
  if (Test-Connection -ComputerName $comp -Count 1)
  
  { 
  
  Invoke-Command -ComputerName $comp -ScriptBlock { Start-Process powershell -Verb runas -ArgumentList 'C:\windows\ccmsetup\ccmsetup.exe /uninstall'
  
  }
  
  
  Else
  
  {
  
  Write-Host "Computer $comp is not Reachable"
  
  }
  </code></pre>