Hello,
I would like to install CAL using powershell on a Server 2012 R2. I found this site explaining the process for Windows 2008.
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?