Thought of the Day

“A goal is a dream with a deadline.”

Napoleon Hill

Total Pageviews

Friday, November 10, 2017



How to fix RDS 2012r2 error: "Licensing mode for the Remote Desktop Session Host is not configured."






Solution



To fix the problem, run the following commands in powershell to set the licensing server properly on the rd session host using the WMI CIM provider:


$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting $obj. SetSpecifiedLicenseServerList("licserver.domain.local") Then, go into the registry and manually set the licensing mode: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core\LicensingMode You need to change the DWORD to 2 for Per Device or 4 for Per User.



Next, reboot the system. The changes made previously will report everything properly and the RDS host will now recognize the licensing configuration.



Unable to increase resolution to 2560 X1600



Issue: Unable to increase resolution to 2560 X1600



Cause: Less video memory configured in the virtual machine




Resolution:
1. Edit the vm configuration from vCenter,
2. Click on video memory calculator to check required video memory.
3. For 2560x1600 resolution you need to set 16MB video memory, it won’t be list in video memory calculator





Thursday, July 27, 2017

Cannot perform in-place upgrade from WS2012 / WS 2008R2 to WS 2012 R2

Cannot perform in-place upgrade from WS2012 / WS 2008R2 to WS 2012 R2

Issue:
Trying to upgrade from
Windows Server 2012 to Windows Server 2012 R2 The following occurs:
·         Copy install files to install directory on local system
·         Click Setup.exe.
·         UAC requires acceptance.
·         Windows Server 2012 R2 appears.
·         Click Install Now Button.
·         Message: "Setup is copying temporary files."
·         Message: "Setup is starting."
·         Splash screen reappears.
Cannot get beyond this to the wizard. Tried safe mode, tried from mounted ISO, tried from Install directory with setup files.
No indication of error in any Windows logs

Resolution

Environment: My 2012R2 ISO is mounted on D:, Windows system on C:.
Process: Open an Administrator command prompt and run the following command:
D:\Sources\setup.exe /HideWelcome /uilanguage:en-US /targetlanguage:en-US /runlocal

When prompted to check for updates, accept and continue. Setup will eventually fail but not before it has downloaded an updated setup.exe and supporting files to a handful of folders on C:. These updated files let me complete the installation

Run the same command again
C:\$WINDOWS.~BT\Sources\setup.exe /runlocal /BTFolderPath:C:\$WINDOWS.~BT /OSImagePath:"D:\Sources" /HideWelcome /uilanguage:en-US /targetlanguage:en-US

This time skip the updates and the install completed successfully

Thursday, July 18, 2013

VM will shows as powered off in VC, but you are able to ping and RDP to it.


One of the unusual issues.


Issue –   VM will shows as powered off in VC, but you are able to ping and RDP to it.
               If you reconfigure the system it will reflect in windows,

Cause – VMX will be locked with other hostname. (Vmotion failure may cause this)

Fix   –    Shutdown the OS from RDP and Power it on from VC.

 

Monday, March 4, 2013

ESX Host not booting properly

The problem was related to an abrupt reboot of the ESX host. This then caused the /boot partition to become corrupt.


I ran the following commands in ESX maintenance mode to fix /boot:

esxcfg-boot -p (reloads the PCI data)

esxcfg-boot -b (sets up boot information) esxcfg-boot -r (refreshes initrd)

Rebbot the server to normal mode.

Saturday, March 2, 2013

Configuring RDM's on VM Cluster Nodes.

Configuring RDM's on VM Cluster Nodes.

Add Hard Disks to the First Node for Clusters Across Physical Hosts


In an MSCS cluster, storage disks are shared between nodes. You set up a quorum disk and an optional shared

storage disk.

Prerequisites

Before you add hard disks to the first node, complete the following tasks:

 For each virtual machine, configure the guest operating system’s private and public IP addresses.

Ask your SAN administrator for the location of unformatted SAN LUNs. The hard disks you create in this

task must point to SAN LUNs.

NOTE Use RDMs in physical compatibility mode. The procedure below uses physical compatibility mode.

Procedure

1 In the vSphere Client inventory, select the newly created virtual machine and select Edit Settings.

The Virtual Machine Properties dialog box appears.

2 Click Add, select Hard Disk, and click Next.

3 Select Raw Device Mappings and click Next.

4 Select an unformatted LUN and click Next 5 Select a datastore and click Next.

This datastore must be on a SAN because you need a single shared RDM file for each shared LUN on the

SAN.

6 Select Physical as the compatibility mode and click Next.

A SCSI controller is created when the virtual hard disk is created.

7 Select a new virtual device node (for example, select SCSI (1:0)), and click Next.

NOTE This must be a new SCSI controller. You cannot use SCSI 0.

8 Click Finish to complete creating the disk.

The wizard creates a new SCSI controller and a new hard disk.

9 In the Virtual Machine Properties dialog box, select the new SCSI controller and click Change Type.

The Change SCSI Controller Type dialog box appears.

10 Select the appropriate type of controller, depending on your operating system.

Operating System Type of Controller

Windows Server 2003 LSI Logic Parallel

Windows Server 2008 LSI Logic SAS

11 Click OK.

12 On the Virtual Machine Properties dialog box, set SCSI Bus Sharing to Physical and click OK.

The virtual machine is connected to a public network and a private network with two virtual switches, and is

connected to the quorum disk on FC SAN and the virtual machine virtual disk on local or remote storage.

Add Hard Disks to the Second Node for Clusters Across Physical Hosts

To allow shared access to clustered services and data, point the quorum disk of the second node to the same

location as the first node’s quorum disk. Point shared storage disks to the same location as the first node’s

shared storage disks.

Prerequisites

Before you begin, obtain the following information:

n Which virtual device node is for the first virtual machine's shared storage disks (for example, SCSI (1:0)).

n The location of the quorum disk specified for the first node.

Procedure

1 In the vSphere Client inventory, select the second virtual machine that you created and select Edit

Settings.

The Virtual Machine Properties dialog box appears.

2 Click Add, select Hard Disk, and click Next.

3 Select Use an existing virtual disk and click Next.

4 In Disk File Path, browse to the location of the quorum disk specified for the first node.

5 Select Physical as the compatibility mode and click Next.

A SCSI controller is created when the virtual hard disk is created.

Setup for Failover Clustering and Microsoft Cluster Service

6 Select the same virtual device node you chose for the first virtual machine’s shared storage disks (for

example, SCSI (1:0)), and click Next.

NOTE The location of the virtual device node for this virtual machine’s shared storage must match the

corresponding virtual device node for the first virtual machine.

7 Click Finish.

The wizard creates a new hard disk and a new SCSI controller.

8 In the Virtual Machine Properties dialog box, select the new SCSI controller and click Change Type.

The Change SCSI Controller Type dialog box appears.

9 Select the appropriate type of controller, depending on your operating system.

Operating System Type of Controller

Windows Server 2003 LSI Logic Parallel

Windows Server 2008 LSI Logic SAS

10 Click OK.

11 Set SCSI Bus Sharing to Physical and click OK.

Tuesday, December 11, 2012

Killing a Windows service stuck in the STOP_PENDING state

Killing a Windows service stuck in the STOP_PENDING state


I ran into this issue when I attempted to restart the AdaptiveLogExporterService


Find below the steps to kill and restart pending service.


Example

C:\sc queryex AdaptiveLogExporterService



SERVICE_NAME: AdaptiveLogExporterService

TYPE : 10 WIN32_OWN_PROCESS

STATE : 3 STOP_PENDING

(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))

WIN32_EXIT_CODE : 0 (0x0)

SERVICE_EXIT_CODE : 0 (0x0)

CHECKPOINT : 0x2

WAIT_HINT : 0x1388

PID : 1124

FLAGS :

C:\taskkill /PID 1124 /F

SUCCESS: The process with PID 1124 has been terminated.

C:\sc start AdaptiveLogExporterService



SERVICE_NAME: AdaptiveLogExporterService

TYPE : 10 WIN32_OWN_PROCESS

STATE : 2 START_PENDING

(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))



WIN32_EXIT_CODE : 0 (0x0)

SERVICE_EXIT_CODE : 0 (0x0)

CHECKPOINT : 0x0

WAIT_HINT : 0x1388

PID : 4228

FLAGS :





SERVICE_NAME: AdaptiveLogExporterService

TYPE : 10 WIN32_OWN_PROCESS

STATE : 4 RUNNING

(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))

WIN32_EXIT_CODE : 0 (0x0)

SERVICE_EXIT_CODE : 0 (0x0)

CHECKPOINT : 0x0

IPSEC fails to start with Error 2: The system cannot find the file specified

IPSEC fails to start with Error 2: The system cannot find the file specified


Upon rebooting a Terminal Server that had resource issues, we could not log back into the server through RDP. We could log in through iLO, and it was apparent that the logins were working but they were very slow. Upon examining the services, we could see that the IPSEC service was not started.

Trying to manually start the service gave the following popup: "Could not start the IPSEC Services service on Local Computer. Error 2: The system cannot find the file specified." The event logs also showed that TCP/IP was in blocking mode.

Disabling the service and rebooting restored all network communication, but trying to start the service would drop all connectivity again and slow down the server. I found another article that said that IPSEC may need to be rebuilt. When I looked for the registry keys for IPSEC, they were not there. After I ran the following commands, the registry keys were populated, and IPSEC was able to run properly.

To rebuild IPSEC, follow these steps:

1. Click Start, click Run, type regedit, and then click OK.

2. In Registry Editor, locate and then click the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\IPsec\Policy\Local. (In my case, the server’s registry ended before IPsec. If this is the case, skip to step 6.)

3. On the Edit menu, click Delete.

4. Click Yes to confirm that you want to delete the subkey

5. Quit Registry Editor

6. Click Start, click Run, type regsvr32 polstore.dll, and then click OK.

http://support.microsoft.com/kb/912023

How can I tell if the Microsoft sysprep utility has successfully run on a Windows

How can I tell if the Microsoft sysprep utility has successfully run on a Windows Vista* operating system?




Solution



The easiest way to determine whether or not Sysprep has run is to check the following registry location on the client machine:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State.



In this location there will be an ImageState string value. If this value shows as IMAGE_STATE_COMPLETE, Sysprep has run successfully. If any other value is shown, sysprep has not run or has not run successfully.



Another option is to look for the unattend.xml file in C:\Windows\System32\Sysprep. (Sysprep comes installed by default in Windows Vista.) If this file has a current date and timestamp then there's a chance this file was updated during the imaging process. However, the first option is ultimately the best choice.

Step by Step Guide to Extend C drive on Windows 2000/XP/Vista with Acronis DD

Step by Step Guide to Extend C drive on Windows 2000/XP/Vista with Acronis DD


Suppose we have four partitions C: 10 gb, E: 40gb, F: 60gb G: 48gb. We need to redistribute the free space 10gb on F: to C:. We will shrink the F: to be 50gb and then move the unallocated 10gb next to C: drive and then we will extend the c drive with the unallocated 10gb.

Acronis offers the most stable and confidence while resizing the existing partitions. Acronis Disk Director Suite can resize, move, split, merge partitions without data loss. If you want to merge partitions, you can follow this tutorial: How to merge partitions to extend boot partition.

Here are the steps:

• You can download free copy of Acronis Disk Director Suite.

• Check the partition space in disk management before we use Acronis Disk Director Suite.



Run Acronis Disk Director Suite and choose the “Manual Mode”, the right click F: to resize



Put the cursor to the left part of F: and prepare to drag F: to shrink.



Resize F to produce 10gb unallocated space and then click OK.



Right click E to move.



Click unallocated space and then click “Next”to move E to the right part of the unallocated space.



It will automatically move E to the right part of the unallocated space and then click OK.



We can see the unallocated space is next to the C partition.



Right click C: drive to claim the unallocated 10gb.



Put the cursor to the right part of the C drive and prepare to claim the unallocated 10gb.



Drag C to the end of the allocated space to extend boot partition and then click OK.



Click the flag to commit all the operations to extend the c drive.



Click “Proceed” to confirm all the operations.



Operations are completed.



Check the extended C drive in disk management.



Followers