added script and resource for resetting Autodesk product licenses

This commit is contained in:
2020-12-15 14:57:16 -05:00
parent fd2fa90f22
commit 16fbd10d86
2 changed files with 19 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
. 'C:\Users\dyoder\Emberkom\Data\Projects\development\management-scripts\Tools.ps1'
$URL = 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/resources/AdskLicensingSupportTool.exe'
$LicensingSupportTool = Download-File -URL $URL
$WorkingDir = Split-Path -Path $LicensingSupportTool -Parent
If ( Test-Path $LicensingSupportTool ) {
LogMsg "Extracting Autodesk Licensing Support Tool to ""${WorkingDir}"""
Try { Start-Process "${LicensingSupportTool}" -ArgumentList "-o""${WorkingDir}"" -y" -WorkingDirectory $WorkingDir -Wait }
Catch { LogErr $_.Exception.Message ; Exit }
}
$ALST = "${WorkingDir}\AdskLicensingSupportTool\AdskLicensingSupportTool.exe"
If ( Test-Path $ALST ) {
LogMsg "Resetting all Autodesk product licenses to named-user licenses"
Try { Start-Process $ALST -ArgumentList '-r ALL:USER' -Wait }
Catch { LogErr $_.Exception.Message }
}
Binary file not shown.