Article ID: 194065
Article Last Modified on 10/31/2006
153140 How to Reset License Manager Information
echo off cls if (%1)==() goto NoParams echo Creating list of domain controllers, please wait. netdom bdc | find "Found PDC " > pdc.txt netdom /noverbose bdc > netdom.txt netdom /noverbose member > netmember.txt rem Stop LLS on all Servers.... Echo Stopping License Logging Service on all servers. Please wait. for /F "tokens=3" %%a in (pdc.txt) do call stop.bat %%a %1 for /F "tokens=1" %%a in (netdom.txt) do call stop.bat %%a %1 for /F "tokens=1" %%a in (netmember.txt) do call stop.bat %%a %1 Echo Done stopping services. Echo. rem Delete LLS files on all servers Echo Deleting LLS configuration files on all domain controllers. Please wait. for /F "tokens=3" %%a in (pdc.txt) do call dellls.bat %%a for /F "tokens=1" %%a in (netdom.txt) do call dellls.bat %%a for /F "tokens=1" %%a in (netmember.txt) do call dellls.bat %%a Echo Done deleting LLS files. Echo. rem Start LLS on all servers Echo Starting LLS Service on all servers. Please wait. for /F "tokens=3" %%a in (pdc.txt) do call start.bat %%a %1 for /F "tokens=1" %%a in (netdom.txt) do call start.bat %%a %1 for /F "tokens=1" %%a in (netmember.txt) do call start.bat %%a %1 Echo Done starting services. Echo. Echo Resetting replication time on all servers. Please wait. for /F "tokens=3" %%a in (pdc.txt) do call sett.bat %%a %1 for /F "tokens=1" %%a in (netdom.txt) do call sett.bat %%a %1 for /F "tokens=1" %%a in (netmember.txt) do call sett.bat %%a %1 Echo Done stopping services. Echo. goto bottom echo --------- echo - Done! - echo --------- goto bottom :NoParams echo usage: RESTART "Service Name" echo. echo. i.e.- RESTART "License Logging Service" echo. :bottom
echo Stopping %2 on %1 netsvc %2 %1 /stop netsvc %2 %1 /start
echo Starting %2 on %1 netsvc %2 %1 /start
echo Stopping %2 on %1 netsvc %2 %1 /stop
Echo Now deleting files on %1.
if exist %1\admin$\system32\cpl.cfg del
%1\admin$\system32\cpl.cfg
if exist %1\admin$\system32\lls\llsuser.lls del
%1\admin$\system32\lls\llsuser.lls
if exist %1\admin$\system32\lls\llsmap.lls del
%1\admin$\system32\lls\llsmap.lls
echo Now setting LLS replication time on %1
reg update HKLM\SYSTEM\CurrentControlSet\
Services\LicenseService\Parameters\ReplicationTime=300 %1
rem reset replication period for LLS Echo Stopping LLS Service on all domain controllers. Please wait. for /F "tokens=3" %%a in (pdc.txt) do call setb.bat %%a %1 for /F "tokens=1" %%a in (netdom.txt) do call setb.bat %%a %1 for /F "tokens=1" %%a in (netmember.txt) do call setb.bat %%a %1 Echo Done stopping services. Echo.
echo Now setting LLS replication time on %1
reg update HKLM\SYSTEM\CurrentControlSet\
Services\LicenseService\Parameters\ReplicationTime=86400 %1
Additional query words: Q153140
Keywords: kbinfo KB194065