Windows 10 – Reinstall Windows OS using HP Cloud Recovery Tool

February 22, 2019

First check here if your device is listed for a Cloud Recovery of your OS

https://ftp.hp.com/pub/caps-softpaq/CloudRecovery/crsupportedplatform.html

What you need is a USB drive of minimum 16Gb, and the serial number of the HP device.

Download the tool :

Download Cloud Recovery Client


Solution :

Follow these steps, to create the W10 USB bootable flash drive installer.

Select Download tool now, and select Run.
If you agree to the license terms, select Accept.
On the What do you want to do? page, select Create installation media for another PC, and then select Next.
Select the language, edition, and architecture (64-bit or 32-bit) for Windows 10. You want 64 bit.

Select which media you want to use:
USB flash drive.  Plug in a blank USB flash drive with at least 8GB of space. Any content on the flash drive will be deleted.

image

Once Finished you see that OS installation and drivers (Optional) on the bootable pen drive.

IMPORTANT :

1. Delete WIM’s

After completion it leave a copy of the WIM files on your %localappdata% Directory.

image

So best delete it afterwards, because it is a lot of GB’s waste…

Now that you have the bootable USB drive you can install the OS on your device.

2. BIOS Changes

It might be necessary to disable SECURE BOOT in the BIOS,

in order to start the computer using recovery media.

1. Go to System configuration / Boot Options

image

2. Use the down arrow key to select Secure Boot, press Enter,

and then use the down arrow key to modify the setting to Disable and press Enter.

3. Use the arrow keys to select Legacy Support and press Enter,

and then use the arrow keys to modify the setting to Enable and press Enter.

4. Press F10 to accept the changes and exit or use the left arrow key to select the Exit,

use the down arrow key to select Exit Saving Changes and then press Enter to select Yes.

5. The Computer Setup Utility closes and the Operating System Boot Mode Change screen displays,

prompting you to confirm the Boot Options change. Type the code shown on the screen,

and then press Enter to confirm the change.

6. The Computer Setup Utility closes and the computer restarts.
7. Turn the computer off and try to boot from the Recovery media.

Enjoy!


Windows 10 – User Profile Service Event ID 1534 Error

December 27, 2018

You might run into the User Profile Service Event ID 1534 Error.

Spamming your Event Viewer log, like this …

image

GUID refers to the tileobjserver and probably tiledatasvc.

It seems that tiledatasvc was removed in 1809 Upgrade. The removal of the Reg Keys is manual clean-up going forward.

 

Solution :

Open the registry and go to :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileNotification\TDL

Check the GUID in the the CLSID Reg Key

 

image

Next go to :

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\ProfileNotification

 

image

 

Export these TLD Keys and next DELETE it.

Reboot the PC and check again.

 

Success !


Windows 10 – New SSD Disk use MBR or GPT Initialization ?

December 26, 2018

I’ve got hold of a new SamSung 860 EVO 1 TB SSD disk.

 

image

This disk is lightning fast up to 6 Gbps internal speed.

While this disk can be used to replace 2.5” internal disks.

 

You can buy a SATA III to USB connector, so you can use it as an external SSD HDD.

image

Once connected, you will need to go to the Disk Management

And you will see the unallocated disk of 1 TB SSD in my case.

image

It will bring up the popup to Initialize the Disk

You will need to choose between MBR or GPT ?

 

MBR is the old fashed Master Boot Record standard that dates back from the DOS ages.

So best choose the new GPT option that is also compatible with Linux and Apple… Winking smile

 

Success !


Windows 10 – DotNet Development NO Visual Studio

October 16, 2018

Recently I needed to develop an VPN Builder for Windows 7 for the L2TP protocol.

To automate the VPN entries on the client and to hide the Private Shared Key for the user.

 

PowerShell can do this…  But does not support the cmdlet Add-VpnConnection onWindows 7

It is only available for Windows 10 Sad smile

 

SOLUTION :

1. Download the DotRas Library from the Nuget site

https://www.nuget.org/packages/DotRas.for.Win7/

image

Tip : Winking smile

When you have saved the .nupkg package you can just open this using 7-Zip

image

Extract the nice documentation file DotRas.chm that is included.

image

And extract the DotRas.dll (for your appropriate .Net version 2.0 or 4.0)

In my case I used the DotNet 2.0 version

 

2. VB.Net Source code

On the net you can find relevant source code to build your application for L2TP, if you want to have a head start.

https://blog.cjwdev.co.uk/2011/05/19/automate-creation-of-an-l2tp-vpn-with-pre-shared-key-and-automatically-use-windows-credentials/

And modify to your own needs ….

 

3. Compile your application

You can use the commandline compiler VBC.exe that is part of your local DotNet installation on any Windows machine.

Or you can use my Visual Studio Light wrapper  Smile

 

%systemroot%\Microsoft.NET\Framework\v2.0.50727\vbc.exe /nowarn /nologo /quiet /debug- /t:Winexe VPN_L2TP_Builder.vb /r:DotRas.dll -out:VPN_L2TP_Builder.exe -win32resource:VPN.res

 

As you can see I needed to reference the DotRas.dll Assembly and I used the custom Resources to assing a custom ICON and File Properties.

See here on how to build a custom Resource file using Resource Hacker

 

4. Result

image

 

As you can see we don’t need 10 ton of software, just to build a simple functional DotNet Application Smile

 

Some extra tips for L2TP errors here  Winking smile

 

TIP : 

To avoid an “appcrash” you need to make sure that you compile it on the same OS as where the .EXE is going to be used !

In this case it is Windows 7 !

 

Enjoy!


Windows 10 – Quickly connect to a VPN

October 12, 2018

In Windows 10 it is a pain to quickly select a VPN connection. Especially when you have a long list of entries in there.

On top of the sort order does not always stay the same Sad smile

And most frustrating is, is that it is very slow…

SOLUTION :

Windows 7 and Up has a build in little tool called RASPHONE.exe

It is located in the System32 directory :

image

When you run it, it will quickly list all the entries to select from and connect to your relevant VPN server.

image

Once selected you can connect or change the properties …

image

All Windows VPN entries are automatically stored in your rasphone.pbk file located in the %Appdata\Microsoft\Network\Connections\Pbk folder

This little built in tool is lightning fast compared to the Windows 10 network settings…

 

TIP :

1. Pin this Tool to your taskbar and you are ready to go ! Smile

2. Here is an other freeware tool that can help you automatically reconnect when the connection drops

https://vpnmyway.wordpress.com/

 

Enjoy!


Windows 10 – SkypeForBusiness no micro sound

October 5, 2018

After Updating to the latest Windows 10 build, I did not have any sound going out using the built in Microphone of the laptop ?

First I thought I had to update the audio driver to the latest version…

 

So I did but no success Sad smile

 

SOLUTION :

I decided to use the Voice Recorder to test the sound

image

But there was a message saying that I had a Mic issue and needed to allow this audio first.

 

Go to Microphone Settings :

 

image

This will open the Microphone settings panel

 

image

Now make sure Skype is selected as allowed Microphone sound.

clip_image002

 

Solved Smile


Windows 10 – Running ASP.NET Core 2.0 on Mono

August 5, 2018

 

After installing Mono on Ubuntu using Windows 10 WSL, see here

You can start cross compiling you ASP .NET Core 2.0 Apps to run on Mono

 

1. Publush for Linux

Use this command : dotnet publish -r linux-x64 -c Release

image

2. Install DotNet Core on Ubuntu :

First in widows go to the project folder where you find the published project see step 1.

image

And start the WSL there. Open command prompt in that folder and run BASH

image

Run these commands to install .Net Core Framework on Mono :

curl https://packages.microsoft.com/keys/microsoft.asc | gpg –dearmor > microsoft.gpg

sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

sudo sh -c ‘echo “deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main” > /etc/apt/sources.list.d/dotnetdev.list’

sudo apt-get update

sudo apt-get install dotnet-sdk-2.1.3

 

3. Install and Configure Web Server Nginx

sudo apt-get install nginx

It runs on PORT 80 by default, so stop other windows webservers if needed.

image

next run this command :

sudo service nginx start

And test it by opening a browser in windows, you should see this webpage.

 

clip_image002

To stop the webserver run :

sudo service nginx stop

 

4. Configure nginx as reverse proxy server

 

Go in Windows to the Linux installation folder …

Open the file in Notepad++ and make the make the following changes in the DEFAULT file:

clip_image002[6]

C:\Users\xxxx\AppData\Local\lxss\rootfs\etc\nginx\sites-available

Change the default port from 80 to whatever you like, example 81

Comment out this line : #try_files $uri $uri/ =404;

Add this line proxy_pass line : proxy_pass http://localhost:5000;

 

image

You can also use the VI editor in Linux if you like this :

sudo vi /etc/nginx/sites-available/default

Now test the config changes are working :

sudo nginx -t

If you did not stop the server you can do a reload :

sudo nginx -s reload

 

6. Test the .Net Core App in WSL using Bash

Open Bash in the Published folder

clip_image002[8]

And TEST the Linux .Net Core application like this :

dotnet FirstMvc.dll

image

 

I get an error because the Linux is CASE Sensitive. So try again using the correct command.

And the SQL Database location is not found.

Because I started it not from the default folder location, which should be C:\CoreIoT\ASPnetRazorSQLiteWsAPI\Data

 

image

But all runs well, so the .NET Core App is a try cross platfrom framework Smile

Enjoy!