Using DISM to convert Server 2016 Evaluation License to a normal License


We have a copy of server 2016 installed on an evaluation license and we want to license it with our company license. Datacenter edition of Server 2016 is required to do this conversion.


We can use the Automatic Virtual Machine Activation keys to convert the license. We use DISM to convert the license like this:

dism /online /Set-Edition:ServerStandardCor /ProductKey:C3RCX-M6NRP-6CXC9-TW2F2-4RHYD /AcceptEula

See More on Automatic Virtual Machine Activation

AVMA keys

The following AVMA keys can be used for Windows Server 2012 R2.

Edition AVMA key
Datacenter Y4TGP-NPTV9-HTC2H-7MGQ3-DV4TW
Essentials K2XGM-NMBT3-2R6Q8-WF2FK-P36R2

The following AVMA keys can be used for Windows Server 2016.

Edition AVMA key
Standard C3RCX-M6NRP-6CXC9-TW2F2-4RHYD
Essentials B4YNW-62DX9-W8V6M-82649-MHBKQ

Project Professional Online will not install using Click to Run Deployment Tool

We were unable to install Project Professional Online for Office 365.

We had to re-install using configuration.xml using product id of ProjectProRetail

We used

cscript ospp.vbs /dstatusall

to list the installs and licenses and then removed project licenses using

cscript ospp.vbs /unpkey:<install id>

and then activated using the users login details on o365


How to find the type of licence assigned to each Office 365 user

This command exports a list of all licensed users and the type of licence that is assigned to those users.

First run:



Get-MsolUser -All |Where {$_.IsLicensed -eq $true } |Select DisplayName,UsageLocation,@{n="Licenses Type";e={$_.Licenses.AccountSKUid}},SignInName,UserPrincipalName,@{n="ProxyAddresses";e={$_.ProxyAddresses}}| Export-csv -Path C:\ExportlicenseUsage.csv -notype

Bulk assign licences in Office 365

If you have imported a large amount of users in Office 365, the first task you will need to tackle is assigning them all a licence. This is a two step process:
1. Set the Usage location
2. Assign the licence

Use the following commands to achieve this:


Get-MsolUser -UnlicencedUsersOnly | Set-Msoluser -UseageLocation "GB"

Get-MsolUser -UnlicencedUsersOnly | Set-MsolUserLicense -UserPrincipalName [email protected] -AddLicenses "Contoso:ENTERPRISEPACK"

Microsoft Office Licence Activation from the Command Line

Open a Command Prompt window, and then take one of the following actions

• If you installed the 64-bit version of Office 2013, move to the following folder: C:\Program Files\Microsoft Office\Office15 

• If you installed the 32-bit version of Office 2013, move to the following folder: C:\Program Files (x86)\Microsoft 

Display Office Licences
cscript ospp.vbs /dstatus

Remove Office Licences
cscript ospp.vbs /unpkey:<last five characters of product key>

Adds Office Key
cscript ospp.vbs /inpkey:value

Activates an installed Key
cscript ospp.vbs /act

Rearm Office Licence
  1. Open a command prompt with administrative permissions.

  2. Go to %installdir%\%Program Files%\Microsoft Office\Office15. If you installed the 32-bit edition of Office 2013 on a 64-bit operating system, %Program Files% is the Program Files (x86) folder.

  3. At the command prompt, type ospprearm.exe. If the rearm succeeds, the following message displays: “Microsoft Office rearm successful.”