Compare commits
3
Commits
fde87cbbc8
...
a887e460aa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a887e460aa | ||
|
|
16db6cf5bf | ||
|
|
4b60a13ceb |
@@ -75,6 +75,11 @@ If ( IsAdmin )
|
|||||||
ForEach ( $tempfile in $AutoCADTempFiles ) { Remove-Item $tempfile -Force -ErrorAction SilentlyContinue }
|
ForEach ( $tempfile in $AutoCADTempFiles ) { Remove-Item $tempfile -Force -ErrorAction SilentlyContinue }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Silently run cleanmgr.exe with default settings
|
||||||
|
LogMsg "Running cleanmgr.exe with default settings"
|
||||||
|
Try { Start-Process "cleanmgr.exe" -ArgumentList "/VERYLOWDISK" }
|
||||||
|
Catch { LogErr $_.Exception.Message }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only run this section if we don't have administrative privileges
|
# Only run this section if we don't have administrative privileges
|
||||||
@@ -98,4 +103,9 @@ Else
|
|||||||
ForEach ( $tempfile in $AutoCADTempFiles ) { Remove-Item $tempfile -Force -ErrorAction SilentlyContinue }
|
ForEach ( $tempfile in $AutoCADTempFiles ) { Remove-Item $tempfile -Force -ErrorAction SilentlyContinue }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Silently run cleanmgr.exe with default settings
|
||||||
|
LogMsg "Running cleanmgr.exe with default settings"
|
||||||
|
Try { Start-Process "cleanmgr.exe" -ArgumentList "/VERYLOWDISK" }
|
||||||
|
Catch { LogErr $_.Exception.Message }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,19 @@
|
|||||||
$URL = 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/resources/AdskLicensingSupportTool.exe'
|
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
|
||||||
|
# https://knowledge.autodesk.com/search-result/caas/downloads/content/licensing-support-tool.html
|
||||||
|
$URL = 'https://knowledge.autodesk.com/sites/default/files/file_downloads/AdskLicensingSupportTool-2.2.0.502-win.zip'
|
||||||
|
|
||||||
|
# Download the zip archive
|
||||||
$LicensingSupportTool = Download-File -URL $URL
|
$LicensingSupportTool = Download-File -URL $URL
|
||||||
$WorkingDir = Split-Path -Path $LicensingSupportTool -Parent
|
|
||||||
|
|
||||||
If ( Test-Path $LicensingSupportTool ) {
|
# Extract the downloaded zip file
|
||||||
LogMsg "Extracting Autodesk Licensing Support Tool to ""${WorkingDir}"""
|
Unzip-Object $LicensingSupportTool
|
||||||
Try { Start-Process "${LicensingSupportTool}" -ArgumentList "-o""${WorkingDir}"" -y" -WorkingDirectory $WorkingDir -Wait }
|
|
||||||
Catch { LogErr $_.Exception.Message ; Exit }
|
|
||||||
}
|
|
||||||
|
|
||||||
$ALST = "${WorkingDir}\AdskLicensingSupportTool\AdskLicensingSupportTool.exe"
|
$WorkingDir = '{0}\{1}' -f (Split-Path -Path $LicensingSupportTool -Parent), "AdskLicensingSupportTool"
|
||||||
|
|
||||||
|
$ALST = "${WorkingDir}\AdskLicensingSupportTool.exe"
|
||||||
If ( Test-Path $ALST ) {
|
If ( Test-Path $ALST ) {
|
||||||
LogMsg "Resetting all Autodesk product licenses to named-user licenses"
|
LogMsg "Resetting all Autodesk product licenses to named-user licenses"
|
||||||
Try { Start-Process $ALST -ArgumentList '-r ALL:USER' -Wait }
|
Try { Start-Process $ALST -ArgumentList '-r ALL:User' -Wait }
|
||||||
Catch { LogErr $_.Exception.Message }
|
Catch { LogErr $_.Exception.Message }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,3 +22,9 @@ If ( Test-Path $LicensingSupportTool ) {
|
|||||||
Try { Remove-Item $LicensingSupportTool -Force -ErrorAction SilentlyContinue }
|
Try { Remove-Item $LicensingSupportTool -Force -ErrorAction SilentlyContinue }
|
||||||
Catch { LogErr $_.Exception.Message }
|
Catch { LogErr $_.Exception.Message }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
If ( Test-Path $WorkingDir ) {
|
||||||
|
LogMsg "Deleting ""${WorkingDir}"""
|
||||||
|
Try { Remove-Item $WorkingDir -Force -Recurse -ErrorAction SilentlyContinue }
|
||||||
|
Catch { LogErr $_.Exception.Message }
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
@echo off
|
|
||||||
title Uninstall Unwanted Applications
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo Uninstalling unwanted apps...
|
|
||||||
|
|
||||||
echo - Dell SupportAssist
|
|
||||||
start "" /w MsiExec.exe /X{4F8A3BC3-641C-4B0D-AF46-EA3354016EA7} /qn /norestart
|
|
||||||
|
|
||||||
echo - Dell SupportAssist Remediation
|
|
||||||
start "" /w MsiExec.exe /X{2674B8DB-D696-4F9D-8606-E13E9D119579} /qn /norestart
|
|
||||||
|
|
||||||
echo - Dell SupportAssist OS Recovery Plugin for Dell Update
|
|
||||||
start "" /w MsiExec.exe /X{08E7C8D5-F2B5-4F09-B0EA-F28913BEFDB0} /qn /norestart
|
|
||||||
|
|
||||||
echo - Dell Digital Delivery Services
|
|
||||||
start "" /w MsiExec.exe /X{E530ABB7-9DCC-421B-B751-484375E8374A} /qn /norestart
|
|
||||||
|
|
||||||
echo Done!
|
|
||||||
Binary file not shown.
Reference in New Issue
Block a user