Convert your Windows Server 2016 Evaluation To Retail KMS or MAK

Windows Server 2016 is out out but for now you can only download the evalution version:

Volume licensing customers will be able to download fully licensed software at General Availability in mid-October.

Announcing the launch of Windows Server 2016

But you can already find the KMS client keys on:

https://technet.microsoft.com/en-us/library/jj612867(v=ws.11).aspx

And if you seach you cab already find your official keys on your companies Volume Licensing Service Center Page. Look under Licenses, Relationship summary, Select your active ID, select the licenses tab.

You can now follow the procedure described here to change the edition to retail:

https://technet.microsoft.com/windows-server-docs/get-started/supported-upgrade-paths

For example if you are running ServerStandardEval you can convert it to ServerStandard with the KMS client key using the following command:

DISM /online /Set-Edition:ServerStandard /ProductKey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /AcceptEula

After:

PS C:\Windows\system32> DISM /online /Get-CurrentEdition

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Image Version: 10.0.14393.0

Current edition is:

Current Edition : ServerStandard

The operation completed successfully.
PS C:\Windows\system32> cscript slmgr.vbs /dlv
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 10.0.14393.0

Name: Windows(R), ServerStandard edition
Description: Windows(R) Operating System, VOLUME_KMSCLIENT channel
Activation ID: 8c1c5410-9f39-4805-8c9d-63a07706358f
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 03612-03776-000-000000-03-2067-14393.0000-2742016
Product Key Channel: Volume:GVLK
Installation ID: 088224353018413785580864401670255613166856076945328878763025446
Partial Product Key: KHKQY
License Status: Notification
Notification Reason: 0xC004F056.
Remaining Windows rearm count: 1001
Remaining SKU rearm count: 1001
Trusted time: 30/09/2016 12:56:01
Configured Activation Type: All
Please use slmgr.vbs /ato to activate and update KMS client information in order to update values.


PS C:\Windows\system32>

 

Advertisements

powerEMC PowerShell module for EMC products

We use various EMC products: VPLEX, VNX and Recoverpoint

My biggest annoyance with these is the lack of a common CLI, let alone a PowerShell module.

I created a module, a work in progress.

You can download it at https://github.com/pdpelsem/powerEMC

VPLEX is based on the REST api

VNX is a unisphere wrapper

Recoverpoint is based on a plink wrapper.

Just save the powerEMC base folder in your modules folder.

Import-Module powerEMC

$CredVplex  = Get-Credential #your vplex service account
$CredVNX = Get-Credential #your vnx sysadmin account
$CredRPA = Get-Credential #your Recoverpoint admin account

... more later

 

 

 

IIS 8.5 Enable Automatic Rebind of Renewed Certificate via command line

IIS 8.5 has the following new feature:

http://www.iis.net/learn/get-started/whats-new-in-iis-85/certificate-rebind-in-iis85

To enable this via the command line do the following.

  • On one IIS 8.5 server enable the feature via the IIS Manager as in the above link.
  • This creates a Scheduled Task :\Microsoft\Windows\CertificateServicesClient\IIS-AutoCertRebind
  • You can export this task as an xml file:

schtasks.exe /query /xml ONE -tn “\Microsoft\Windows\CertificateServicesClient\IIS-AutoCertRebind” > IIS-AutoCertRebind.xml

  • Now on any IIS 8.5 server we can enable the automatic rebind feature by importing this scheduled task:

schtasks.exe /create /xml IIS-AutoCertRebind.xml -tn “\Microsoft\Windows\CertificateServicesClient\IIS-AutoCertRebind”
SUCCESS: The scheduled task “\Microsoft\Windows\CertificateServicesClient\IIS-AutoCertRebind” has successfully been created.

  • When you check in IIS Manager you will see that the feauture is now Enabled