Remote desktop license server shows Not Configured

I have Server 2012 running Remote Desktop services. All services are on one server.  I installed 15 per user licenses.

In server manager / remote desktop services / overview, under Deployment Servers it shows the server name  - RD Licensing.

On the same page under deployment overview, I click on Tasks / Edit Deployment Properties. On RD Licensing  Per User is checked and the server is listed on the bottom section.

In RD Licensing Manager there is a green check next to the server. When I click on the server, on the right pane "Windows server 2012 - installed RDS Per User CAL" shows  total licenses 15 and available 15.

When I run licensing diagnostics it shows:
Number of licenses available for clients -  0
Licensing Mode - Not configured
"The licensing mode for the Remote Desktop Session Host server is not configured."
"The Remote Desktop Session Host server is within its grace period, but the RD Session Host server has not been configured with any license server."

What part of licensing am I mssing
Who is Participating?
ajdratchConnect With a Mentor Author Commented:
I found the solution and decided to post it instead of deleting my own question in case it can help someone else

I had to run powershell as administrator to get the scripts to run
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.