Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Script used for Windows and Office activation info backup and restorin


  • Please log in to reply
8 replies to this topic

#1
Rico.JohnnY

Rico.JohnnY

    Member

  • Member
  • PipPip
  • 246 posts
  • Joined 02-June 04
  • OS:Windows 7 x64
  • Country: Country Flag
Attached File  2013-3-9 4-54-53.jpg   39.49KB   14 downloads


2013-03-14
Added: license status check before backup
Added: prompt for saving product key of Office2013(if activated) in the Windows8/2012 backup scenario.



2013-03-09
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.



IMPORTANT:

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

Attached File  2011-2-5 17-25-40.gif   33.62KB   183 downloads



Attached File  LicRestore.rar   14.75KB   343 downloads

Attached File  mslmgr.rar   18.88KB   84 downloads

Please report me back if you find any issue, Cheers

Edited by Rico.JohnnY, 14 March 2013 - 10:43 AM.



How to remove advertisement from MSFN

#2
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Nice, you have that for Office 2007?
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#3
Rico.JohnnY

Rico.JohnnY

    Member

  • Member
  • PipPip
  • 246 posts
  • Joined 02-June 04
  • OS:Windows 7 x64
  • Country: Country Flag
New script released.

#4
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Many thanks! :thumbup
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#5
coucou

coucou

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 837 posts
  • Joined 01-January 04
Thank you Rico JohnnY ;)

#6
tolios1313

tolios1313

    Newbie

  • Member
  • 20 posts
  • Joined 19-December 12
  • OS:Windows 7 x64
  • Country: Country Flag
how can use that on dvd iso???

#7
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,327 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag

how can use that on dvd iso???

The answer is in the Explanation/Picture in first post - during Install.

You have to FIRST have the Key and Activation Token Files from the FIRST time you Install and Activate. Get that stuff and create the Install DVD. The DVD is ONLY good for YOUR computer for a Reinstall, it does NOT 'auto-activate" OTHER computers.

Look also at this -
http://www.msfn.org/...n7-product-key/

Edited by submix8c, 18 June 2013 - 05:40 PM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#8
Reaper721980

Reaper721980
  • Member
  • 1 posts
  • Joined 10-November 13
  • OS:Windows 7 x64
  • Country: Country Flag

attachicon.gif2013-3-9 4-54-53.jpg


2013-03-14
Added: license status check before backup

Added: prompt for saving product key of Office2013(if activated) in the Windows8/2012 backup scenario.



2013-03-09
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.



IMPORTANT:

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

attachicon.gif2011-2-5 17-25-40.gif



attachicon.gifLicRestore.rar

attachicon.gifmslmgr.rar

Please report me back if you find any issue, Cheers

Thanks for nice tool, I´ll try it integrate to my autounattend.xml. If I´m  getting it right, I´ll just change path and insert mslmgr.cmd rw instead of licrestore.cmd, right?

Thanks for your advice.



#9
Andreas

Andreas
  • Member
  • 1 posts
  • Joined 13-February 14
  • OS:Windows 7 x64
  • Country: Country Flag

Hi there,

 

this is really a great script you wrote.

I was wondering if this is also working with Windows 7 Enterprise? Since the Advanced Tokens Manager works, i thought this tool should too. However, it doesn't. Perhaps I'm doing something wrong?

Unfortunatly I never did the activation with VAMT, so the activation is not saved. Then I used the Advanced Tokens Manager to back it up. Restoring works perfectly. Since the Machines get re-installed periodically, i wanted to use this function of the tokens.dat and the pkeyconfig file. Backing up works always. But the restoring never activates my machine. However, with Windows Professional it does work. Is there any fix to that?

 

kind regards,

Andreas






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users