Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add Support for Powershell V2
- if(!$PSScriptRoot){$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent}
- # Change Location to Script root
- Push-Location $PSScriptRoot
- # Kill MicTray Process
- Stop-Process -processname MicTray* -Force
- Sleep 3
- ## Remove Affected Files
- If (Test-Path $env:SystemDrive\Windows\System32\MicTray64.exe) {
- Remove-Item -Path $env:SystemDrive\Windows\System32\MicTray64.exe -Force | Out-Null
- }
- Else {
- }
- If (Test-Path $env:SystemDrive\Windows\System32\MicTray.exe) {
- Remove-Item -Path $env:SystemDrive\Windows\System32\MicTray.exe -Force | Out-Null
- }
- Else {
- }
- If (Test-Path $env:SystemDrive\Windows\System32\MicTray64.xml) {
- Remove-Item -Path $env:SystemDrive\Windows\System32\MicTray64.xml -Force | Out-Null
- }
- Else {
- }
- If (Test-Path $env:SystemDrive\Windows\System32\MicTray.xml) {
- Remove-Item -Path $env:SystemDrive\Windows\System32\MicTray.xml -Force | Out-Null
- }
- Else {
- }
- If (Test-Path $env:SystemDrive\Users\Public\MicTray.log) {
- Remove-Item -Path $env:SystemDrive\Users\Public\MicTray.log -Force | Out-Null
- }
- Else {
- }
- # Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement