[Solved] How to go from KMSAuto activated to legit Official Microsoft 365 subscription based licence

Discussion in 'Microsoft Office' started by JimmyCage, Nov 4, 2021.

  1. JimmyCage

    JimmyCage MDL Novice

    Feb 8, 2013
    3
    0
    0
    #1 JimmyCage, Nov 4, 2021
    Last edited: Nov 9, 2021
    Hi,
    One of my client asked me to install Microsoft Office 365 on his PC. He bought a Microsoft 365 Family subscription from Microsoft.

    I've uninstalled all Office software. Then logged in to his MS account and downloaded the installer. It installed and I've logged in. When opening MS Excel, a message said : "Get Genuine Office. Your licence isn't genuine and you may be a victim of software counterfeiting. Avoid interruption and keep your files safe with genuine Office today."

    Found out that his previous Office 2016 was activated with KMSAuto. I see nothing in startup entries, services, Scheduled tasks, files. So it looks like KMSAuto was used and then removed.

    I succeeded to get rid of the message in Excel and Word by doing the "Procedure A" below, but when I run the following, it says that we're on a grace period of 4 days... I wonder what else I could do to get this legit Office license running fine?

    Code:
    CD "%SystemDrive%\Program Files\Microsoft Office\Office16"
    cscript ospp.vbs /dstatus
    
    ---Processing--------------------------
    ---------------------------------------
    PRODUCT ID: 00200-70000-00000-******
    SKU ID: d7279dd0-e175-49fe-a623-****************
    LICENSE NAME: Office 16, Office16O365HomePremR_Grace edition
    LICENSE DESCRIPTION: Office 16, RETAIL(Grace) channel
    LICENSE STATUS:  ---OOB_GRACE---
    ERROR CODE: 0x4004F00C
    ERROR DESCRIPTION: The Software Licensing Service reported that the application is running within the valid grace period.
    REMAINING GRACE: 4 days  (7196 minute(s) before expiring)
    Last 5 characters of installed product key: *****
    ---------------------------------------
    ---------------------------------------
    ---Exiting-----------------------------
    I then ran "Procedure B" below and I still have a grace period of 4 days.

    Then I executed "Procedure C" below. After that, there was no output for cscript ospp.vbs /dstatus, and in Office apps the user was logged in and no error message showing. Was that the proper thing to do? I think that might remove Windows 10 activation also right? This computer Windows 10 already wasn't activated, so it didn't make a difference in this case. Is there another way to activate Office properly without de-activate Windows 10? (I'll need to do the same procedure for another client.)


    Procedure A:
    Got it here: forums$mydigitallife$net_threads_discussion-microsoft-office-2019$75232_page-33#post-1466365
    Used the scrubber found here: github$com_abbodi1406_WHD_raw_master_scripts_OfficeScrubber_7$7z
    (replace $ with . Replace _ with /)

    Ran cscript OffScrubC2R.vbs
    reg delete HKEY_CURRENT_USER\Software\Microsoft\Office /f
    reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office /f
    Rebooted
    Re-Installed Office 365.
    No more "Get Genuine Office" error in Excel or Word, but I still get the REMAINING GRACE: 4 days, when running cscript ospp.vbs /dstatus.

    Tried all of the following in Procedure B and C. Then opened Excel. It asked me to login, which I did. Still get the REMAINING GRACE: 4 days, when running cscript ospp.vbs /dstatus.

    Procedure B:
    (All found in github$com_abbodi1406_WHD_raw_master_scripts_OfficeScrubber_7$7z))
    (replace $ with . Replace _ with /)

    Code:
    * Uninstall_Keys.cmd
    uninstall Office product keys (in case of confliction)
    
    * Remove_Licenses.cmd
    clean Office licenses (in case of confliction)
    
    you can then repair Office to restore original licenses, or use C2R-R2V to install proper licenses
    
    * Reset_Licenses.cmd
    clean Office licenses, and then reinstall original licenses
    
    you can use this in case Office repair failed to restore original licenses,
    or to remove C2R-R2V Volume licenses and restore original Retail licenses
    
    * Clean_Subscription_Licenses.cmd
    clean Office subscription licenses, credentials, tokens and cached identities
    Procedure C:
    Code:
    net stop sppsvc
    attrib -h -s %windir%\System32\spp\store\2.0\data.dat
    del /f /s /q  %windir%\System32\spp\store\2.0\*.dat
    net start sppsvc
    cscript %windir%\system32\slmgr.vbs /rilc
    (Above line couldn't finish: I've restarted)
    Then ran this:
    cscript ""C:\Program Files\Microsoft Office\Office16\ospp.vbs"" /rearm
    Restarted computer
    Got it from : (replace $ with . Replace _ with /)
    forums$mydigitallife$net_threads_discussion-microsoft-office-2019$75232_page-91#post-1494734
    Saw it here also:
    https:__docs$microsoft$com_en-us_troubleshoot_windows-server_deployment_rebuild-tokens-dotdat-file
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    That Grace entry is normal with modern Office 365 subscription (mostly as placeholder)
    you don't need (probably should not) remove

    to see the the actual details of the subscription licence, run in cmd
    Code:
    powershell -nop -ex bypass -f "%SystemDrive%\Program Files\Microsoft Office\Office16\vNextDiag.ps1"
     
  3. JimmyCage

    JimmyCage MDL Novice

    Feb 8, 2013
    3
    0
    0

    Thanks for that abbodi. Here's what I get when I run that command:

    Code:
    C:\Program Files\Microsoft Office\Office16>powershell -nop -ex bypass -f "%SystemDrive%\Program Files\Microsoft Office\Office16\vNextDiag.ps1"
    
    ========== Mode per ProductReleaseId ==========
    o365homepremretail = vNext
    
    ========== Shared Computer Licensing ==========
    No registry keys found.
    
    ========== vNext licenses found ==========
    {
        "Version":  "5",
        "Type":  "User|Subscription",
        "Product":  "O365HomePremRetail",
        "Acid":  "******-****-****-****-****",
        "Email":  "********@outlook.com",
        "LicenseState":  "Licensed",
        "EntitlementStatus":  "Provisioned",
        "EntitlementExpiration":  null,
        "ReasonCode":  null,
        "NotBefore":  "2021-11-04T13:47:11.7465063Z",
        "NotAfter":  "2022-01-19T13:47:11.7465063Z",
        "NextRenewal":  "2021-11-09T03:47:11.7465063Z",
        "TenantId":  null,
        "LicenseId":  "CWW_******-****-****-****-*******_******-****-****-****-************_***************"
    }
    
    ========== Device licenses found ==========
    No licenses found.
    Does it look OK?
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    Yes, looks fine
    Code:
    ========== Mode per ProductReleaseId ==========
    o365proplusretail = vNext
    
    ========== Shared Computer Licensing ==========
    No registry keys found.
    
    ========== vNext licenses found ==========
    {
        "Version":  "5",
        "Type":  "User|Subscription",
        "Product":  "O365ProPlusRetail",
        "Acid":  "==",
        "Email":  "==",
        "LicenseState":  "Licensed",
        "EntitlementStatus":  "Provisioned",
        "EntitlementExpiration":  null,
        "ReasonCode":  null,
        "NotBefore":  "2021-09-06T22:48:50.1269316Z",
        "NotAfter":  "2021-12-06T22:48:50.1269316Z",
        "NextRenewal":  "2021-09-11T16:48:50.1269316Z",
        "TenantId":  "==",
        "LicenseId":  "EWW_=="
    }
    
    ========== Device licenses found ==========
    No licenses found.
    
     
  5. JimmyCage

    JimmyCage MDL Novice

    Feb 8, 2013
    3
    0
    0
    Cool! Thanks so much abbodi, appreciate it!

    I've checked a second PC and it looks fine also.

    For reference here's what I see now with both commands (cscript ospp.vbs /dstatus and vNextDiag.ps1), on 2 different computers :

    C:\WINDOWS\system32>CD "%SystemDrive%\Program Files\Microsoft Office\Office16"

    C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /dstatus

    ---Processing--------------------------
    ---------------------------------------
    PRODUCT ID: 00200-70000-00000-******
    SKU ID: d7279dd0-e175-49fe-a623-*************
    LICENSE NAME: Office 16, Office16O365HomePremR_Grace edition
    LICENSE DESCRIPTION: Office 16, RETAIL(Grace) channel
    LICENSE STATUS: ---NOTIFICATIONS---
    ERROR CODE: 0xC004F009
    ERROR DESCRIPTION: The Software Licensing Service reported that the grace period expired.
    Last 5 characters of installed product key: ****
    ---------------------------------------
    ---------------------------------------
    ---Exiting-----------------------------

    C:\Program Files\Microsoft Office\Office16>powershell -nop -ex bypass -f "%SystemDrive%\Program Files\Microsoft Office\Office16\vNextDiag.ps1"

    ========== Mode per ProductReleaseId ==========
    o365homepremretail = vNext

    ========== Shared Computer Licensing ==========
    No registry keys found.

    ========== vNext licenses found ==========
    {
    "Version": "5",
    "Type": "User|Subscription",
    "Product": "O365HomePremRetail",
    "Acid": "*****",
    "Email": "*****",
    "LicenseState": "Licensed",
    "EntitlementStatus": "Provisioned",
    "EntitlementExpiration": null,
    "ReasonCode": null,
    "NotBefore": "2021-11-04T13:47:11.7465063Z",
    "NotAfter": "2022-01-19T13:47:11.7465063Z",
    "NextRenewal": "2021-11-09T03:47:11.7465063Z",
    "TenantId": null,
    "LicenseId": "*****"
    }




    ========== Device licenses found ==========
    No licenses found.


    C:\Users\User>CD "%SystemDrive%\Program Files\Microsoft Office\Office16"
    C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /dstatus


    ---Processing--------------------------
    ---------------------------------------
    <No installed product keys detected>
    ---------------------------------------
    ---------------------------------------
    ---Exiting-----------------------------

    C:\Program Files\Microsoft Office\Office16>powershell -nop -ex bypass -f "%SystemDrive%\Program Files\Microsoft Office\Office16\vNextDiag.ps1"

    ========== Mode per ProductReleaseId ==========
    o365homepremretail = vNext

    ========== Shared Computer Licensing ==========
    No registry keys found.

    ========== vNext licenses found ==========
    {
    "Version": "5",
    "Type": "User|Subscription",
    "Product": "O365HomePremRetail",
    "Acid": "*******",
    "Email": "*******",
    "LicenseState": "Licensed",
    "EntitlementStatus": "Provisioned",
    "EntitlementExpiration": null,
    "ReasonCode": null,
    "NotBefore": "2021-11-05T20:21:36.182913Z",
    "NotAfter": "2022-01-20T20:21:36.182913Z",
    "NextRenewal": "2021-11-10T18:21:36.182913Z",
    "TenantId": null,
    "LicenseId": "*******"
    }

    ========== Device licenses found ==========
    No licenses found.