Windows 2012R2 – Interactive Services Detection Error: Incorrect Function

Today’s head scratcher? I encountered this error today when trying to restart a service on Windows Server 2012 R2. The service, which controls an application licensing feature, triggered the error:

The Interactive Services Detection service terminated with the following error: Incorrect function.

Huh. The fix? Open the registry. Browse to HKLM -> System -> CurrentControlSet ->Control -> Windows -> NoInteractiveServices. Change the DWORD value for NoInteractiveServices from 1 to 0. Try restarting the service that depends on Interactive Services Detection. You should be successful.

Advertisements

The Windows 10 VPN Client and IPv4 Settings

As soon as Windows 10 RTM was released, a large number of people at my company were asking to be upgraded. Unfortunately, we did not have time to troubleshoot all the potential issues we might encounter. One thing we discovered still lingering from the last preview build was that you cannot edit the IPv4 settings inside of a vpn profile.

We usually un-check the box under advanced IPv4 properties labeled “Use default gateway on remote network” so that employees can funnel internet access through their local gateway while connected to the company vpn. Hopefully, this will be resolved in a coming update or service pack.

In the meantime, we’re setting up vpn connections using Powershell. Here’s my script to add a vpn profile using MSCHAPv2 for authentication, SSTP as the vpn connection type, and enabling split tunneling (same as un-checking the default gateway box):

In PowerShell —

Add-VPNConnection -Name vpn connection name -ServerAddress vpn servername  -TunnelType SSTP -EncryptionLevel Optional -AuthenticationMethod MSChapv2 -SplitTunneling -AllUserConnection -UseWinLgonCredential -PassThru

There are many other vpn client cmdlets available to customize your connection. Visit: https://technet.microsoft.com/en-us/library/jj554820(v=wps.630).aspx to view a complete list.

Mac OSX Yosemite and .local domain names

After the release of Yosemite, Mac users in my company who updated to the new OS, noticed that they were unable to resolve .local domain names. This was especially an issue for those connecting over a VPN connection. For the Mac users on our domain, I always included the IP addresses of our DNS servers in their Advanced network settings. However to resolve the issue with name resolution, I now have to also add the name of the .local domain in the Search Domain box (as seen below).

Enter the name of your .local domain in each internet connection setting (ethernet, wifi,etc.) and any VPN connections you may also have setup. After applying the new entry, you will need to disconnect and re-connect to your internet and VPN connections. After reconnecting you should be able to resolve .local addresses.

SearchDomain2

MySQL Error – “The partition with /var/lib/mysql is too full”

Have you encountered this error when trying to start MySQL on your Linux server? Turns out all you need to do is sudo.

Initially, I used this to start MySQL server: /etc/init.d/mysql  start

I encountered the error: “The partition with /var/lib/mysql is too full”

Then I put sudo in from of my statement : sudo /etc/init.d/mysql start

MySQL starts successfully.