Added: license status check before backup
Added: prompt for saving product key of Office2013(if activated) in the Windows8/2012 backup scenario.
Previous "LicRestore.cmd" now deprecated, the codes recently rewritten with the new script name "mslmgr.cmd", now supports NT6.1+(7,server08r2,8,server2012) and Office12+(2007,2010,2013), since new programming logic and folder structure have been involved, those who used to use the old script now need to redo the backup with the new one on an ACTIVATED running OS, sorry for the inconvenience.
Script supports on-screen interactive mode for both backing up and restoring operation and silent mode only for restoring, which needs running with administrative rights. In addition, it aims at working for multiple versions of products on diffferent computers (backup info stored in different folders alongside the script based on computer name/product name/version, while restoring the script itself can match the appropriate one).
Silent switches currently available are:
mslmgr.cmd rw (for restoring Windows activation)
mslmgr.cmd ro (for restoring Office activation)
Both the above are case-insensitive, sequence-independent, with no quotation marks.
Since the activation info storing method for Office2013 has been changed on NT6.2 platforms(Win8 & Server2012), which now merged into the one for Windows, to prevent messing up, this script is by design not to support either backing up or restoring Office2013 activation directly on such platforms, but you can still accomplish these tasks by backing up/restoring Windows activation instead, in other words, to use the "rw" switch instead of "ro" if you intend to restore Office2013 activation on Win8/Server2012.
The script can be executed from "oobeSystem configuration pass | FristLogonCommands" to restore the activation info, here's the example
2011-2-5 17-25-40.gif 33.62KB 179 downloads
LicRestore.rar 14.75KB 304 downloads
mslmgr.rar 18.88KB 52 downloads
Please report me back if you find any issue, Cheers
Edited by Rico.JohnnY, 14 March 2013 - 10:43 AM.