Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 7220

Server 2012 R2 installing CAL using powershell

$
0
0

Hello,

I would like to install CAL using powershell on a Server 2012 R2. I found this site explaining the process for Windows 2008.

http://blogs.msdn.com/b/rds/archive/2010/04/07/manage-remote-desktop-licensing-by-using-windows-powershell.aspx

We are using Open License for our customer servers, so with a little bit of tweaking I can use the following powershell command to install server 2008 CAL.

New-Item -path RDS:\LicenseServer\LicenseKeyPacks -InstallOption INSTALL -ConnectionMethod AUTO -LicenseType open -AuthorizationNumber 12345678ABC1234 -LicenseNumber 12345678 -PRODUCTVERSION 2 -PRODUCTTYPE 1 -LICENSECOUNT 1

I can`t find an explanation of the product version numbers anywhere, but I guess server 2012 is version 3. But when I try that I get the following error.

New-Item : Access to the object at RDS:\LicenseServer\LicenseKeyPacks\<LicenseKeyPack> is denied for the cmdlet New-Item.A license key pack could not be cre

ated because the input was not valid or permissions were insufficient.

At line:1 char:1

+ New-Item -path RDS:\LicenseServer\LicenseKeyPacks -InstallOption INSTALL -Connec ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   + CategoryInfo         : PermissionDenied: (:) [New-Item], AccessViolationException

   + FullyQualifiedErrorId : PermissionDenied,Microsoft.PowerShell.Commands.NewItemCommand

 

What am I doing wrong?  




Viewing all articles
Browse latest Browse all 7220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>