Buy Me a Coffee

Wednesday, October 26, 2016

windows activation failed on error 0x8007232b



When attempting to activate a volume-licensed copy of one of the followings: 

Windows 10 Pro or Enterprise
Windows 8.x Pro or Enterprise
Windows 7 Enterprise
Windows Vista Enterprise
Windows Vista Business
Windows Server 2012
Windows Server 2012 R2
Windows Server 2008
Windows Server 2008 R2

you may receive an error similar to the following:

Activation Error: Code 0x8007232b
DNS Name does not exist


Windows could not be activated.
Key management services (KMS) host could not be located in domain name system (DNS), please have your system administrator verify that a KMS is published correctly in DNS.
Error: 0x8007232b
Description:
DNS name does not exist.


In order to solve it:

  • Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for confirmation, type the password or provide confirmation.
After you've successfully opened the administrative command prompt, type the following command, and then press Enter:

slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Note The xxxxx-xxxxx-xxxxx-xxxxx-xxxxx placeholder represents your MAK product key.


source1: https://support.microsoft.com/en-us/kb/3166553
source2: http://www.dell.com/support/article/us/en/04/SLN249706

Tuesday, October 18, 2016

How to run a batch script on virtual machine using vmware tools



Here is an example of how to run a batch script on virtual machine using vmware tools.

in this example the batch script will query the "Remote Desktop Services" (TermService) service.


* you will have to download VMware PowerCLI

1. execute VMware PowerCLI.
2. Connect to the VC using the following command:
Connect-VIServer -Server %VCNAME% -User %USERNAME% -Password %PASSWORD%

3. Run the following via PowerCLI (Define the script which about to be executed).
 $script = 'sc query TermService'

4. Run the following via PowerCLI

Invoke-VMScript -Scripttype bat -ScriptText $script -VM $VMNAME$