Named USer Switch for AutoDESK licenses from Flex to Named user

 @echo off

@echo.

@Echo temp map Z:  \\...common.accessible.location...\AutoCAD\2018-NU-Switch\AdskLicensingSupportTool

::Temp map Z

Net use Z: \\...common.acessible.locaiton.\\Autodesk\AutoCAD\2018-NU-Switch\AdskLicensingSupportTool /persistent:no

@Echo change dir to temporary z:

z:

::https://knowledge.autodesk.com/customer-service/account-management/transition-to-named-user/update-named-user-license#admins

::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.exe /IM "ACAD.exe"

::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/autodesk-2018nbspproduct-keys

:: "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.exe /t 5 /nobreak >nul

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.

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: https://knowledge.autodesk.com/customer-service/account-management/transition-to-named-user/update-named-user-license#users

@echo.

@echo.

@echo Kill any open AutoCADs

C:\Windows\System32\TASKKILL.exe /IM "ACAD.exe"

@echo.

@echo Pausig for 5 seconds.

C:\Windows\System32\timeout.exe /t 5 /nobreak >nul

@echo.

@echo deleting "C:\ProgramData\Autodesk\CLM\LGS\"

rmdir "C:\ProgramData\Autodesk\CLM\LGS\" /s /q

@echo.

@echo Deleting  "%AppData%\..\Roaming\Autodesk\ADUT\"

rmdir "%AppData%\..\Roaming\Autodesk\ADUT" /s /q

@echo.

@echo Deleting "%AppData%\..\local\Autodesk\Web Services\LoginState.xml"

del "%AppData%\..\local\Autodesk\Web Services\LoginState.xml"

 

@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

Popular posts from this blog

Revit area plans adding new types and references (Gross and rentable)

Powerpoint countdown and current time in slides VBA

Revit 2019 and up tab colorizer