mercoledì 9 aprile 2014

Create Hotspot for Android devices from Windows 7

I tried to create an adhoc wireless lan on my W7 to be used by my Android device, but I discoverd it was not able to connect to it, while other W7 machine was able..

Searching in internet I discovered this is a known issue.

But there is another way of creating a wifi connection to be used as hotspot:

create the network:
netsh wlan set hostednetwork mode=allow ssid=forandroid key=12345678

this created a new network in the control panel where the device name is something like
Microsoft Virtual WiFi Miniport Adapter

remeber it in case you need to share for example connections or create bridge.

start it:
netsh wlan start hostednetwork

from now on you would be able to connect to the "forandroid" network using password "12345678".
Probably this connection will be good also for iPhone and other devices but I didn't test it.

From the next reboot the network should be still there, you would just need to start it with the last command

if you are not able to configure it, try this command to check if your network device support hosted network:
netsh wlan show drivers

in the results search for "hosted network supported : yes/no"
if you have a "no" probably you'll not be able to configure it


lunedì 7 aprile 2014

VB.NET ESC button to close Form

It happened today that I was trying to close a form in a VB.NET application using the ESC key.
Usually if you have a Cancel button on the form or similar you can simply set the CancelButton property of the form to that button, but in my case I didn't have that button on the form nor I want to add one.

I tried using the KeyDown event, but, strange, pressing ESC or every other key didn't fire the event routine.

As I didn't have time to investigate and find out why it happened I preferred to search in internet for some easy and fast solution, I find one post from Adam Butler that worked,
it was in C# so I had to simply translate in VB.NET

here's the code to put in your form code to be closed:

Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
        If (keyData = Keys.Escape) Then
            Return True
        End If

        Return MyBase.ProcessCmdKey(msg, keyData)
    End Function

giovedì 3 aprile 2014

BCDBOOT failure when attempting to copy boot files (and an operating system wasn't found

If you, like me, tried to deploy Windows8 (maybe for 7 is the same) using a wim image and then used the command

bcdboot c:\windows

and you got the message "failure when attempting to copy boot files" probably you are in the situation I was.
I tried to solve using this command:

bcdboot c:\windows /s s:

(where S: is the small system partition) and apparently with success, but after rebooting the machine you got:

An operating system wasn't found. Try disconnecting any drives that don't contain any operating system.

after many unsuccesful test and many investigation, I arrived to the conclusion the issue is related to the UEFI support of the machine (also if when starting, it appears to be a normal BIOS)

so I solved the issue with the command :

bcdboot c:\windows /s s: /f ALL

that ALL means copy both the BIOS and UEFI files to the disk

Remember S is the system partition, not the partition containing windows files

mercoledì 5 marzo 2014

Origin login window not showing

Today I was trying to run Battlefield 3 but the only thing obtained was the small Origin icon in the bar and in the hidden icons area.

So I went to the log path to see what was going on :


In there all was looking fine until the last few lines:

  29     mar 5 12:16:15.851  Event     Origin::Client::LoginViewController::loadLoginPage                          6720      loadLoginPage[]
  30     mar 5 12:16:15.855  Event     Origin::Client::LoginViewController::validateOfflineWebApplicationCache     6720      Web application cache path: C:/Users/XXXXXX/AppData/Local/Origin/Origin
  31     mar 5 12:16:15.861  Event     Origin::Client::LoginViewController::show                                   6720      Show login window
  32     mar 5 12:16:17.103  Event     Origin::Client::LoginViewController::onUrlChanged                           6720      onUrlChanged: url = []

It seems to say something like "I'm showing the login window" ... unfortunately the login window is not visible so what's going on? Then an idea came in my mind... maybe some issue with the video card? with the drivers? with the screen resolution or something like that? Well, some investigation and I found the problem:

The desktop screen COLOR DEPTH! incredible uh?

first close origin from the icon, right click, close, then :

1. right click on the desktop, Screen resolution
2. click link "advanced settings"
3. click the button "list all modes" (don't know exactly the text, I'm translating from my language)
4. be sure to select a resolution with 16.8 million colors (32bit), click OK, APPLY, OK

Try to start battlefield (or Origin alone) again and see if solved.

Remeber this is only one of the possible issue Origin has to start, there are a lot , including firewall issues, antivirus issues and others.


martedì 4 marzo 2014

Disable Skype integration in (web mail)

do you hate the new Skype integration in like me?

For me Skype and the mails are two different things, I don't want to mix them up, if I want to chat or talk I open Skype, if I open is because I need to write or read some mail end of the story.

If you think like me, then this is what I did :

open the file


go to the end and insert this line:

this simply means, when sombody on this pc will search for the ip address of "" return the local ip address instead (

Save the file, the effect is immediate.

The effect of this is that when try to connect to that address (for skype integration) it will fail and no integration will be available, voilà problem solved

To be honest I'm just testing this now, so not sure if there is some coutereffect, but until now it seems good.
I also tried to start Skype client and it seems everything is working fine there.

If you want to get back to the original situation just open the file again and remove that line or comment it putting a # in front of the line and save the file.


venerdì 31 gennaio 2014

Vmware ESX 3.5 Virtual Center 2.5 client on 64bit OS

I know this is a little bit old topic, but there is still people around using Vmware ESX 3.5 version with Virtual Center 2.5 and it happens to change the management desktop to windows 7 64bit and discover that the client installed from the Virtual Center server is not supported on 64bit OS

Around in internet there are some articles with a workaround, but they are old and outdated, the solution is really simple, download the latest version of Virtual Center 2.5 (I found Update 6c) like a .ZIP file,
unzip it, you'll find in there the client setup, that one is working on 64bit clients :)

Here the link where I downloaded it (you need to be logged on the site to open it) :

domenica 19 gennaio 2014

WSUS computer not reporting status : Error 0x800b0001

WARNING: Digital Signatures on file C:\WINDOWS\SoftwareDistribution\SelfUpdate\Default\ are not trusted: Error 0x800b0001

This is the error I had in my c:\windows\WindowsUpdate.log while I was trying to get my XP computer updated by the WSUS Server I just installed.

After many time spent trying to fix the error in many way I discovered the problem was simply my WSUS server an old version while the XP machine was serching for a most recent WSUS.

So the solution was simply:

1. install WSUS 3.0 SP2 Over the previous WSUS 3.0 installation
2. install the WSUS patch: KB2720211
2. reboot the server

once the server was up and running:

3. on the client run this script (found in internet) :

net stop wuauserv /y
net stop bits /y
net stop cryptsvc /y

RMDIR /S /Q %systemroot%\SoftwareDistribution_Old
ren %systemroot%\SoftwareDistribution SoftwareDistribution_Old

regsvr32.exe c:\windows\system32\wuapi.dll /s
regsvr32.exe c:\windows\system32\wups.dll /s
regsvr32.exe c:\windows\system32\wuaueng.dll /s
regsvr32.exe c:\windows\system32\wucltui.dll /s
regsvr32.exe c:\windows\system32\msxml3.dll /s
regsvr32.exe c:\windows\system32\wuaueng1.dll /s
regsvr32.exe c:\windows\system32\wups2.dll /s
regsvr32.exe c:\windows\system32\wuweb.dll /s
regsvr32.exe c:\windows\system32\atl.dll /s

net start wuauserv /y
net start bits /y
net start cryptsvc /y

wuauclt.exe /resetauthorization
wuauclt.exe /detectnow
wuauclt.exe /reportnow

And after few minutes I seen my client asking me to install new updates, and on the WSUS server the pc appeared with its status. Problem solved :)