Monthly Archives: August 2012

HAL_INTIALIZATION_FAILED for Windows 8 and 2012 with VMware ESXi 5

HAL_INTIALIZATION_FAILED for Windows 8 and 2012 with VMware ESXi 5

My Windows 8 and 2012 server installation failed with error message “HAL_INTIALIZATION_FAILED ; Your PC run into a problem and needs to restart…” as described in the below attached image. I was trying to install both Operating systems as a new virtual machine in VMware ESXi 5 server. The ISO image was once again downloaded from Microsoft website to avoid any sort of ISO corruption, but the actual cause for the issue is not the ISO corruption, it was due to a BUG in VMware ESXi 5 server. And VMware have released a patch ESXi500-201112001 to fix the problem.

clip_image001

To override the HAL_INTIALIZATION_FAILED error, we need to patch the VMware ESXi 5 server to allow us to install Windows 8 or 2012 operating system. The patch ESXi500-201112001 is available for download from VMware patch download website.

The following steps are performed on ESXi 5 to resolve the HAL_INTIALIZATION_FAILED situation.

1. First of all SSH communication to the ESXi 5 needs to be enabled.

2. Download the patch ESXi500-201112001.zip file from VMware.

3. Browse appropriate datastore to upload the file.

clip_image003[1]

4. Upload the ESXi500-201112001.zip file to a datastore.

clip_image005[1]

clip_image007[1]

5. Establish SSH connection to the ESXi 5 server using Putty.

6. Execute the command to patch the server,

esxcli software vib update –depot /vmfs/volumes/<dataStoreName>/<folderName>

clip_image009[1]

7. The VMware ESXi 5 is now accepting me to deploy the new Windows 8 and 2012 operating systems.

My VMware ESXi 5 server build version was changed from Build 469512 to Build 515841.

Before

clip_image011[1]

After

clip_image013[1]

Reference : VMware KB Article

Thanks,

Melbin Mathew

www.techiesweb.com

Copy Paste and Clipboard Not Working in Windows Remote Desktop Connection (RDP)

Copy Paste and Clipboard Not Working in Windows Remote Desktop Connection (RDP) to and from Local Computer/System

We feel easy to work if the copy paste facility is enabled in the Windows Remote Desktop Connection. The feature uses Windows Clipboard functions, this function need to be enabled while connecting with remote Windows computers.

Remote desktop connection allow two different ways of copy paste,

1. Content copy paste, where you can copy a file or folder directly to the remote desktop connection. This can be achieved by mounting of Local Hard Drives to the remote Windows system.

Go to Windows -> Run -> mstsc.exe -> Local Resources -> More -> Check the Local drives

clip_image002

2. Copy paste of clipboard contents, where you can copy a content (notepad text) from and towards the through Windows remote desktop connection. This function works with the Clipboard feature of the remote desktop connection, the Clipboard need to be enabled from remote desktop connection before we connect to the Windows remote machine.

Go to Windows -> Run -> mstsc.exe -> Local Resources -> Check Clipboard

clip_image004

Cheers!!!

Melbin Mathew

www.techiesweb.com

How to Change the Network Adapter Priority in Windows to Help Website/Internet/VPN Access

How to Change the Network Adapter Priority in Windows to Help Website/Internet/VPN Access

Sometimes we may face a situation like, the website might not be accessible if the system is connected to a VPN or we may not able to access the websites hosted under VPN network, in such cases we can change the priority of the network adapters.

These are the steps followed in Windows Operation systems to change the priority of network adapters.

1. Close all the applications (Browsers, Outlook etc..) and disconnect if there any VPN connections.

2. Go to Window Start -> Run and type the command “ncpa.cpl”

image

This will open the control panel network connections manager.

3. Determine which network adapter we need to configure as high priority. All the bandwidth and website resolution will be consulted to the higher priority adapter than the lower prior ones.

image

In my case, “Local Area Connection” is my default adapter through which internet is connected to the system and other network adapter is used for various purposes like Cisco adapter for VPN connection, Wireless for connecting with wireless hub in home/office etc.

4. On the Network Connection window, hit the keyboard “ALT+T” simultaneously. The will display the advance network adapter options.

image

Select the Advance settings from the network connection manager. There we can change the network adapter settings.

5. Change the priority of the network adapter, set the system default adapter to the prior one than the other network adapters.

image

Choosing the Local Area connection to high priority will allow the application, browser etc. to contact internet as the first point of contact.

Cheers!

Melbin Mathew

www.techiesweb.com

How to record Windows 7 Default Speaker Audio/Sound and Convert it into a MP3 Format

How to record Windows 7 Default Speaker Audio/Sound and Convert it into a MP3 Format

I have faced several occasions to record the Windows default sound/audio, mostly I used to record sound from tutorials, radio, Adobe reader etc. The following steps help to enable the Windows 7 audio/sound recording,

The following steps will show how we can enable Window default Audio/Sound recording. 

1. To open the Audio/Sound control panel properties menu, we can use any of the below methods. These options enable us to open Windows 7 Audio/Sound control panel properties menu from Windows 7 control panel.

a. Go to Widows 7 Control Panel and Select Sound

clip_image002

b. We can also use Windows RUN command “mmsys.cpl sounds” or “mmsys.cpl” to open the Windows7 Audio/Sound control panel properties.

Go to Windows RUN and type the command “mmsys.cpl” and press enter key. System sound control panel properties will be opened before us.

clip_image004

c. The next method is by right click the volume controller and opens the recording option directly from Windows task bar.

clip_image006

2. Next step that we need perform is to enable the Stereo Mixing from the recording tab.

a. Right and select both options to show disabled and enabled devices,

clip_image008

b. Right Click Stereo Mix and enable.

clip_image010

c. Set the Stereo Mix as Default Device.

clip_image012

3. Go to Playback, enable Digital and set it as default device

clip_image014

4. Download MP3 Recorder software and record the Window default Audio/Sound recording. I used “Mp3myMp3” to record the Window default Audio/Sound. We need to change the recording device from recording software to Windows Stereo Mix

clip_image016

Let me know your valuable feedback.

Cheers!!

Melbin Mathew

www.techiesweb.com

Forfiles.exe Command Usage in Windows

Forfiles.exe Command Usage in Windows

Forfiles is a powerful Windows command utility that a Windows system Administrator need to know for his daily Administration works. The command is available at C:\Windows\System32>forfiles.exe path for the latest versions of Windows operating systems (Windows 7, 2003, 2008 etc). The tool is included in Windows 2000 support tool packages and can be used for Windows XP operating system as well.

Forfiles.exe is Available here for Download.

The command is very useful to delete older files with respect the creation date.

Following are the different switches and its options.

FORFILES [/P pathname] [/M searchmask] [/S]
         [/C command] [/D [+ | -] {MM/dd/yyyy | dd}]

Description:
    Selects a file (or set of files) and executes a 
    command on that file. This is helpful for batch jobs.

Parameter List:
    /P    pathname      Indicates the path to start searching.
                        The default folder is the current working
                        directory (.).

    /M    searchmask    Searches files according to a searchmask.
                        The default searchmask is '*' .

    /S                  Instructs forfiles to recurse into
                        subdirectories. Like "DIR /S".

    /C    command       Indicates the command to execute for each file.
                        Command strings should be wrapped in double
                        quotes. 

                        The default command is "cmd /c echo @file".

                        The following variables can be used in the
                        command string:
                        @file    - returns the name of the file.
                        @fname   - returns the file name without
                                   extension.
                        @ext     - returns only the extension of the
                                   file.
                        @path    - returns the full path of the file.
                        @relpath - returns the relative path of the
                                   file.
                        @isdir   - returns "TRUE" if a file type is
                                   a directory, and "FALSE" for files.
                        @fsize   - returns the size of the file in
                                   bytes.
                        @fdate   - returns the last modified date of the
                                   file.
                        @ftime   - returns the last modified time of the
                                   file.

                        To include special characters in the command 
                        line, use the hexadecimal code for the character
                        in 0xHH format (ex. 0x09 for tab). Internal
                        CMD.exe commands should be preceded with
                        "cmd /c".

    /D    date          Selects files with a last modified date greater
                        than or equal to (+), or less than or equal to
                        (-), the specified date using the
                        "MM/dd/yyyy" format; or selects files with a
                        last modified date greater than or equal to (+)
                        the current date plus "dd" days, or less than or
                        equal to (-) the current date minus "dd" days. A
                        valid "dd" number of days can be any number in
                        the range of 0 - 32768.
                        "+" is taken as default sign if not specified.

    /?                  Displays this help message.

Examples:
    FORFILES /?
    FORFILES  
    FORFILES /P C:\WINDOWS /S /M DNS*.* 
    FORFILES /S /M *.txt /C "cmd /c type @file | more"
    FORFILES /P C:\ /S /M *.bat
    FORFILES /D -30 /M *.exe
             /C "cmd /c echo @path 0x09 was changed 30 days ago"
    FORFILES /D 01/01/2001
             /C "cmd /c echo @fname is new since Jan 1st 2001"
    FORFILES /D +8/3/2012 /C "cmd /c echo @fname is new today"
    FORFILES /M *.exe /D +1
    FORFILES /S /M *.doc /C "cmd /c echo @fsize" 
    FORFILES /M *.txt /C "cmd /c if @isdir==FALSE notepad.exe @file"

Thanks,

Melbin Mathew

www.techiesweb.com &

www.talk2melbin.com

How to Delete Files That Are Older Than X Days and Months From Windows

How to Delete Files That Are Older Than X Days and Months From Windows Using ForFiles Commands

It would be very difficult to list 2 million files (for example logs from an application) from a single Window folder and when we try to list or load all the files then it will increase the server load. The performance of the application that depends on the folder will degrade.

To delete or remove files that are older than x days, we need to use ForFiles command that is available on Windows from C:\Windows\System32>forfiles.exe path. The command need to run as Administrator.

Be careful about what you are doing.

LIST FILES

Syntax to LIST older files than X Days and Months using ForeFiles.exe

C:\Windows\System32>forfiles.exe /P <path> /D -<MM/dd/yyyy> /C "cmd /c echo @fname @fdate”

Display files that are older and equal to 8/8/2012

Eg: C:\Windows\System32>forfiles.exe /P C:\temp /D 8/8/2012 /C "cmd /c echo @fname @fdate”

(-), indicate less than or equal to the specified date.

(+), indicate greater than or equal to the specified date

Syntax to LIST older files than x Days using ForeFiles.exe

C:\Windows\System32>forfiles.exe /P <path> /D –<days> /C "cmd /c echo @fname @fdate”

Display files that are older and equal to 90 days

Eg: C:\Windows\System32>forfiles.exe /P C:\temp /D 90 /C "cmd /c echo @fname @fdate”

(-), indicate less than or equal to the specified date.

(+), indicate greater than or equal to the specified date

DELETE FILES

Syntax to DELETE older files than X Days and Months using ForeFiles.exe

C:\Windows\System32>forfiles.exe /P <path> /D -<MM/dd/yyyy> /C "cmd /c echo @fname @fdate”

Delete files that are older and equal to 8/8/2012

Eg: C:\Windows\System32>forfiles.exe /P C:\temp /D 8/8/2012 /C "cmd /c del”

(-), indicate less than or equal to the specified date.

(+), indicate greater than or equal to the specified date

Syntax to DELETE older files than x Days using ForeFiles.exe

C:\Windows\System32>forfiles.exe /P <path> /D –<days> /C "cmd /c del”

Delete files that are older and equal to 90 days

Eg: C:\Windows\System32>forfiles.exe /P C:\temp /D 90 /C "cmd /c del”

(-), indicate less than or equal to the specified date.

(+), indicate greater than or equal to the specified date

 

Thanks,

Melbin Mathew

www.techiesweb.com