Activation using PsTools Network utilities kit
Here is the example of automation of activation process for networks that don’t have Internet access.
Free network utility, Psexec, is used for this automation. Psexec is a part of free Network utilities kit PsTools, downloadable from Microsoft website:
http://www.microsoft.com/technet/sysinternals/Networking/PsTools.mspx
Activation on a network machines via license file is conducted in three steps.
Step 1: Automatic gathering of “request” files into a net share
Make a network share with writing permitted from all involved computers, \\server\share below.
Step 1 is executed by 4 files that should be in one folder:
psexec.exe (from abovementioned package)
MoveRequest_ToShare.cmd
move %windir%\system32\rserver30\%computername%.request \\server\share
move %windir%\system32\rserver30\%computername%.srf \\server\share
-
MakeRadmin3RequestFiles.cmd (copies and executes the second cmd-file on all domain computers)
copy MoveRequest_ToShare.cmd \\server\share
psexec \\* -s -c RServer3_SaveRequestFiles.cmd
RServer3_SaveRequestFiles.cmd
copy \\server\share\MoveRequest_ToShare.cmd %windir%\system32\rserver30
%windir%\system32\rserver30\Rserver3.exe /saverequest /key:RADPR-123456-YOUR-KEY /requestfile"%windir%\system32\rserver30\%computername%.request" /outputfile"%windir%\system32\rserver30\%computername%.srf" (this long command makes the request and log files in Rserver30 folder)
MoveRequest_ToShare.cmd (this command moves the request and log files to net share)
Del MoveRequest_ToShare.cmd
Del RServer3_SaveRequestFiles.cmd
As a result, .request and .srf files with the same names as network computers, should appear in \\server\share folder. SRFs are log text files with results from each machine (Save Request Files), check them in case of problems.
Step 2: Receiving of corresponding “license” files on an Internet-connected computer
Now copy the folder with “request” files to a computer with Internet access (via diskette, flash, network, CD/DVD disk etc). Install there free Radmin Viewer 3 and launch a CMD-file with cycle similar to:
GetLicenseFiles.cmd
for %%f in (\\YourComputer\FolderWithRequestFiles\*.request) DO "%ProgramFiles%\Radmin Viewer 3.0\radmin.exe" /sendrequest /requestfile"%%f" /licensefile"%%f.license" /outputfile"%%f.slf"
This CMD uploads each of you “request” files to our activation server, puts corresponding “license” files in the same folder and logs results in “slf” files (Save License Files). “License file is saved” means that Radmin activation base have checked the request and everything’s OK.
Step 3: Applying of “license” files on a network machines
Copy received .license files back in \\server\share, same as in Step 1.
Now 5 CMD-files and Psexec.exe are needed:
- psexec.exe
- Copy_CMDs_ToShare.cmd
- Copy_Files_FromShare.cmd
- Copy_Result_ToShare.cmd
- RServer3_UseLicenseFile.cmd
- UseLicenseFilesDomain.cmd
UseLicenseFilesDomain.cmd is the file you need to execute. It launches the rest of CMDs:
call Copy_CMDs_ToShare.cmd
psexec \\* -s -c Copy_Files_FromShare.cmd
psexec \\* -s %windir%\system32\rserver30\RServer3_UseLicenseFile.cmd
psexec \\* -s %windir%\system32\rserver30\Copy_Result_ToShare.cmd
The examples of CMDs are:
Copy_CMDs_ToShare.cmd
copy *.cmd \\server\share
Copy_Files_FromShare.cmd
copy \\server\share\%computername%.request.license %windir%\system32\rserver30
copy \\server\share\*.cmd %windir%\system32\rserver30
RServer3_UseLicenseFile.cmd
%windir%\system32\rserver30\Rserver3.exe /uselicense /licensefile"%windir%\system32\rserver30\%computername%.request.license" /outputfile"%windir%\system32\rserver30\%computername%.ulr"
Copy_Result_ToShare.cmd
copy %windir%\system32\rserver30\*.ulr \\server\share
del %windir%\system32\rserver30\*.cmd
After CMD execution look into .ulr (Use License Results) files in your network folder and check whether activations were successful. “License code is saved” means that licenses are applied at corresponding domain computers.