Difference between Virtual and Physical Machine

May 11, 2017

Sometimes you need to know whether you connect to a Virtual or Physical Machine.

In order to know how you are going to manage the Backup strategy for these machines.

SOLUTION :

Easy by using the ‘SystemInfo’ command.

image

See the System Model Label …

Or use the GUI Version command : ‘msinfo32’

image

More options posted in this thread here.

Enjoy !


Installing VPN Service failed Event ID 7041 on Windows 2016

May 3, 2017

Installing the VPN service using the Add Roles and Features on a Windows 2016 Server failed Sad smile all the time …

In the Event Viewer we could see these events :

image

Event ID 7041 :

The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:
Logon failure: the user has not been granted the requested logon type at this computer.
 
Service: MSSQL$MICROSOFT##WID
Domain and account: NT SERVICE\MSSQL$MICROSOFT##WID
 
This service account does not have the required user right “Log on as a service.”
 

So the configuration manager could not install the local Windows Database, because lack of credentials to run as a service.

So basically it boils down to get the GPO adapted with the correct credential settings.

Solutions :

1. To edit this setting, open Group Policy Management and edit the Default Domain Policy (Or other policies if they are applied like in my case)

Navigate to Computer Configuration, Policies, Windows Settings, Security Settings, Local Policies, User Rights Assignments. 

Edit Log on as a service and add the following groups:

IIS_WPG
NETWORK
NETWORK SERVICE
SERVICE
NT SERVICE\ALL SERVICES

2. See here KB 2832204 :

  • Assign the Log on as a service user right to
  • NT SERVICE\ALL SERVICES in the GPO that defines the
  • user right.

Next Run gpupdate /force

image

Next REBOOT the server …

After this the Feature was installed successfully Smile

image

And you are ready to Configure the VPN Access.

Do not use the Server Management Dashboard

image

image

But use the manual configuration method instead.

image

3. Configuration :

Configuration of simple VPN Follow these Steps :

image

image

image

image

image

Also check the Firewall settings

image

image

Enjoy!


Download from PowerShell Gallery

May 3, 2017

 

Option 1 :

Use a system that has a PS 5.0 or higher and save it there.

Copy it over and install it on a PS 3.0 or 4.0 version.

Inspect

PS> Save-Module -Name SqlServer -Path <path>

Install

PS> Install-Module -Name SqlServer

clip_image002

Option 2 :

Install the GUI : PackageManagement PowerShell Modules Preview – March 2016

https://www.microsoft.com/en-us/download/details.aspx?id=51451

clip_image004


WebMatrix on IIS8 on Windows 2016

May 2, 2017

How to install Webmatrix on IIS8 using Windows Server 2016

 

1. You do not need to install anything relating to Webmatrix !

2. Install the IIS Server Role

image

Create a virtual folder and copy all the files / database and web.config in there.

image

PS :  You can’t run .cshtml in the root folder !

Because it has a forbidden handler settings for .cshtml extensions

image

Result will look like this :

image

 

3. Configure the IIS server for ASP.NET Razor

Optionally you can set the CLR 4.0 as 32 Bit integrated mode.

image

Select the Handler Mappings, next Advanced Settings and change the Application Pool from :

Default Application Pool to .NET v4.5

image

 

You don’t need to set ISAPI filters !!

image

And the Mapping handlers are already installed for .cshtml as well Smile

image

You are ready to test you webpage…

PS :  don’t forget to give READ / WRITE access to the Database folder location ! Winking smile

Success !!


Xperia Z3 Compact GPS Not Working

May 2, 2017

We encountered a Sony Mobile where the GPS was not working suddenly ?

So I was thinking that a recent software update was the root cause…

Next I went on the Forum to see if there are where more issues like that… and indeed quite a lot found Confused smile

Solution :

Go into service mode by just dialing : *#*#7378423#*#* and then into Service Tests, GPS, Purge

See steps described on the Forum GPS not working,

image

But still it did not work ! Sad smile

This simple setting fixed it !

Go to Location Settings :

Go to MODE and change to HIGH ACCURARY

image

image

Problem Fixed… Smile