At times I need a semi isolated Lab environment that will last for an extended period of time. Using Windows as an operating system I could fall back on using the evaluation version of the OS but wouldn’t it be cool if I could be using our corporate activation services for that? Luckily there’s a very easy way to get your machines activated, even when you run a lab environment. As most of you know Windows activation is accomplished by using the KMS service. It’s a service that uses anonymous RPC at port 1688. Being anonymous by nature is something we can take advantage of. To start using the corporate server you should do an inventory first. On your corporate network use the NSLookup utility to query for KMS entries.
nslookup -type=srv _vlmcs._tcp
If your environment contains KMS servers it will list something like this:
vlmcs._tcp.corp.contoso.com SRV service location
ms01.corp.contoso.com internet address = 192.168.10.100
Now you have the name and IP address of your corporate kms server, go to your lab setup and create a DNS service record in the
- Open the DNS management on your DNS server.
- Expand the DNS Zone.
- Right-click on the “_tcp” folder and select “Other” -> “New Records“.
- Select Service Location (SRV) as the new record type.
Fill in the following information for the new DNS record:
Service: _VLMCS Protocol: _tcp Port: 1688 Priority: 10 Host offering the service: kms01.corp.contos.com (or the IP address)
Go to your client or server and at an elevated command prompt type:
this will activate your machine. Use:
to see the activation status.