minor updates
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
LogMsg "Clearing Outlook auto complete cache"
|
||||||
|
Try { Start-Process "outlook.exe" -ArgumentList "/CleanAutoCompleteCache" -ErrorAction Stop }
|
||||||
|
Catch { LogErr $_.Exception.Message }
|
||||||
@@ -6,21 +6,38 @@ If ( $PATH )
|
|||||||
$SVC = Get-Service -Name "AdAppMgrSvc"
|
$SVC = Get-Service -Name "AdAppMgrSvc"
|
||||||
If ( $SVC.Status -ne "Stopped" )
|
If ( $SVC.Status -ne "Stopped" )
|
||||||
{
|
{
|
||||||
Write-Output "Stopping AdAppMgrSvc service"
|
LogMsg "Stopping AdAppMgrSvc service"
|
||||||
Try { $SVC | Stop-Service -Force }
|
Try { $SVC | Stop-Service -Force }
|
||||||
Catch { Write-Output $_.Exception.Message }
|
Catch { LogMsg $_.Exception.Message }
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output "Stopping processes"
|
LogMsg "Stopping processes"
|
||||||
Try
|
Try
|
||||||
{
|
{
|
||||||
Get-Process | Where { $_.Name -like "AdAppMgr" } | Stop-Process -Force
|
Get-Process | Where { $_.Name -like "AdAppMgr" } | Stop-Process -Force
|
||||||
Get-Process | Where { $_.Name -like "AutodeskDesktopApp" } | Stop-Process -Force
|
Get-Process | Where { $_.Name -like "AutodeskDesktopApp" } | Stop-Process -Force
|
||||||
}
|
}
|
||||||
Catch { Write-Output $_.Exception.Message }
|
Catch { LogMsg $_.Exception.Message }
|
||||||
|
|
||||||
Write-Output "Uninstalling Autodesk Desktop App"
|
LogMsg "Uninstalling Autodesk Desktop App"
|
||||||
Try { Start-Process -FilePath $PATH -ArgumentList '--mode unattended' -Wait }
|
Try { Start-Process -FilePath $PATH -ArgumentList '--mode unattended' -Wait }
|
||||||
Catch { Write-Output $_.Exception.Message }
|
Catch { LogMsg $_.Exception.Message }
|
||||||
|
|
||||||
|
If ( Test-Path "HKLM:\SOFTWARE\Wow6432Node\Autodesk\Autodesk Application Manager" ) {
|
||||||
|
LogMsg "Removing: ""HKLM:\SOFTWARE\Wow6432Node\Autodesk\Autodesk Application Manager"""
|
||||||
|
Remove-Item "HKLM:\SOFTWARE\Wow6432Node\Autodesk\Autodesk Application Manager" -Force -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
If ( Test-Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Autodesk Desktop App" ) {
|
||||||
|
LogMsg "Removing: ""HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Autodesk Desktop App"""
|
||||||
|
Remove-Item "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Autodesk Desktop App" -Force -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
If ( Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AdAppMgrSvc.exe" ) {
|
||||||
|
LogMsg "Removing: ""HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AdAppMgrSvc.exe"""
|
||||||
|
Remove-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AdAppMgrSvc.exe" -Force -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
If ( Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutodeskDesktopApp.exe" ) {
|
||||||
|
LogMsg "Removing: ""HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutodeskDesktopApp.exe"""
|
||||||
|
Remove-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutodeskDesktopApp.exe" -Force -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Else { Write-Output "Autodesk Desktop App is not installed" }
|
Else { LogMsg "Autodesk Desktop App is not installed" }
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
|
||||||
|
Run-Script -LivePSScript Fix-ClearOutlookAutoCompleteCache
|
||||||
Reference in New Issue
Block a user