izdaleka_nekta

Active RDS CALs raport

Win2k8

$filePath = "c:\temp\Terminal CALs "

$fileType = ".txt"

$timestamp = get-date -format "dd-MM-yyyy"

$fullPath = $filePath + $timestamp + $fileType

get-wmiobject win32_tslicensekeypack | select typeandmodel,issuedlicenses | Out-File -FilePath $fullPath


Win2k12

$filePath = "c:\temp\Terminal CALs "

$fileType = ".txt"

$timestamp = get-date -format "dd-MM-yyyy"

$fullPath = $filePath + $timestamp + $fileType

Get-WmiObject Win32_TSLicenseKeyPack | select typeandmodel,issuedlicenses | Out-File -FilePath $fullPath

Send-MailMessage -From 'Admin <admin@domain.com>' -To 'Manager<manager@domain.com>' -Subject 'Remote Licenses' -Body "Sending RDS Per CAL report" -Attachments $fullPath -Priority High -DeliveryNotificationOption OnSuccess, OnFailure -SmtpServer 'exchange.domain.com'

Error

Anonymous comments are disabled in this journal

default userpic

Your reply will be screened

Your IP address will be recorded