title: How do you run Cleanmgr.exe remotely?
body: <p>I'm having some trouble getting Clean Manager on Windows 10 to run remotely. I've seen a few different things were you can edit the registry and modify the <code>/sageset</code> or <code>/sagerun</code> to be specific things then run it remotely, but it seems no matter what I do the CleanMgr runs locally on my machine rather than running remotely. </p>
  
  <p>I believe this is the closest I've gotten to get it to run remotely... It seems to still just run locally on my machine though.</p>
  
  <p>Any ideas?</p>
  
  <p>( All variables are set before this portion of the script, this is just a small portion of what's going on that I'm stuck on )</p>
  
  <pre><code>## Starts cleanmgr.exe
  Function Start-CleanMGR {
      Write-Host "Please provide your A-Account details to continue with this cleanup."
      $creds = Get-Credential
      Enter-PSSession -ComputerName $computername -Credential $creds
      try {
          $cleanmgr = Start-Process -Credential $creds -FilePath "C:\Windows\System32\cleanmgr.exe" -ArgumentList '/verylowdisk' -Wait -Verbose
          if ($cleanmgr) {
              Write-Host "Clean Manager ran successfully!                                                                   " -NoNewline -ForegroundColor Green
              Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
          }
      }
      catch [System.Exception] {
          Write-host "Cleanmgr is not installed! To use this portion of the script you must install the following windows features:" -NoNewline -ForegroundColor DarkGray
          Write-host "[ERROR]" -ForegroundColor Red -BackgroundColor Black
      }
  } Start-CleanMGR
  </code></pre>