Forum Discussion
davidhoeft61
Sep 13, 2016Copper Contributor
Office 365 Licensing Issue
We are having trouble with our users receiving a message when opening a desktop Office 365 APP. It puts a banner across the top stating the user is not not licensed. Most of the time we just need to ...
Andy Dively
Oct 03, 2016Copper Contributor
I use the following scripts for when an employee has left the company and I am reallocating his/her PC to another user. This will remove the office license from the ex-employee's account and allow you to reassign it (by opening an Office Desktop application.)
First run: cscript.exe "C:\Program Files\Microsoft Office\Office16\"ospp.vbs /dstatus
You see find the specific 5 digit key (Highlighted above) for the program that you are relicensing and enter it in the below script at where the %1 is. I am running Visio and Office 365 Pro Plus, so I have 2 different keys.
cscript.exe "C:\Program Files\Microsoft Office\Office16\"ospp.vbs /unpkey:%1
The above script will return this.
Now just open Word or Excel and it should prompt you to login.