
GenerateReport method of the Win32_TSLicenseReport class Provides instances of Remote Desktop Services Per User client access license (RDS Per User CAL) usage reports that are generated on the Remote Desktop license server, and methods for license report generation, fetch, and delete operations.

At that point, you are just using the basic of the Send-MailMessage cmdlet. Take the default reporting class, generate the report and attach that to an email either as a text file or html. So, since you already suspect environment issues, then correct those in the most prudent methods supported, if it is beyond what the above addresses.Īs noted there are additional resources to help you. Used to install licenses for Windows 2008 R2 and then for Windows 2012 The problem A license database for remote desktop in Windows 2012 gotĬorrupted as helpdesk executes several times an script in powershell I'd suggest SuperUser and following this discussion and answer. So, this would not be the correct forum for this question.

It is a potential environment issue as noted by you. Well, you have not shown your PS report and mail message code / issues with it. This is not a PS issue or code issue, which is what we are here to help with.
