Named USer Switch for AutoDESK licenses from Flex to Named user
@echo off
@echo.
@Echo temp map Z: \\...common.accessible.location...\AutoCAD\
::Temp map Z
Net use Z: \\...common.acessible.locaiton.\\Autodesk\AutoCAD\
@Echo change dir to temporary z:
z:
::Examples single license clear
::Autodesk AutoCAD 2018 001J1
::AdskLicensingSupportTool.exe -r 001J1:USER
::Autodesk AutoCAD Architecture 2018 185J1
::AdskLicensingSupportTool.exe -r 185J1:USER
cls
@echo.
@echo Kill any open AutoCADs
C:\Windows\System32\TASKKILL.
::dir - Check folder populated
::Clear licensing for select AUTOCAD installs
::AdskLicensingSupportTool.exe -r 001J1,185J1
@echo.
@echo Clearing all licenses (May take up to 90 seconds):
@echo.
::Clear licenses for ALL tools.
AdskLicensingSupportTool.exe -r ALL
@echo.
@echo Set all licenses to user (May take up to 90 seconds):
@echo.
::Reset all licenses to user
AdskLicensingSupportTool.exe -r ALL:USER
:: BY Porduct Key https://www.a2kstore.com/
:: "C:\Program Files\Autodesk\Revit 2020\Revit.exe" /language ENU
cls
::Pause 5 seconds
@echo Pausing for 5 seconds... then launching AutoCAD.
C:\Windows\System32\timeout.
cls
@echo Launching AutoCAD -- Use "Sign in" option at far left, then sign in using your AutoDesk credentails.
"C:\Program Files\Autodesk\AutoCAD 2018\acad.exe" /product "ACA" /language "en-US"
@echo Complete
@echo.
:choice
@echo Did autocad launch successfully
@echo -No errors or warnings abot licenses or forced close?
@echo.
set /P c= Enter [Y/N] followed by ENTER:
if /I "%c%" EQU "Y" goto :Closeout
cls
@echo ...AutoCAD launch failed continuing with full purge.
::::::::::::::::::::::::::::::
@echo.
@echo.
@echo Kill any open AutoCADs
C:\Windows\System32\TASKKILL.
@echo.
@echo Pausig for 5 seconds.
C:\Windows\System32\timeout.
@echo.
@echo deleting "C:\ProgramData\Autodesk\CLM\
rmdir "C:\ProgramData\Autodesk\CLM\
@echo.
@echo Deleting "%AppData%\..\Roaming\
rmdir "%AppData%\..\Roaming\
@echo.
@echo Deleting "%AppData%\..\local\Autodesk\
del "%AppData%\..\local\Autodesk\
@echo Launching AutoCAD -- Use "Sign in" option at far left, then sign in using your AutoDesk credentails.
"C:\Program Files\Autodesk\AutoCAD 2018\acad.exe" /product "ACA" /language "en-US"
:Closeout
@echo.
@echo End of script.
@echo Remove temporary map for script
Net use Z: /delete /y
Comments
Post a Comment