title: Remove users from distribution groups without additional confirmation
body: <p>I have the exchange powershell script below that works, but I don't know a lot about powershell script so hoping i could get some help in how I can have this same idea work, but not have to confirm removing the user from each group as the script runs. Basically want to run the script, remove the user and be done with it without any additional confirmation needed.  If any additional information is needed, please let me know.</p>
  
  <pre><code>    $user = "user@domain.com"
      $groups = Get-DistributionGroup
      $DGs = $groups | where-object { ( Get-DistributionGroupMember $_ | where-object { $_.PrimarySmtpAddress -contains $user}) } 
  
      foreach( $dg in $DGs){
          Remove-DistributionGroupMember $dg -Member $user
      }
  </code></pre>