added script and resource for resetting Autodesk product licenses
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user