major update to override Write-Output func
This commit is contained in:
@@ -12,19 +12,19 @@ $WorkingDir = '{0}\{1}' -f (Split-Path -Path $LicensingSupportTool -Parent), "Ad
|
||||
|
||||
$ALST = "${WorkingDir}\AdskLicensingSupportTool.exe"
|
||||
If ( Test-Path $ALST ) {
|
||||
LogMsg "Resetting all Autodesk product licenses to named-user licenses"
|
||||
Write-Output "Resetting all Autodesk product licenses to named-user licenses"
|
||||
Try { Start-Process $ALST -ArgumentList '-r ALL:User' -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
}
|
||||
|
||||
If ( Test-Path $LicensingSupportTool ) {
|
||||
LogMsg "Deleting ""${LicensingSupportTool}"""
|
||||
Write-Output "Deleting ""${LicensingSupportTool}"""
|
||||
Try { Remove-Item $LicensingSupportTool -Force -ErrorAction SilentlyContinue }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
}
|
||||
|
||||
If ( Test-Path $WorkingDir ) {
|
||||
LogMsg "Deleting ""${WorkingDir}"""
|
||||
Write-Output "Deleting ""${WorkingDir}"""
|
||||
Try { Remove-Item $WorkingDir -Force -Recurse -ErrorAction SilentlyContinue }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
}
|
||||
Reference in New Issue
Block a user