13 December 2015

Workaround for tp-link tl-wa854re Access Point wifi extender network issue

For an unknown reason, my tp-link Wifi extender has suddenly stopped working.

In fact, it didn't find anymore the DHCP server, even connected to the root Wireless network.

In the network interface of a device connected to the AP I saw the following parameters obviously set by the AP as this was not in my home network range:
DHCP server : 192.168.0.254
DNS server : 192.168.0.254
Gateway : 192.168.0.254
So I've simply entered this ip address in a browser from a client device of the AP, using admin/admin as user and password and set a static ip address to the AP (in Network > LAN) and disabled the embedded DHCP server (in Network > DHCP settings).

13 November 2015

Can't connect to VMWare Server using vSphere client

If you are not able to connect to your VMWare Server using the vSphere client but you are sure that the VMWare server is up and running, try this :

If you have enabled the ssh service connect to the SSH console of the server and type :
services.sh restart
This will restart the services without stopping the virtual machines

12 November 2015

Use Internet Explorer on Windows 10

Simply launch the Execute dialog hitting the Windows + R keys at the same time and type:
iexplore
Then click on OK or push on ENTER 

28 August 2015

c# : programatically disable IIS AppPool Recycling

using System;
using System.Text;
using Microsoft.Web.Administration;
using System.Linq;

internal static class Sample
{
    private static void Main(string[] args)
    {
        using (ServerManager serverManager = new ServerManager())
        {
            foreach (var ap in serverManager.ApplicationPools)
            {
               ap.Recycling.PeriodicRestart.Time = TimeSpan.Zero;
            }

            serverManager.CommitChanges();
        }
    }
}

30 July 2015

Get access on your synology nas having ssh disabled without reset when you cannot bypass the Two-Factor Authentication

Few days ago, I couldn't connect to my synology backup NAS because I've reset my phone and therefore lost my Google Authenticator's data.
When I've tried to click the "Lost my phone" link, I got a message :
you have exceeded your emergency code limit
As this is a backup NAS, I've enabled only few services, i.e. not SSH.
And there is only one administrator account on this NAS.

I didn't wanted to reset my NAS and reconfigure all parameters.

Hopefully for me, rsync was enabled and I had another nas available with 2FA enabled also. So I've simply overriden the google_authenticator file using rsync.
That also lets me now to connect to my both NAS using the same code :)

Here is the command line :
rsync -avzh /usr/syno/etc/preference/admin/google_authenticator root@192.168.1.2:/usr/syno/etc/preference/admin/

  • 192.168.1.2 is the ip address of the NAS I wanted to get access
  • you have to use 'root' user, not 'admin'. And the password is the one set for 'admin' user

You can also simply get the google_authenticator file on your local computer using rsync the same way :
rsync -avzh root@192.168.1.2:/usr/syno/etc/preference/admin/google_authenticator .
You can then manually add an account in Google Authenticator.

If you want to delete the file on the NAS in order to be able to connect without 2FA:

  • download the whole directory (/usr/syno/etc/preference/admin/) on your local computer using rsync
  • delete the google_authenticator file on your local computer
  • upload the directory back on the server using the flag --delete on rsync

13 July 2015

Allow ALT+CTRL+DEL on Windows Logon Screen with LogMeIn on servers protected by Eset File Security

The HIPS module does not allow LogMeIn to use ALT+CTRL+DEL on the Windows Logon Screen on the server version of Eset Antivirus (called Eset File Security).

You may simply disable the HIPS functionality but that requires a server reboot and that let your server with a weaker protection. Or you can follow those steps :