Windows 10 – CURL Protocol "’https" not supported or disabled in libcurl Error

August 6, 2019

Lately I had to use the CURL command line tool to debug a Web Service Endpoint connection.

But every time I ran this I got this Error message ?

Note: Unnecessary use of -X or –request, GET is already inferred.
* Protocol “‘https” not supported or disabled in libcurl
* Closing connection -1
curl: (1) Protocol “‘https” not supported or disabled in libcurl

image

Actually this Error is putting you on the wrong leg !

It’s nothing to do with unsupported protocol but rather with wrong command line formatting.

In the windows version of CURL, you need to enclose the command with double quotes, instead of single quotes.

This will not work !

curl -v -u your.name@mysite.com:password -X GET 'https://webservices.com/api/?query="priority:3"'


SOLUTION :

So you need to start and end with double quotes !

But this will give an other issue where the query string needs double quotes as well ? Sad smile

This is how it should look :

curl -v -u your.name@mysite.com:password -X GET "https://webservices.com/api/?query=%22priority:3%22"

Where you replace the double quotes in the Query string with the URL encode version being %22 Smile

Enjoy!


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 Server 2016 – Application Errors after a P2V conversion Event ID 1000 Error

October 30, 2018

After converting a Physical server to a VM, I got a lot of Application Errors 1000.

Looking at the details it was relating to, amongst others, HP related drivers and software

Example : This error shows it is trying to reach a Tape device which is not present in a VM…

image

SOLUTION :

First uninstall all hardware drivers that are not needed in the new VM.

1. Open CMD with admin privileges and run this command

set devmgr_show_nonpresent_devices=1

2. Next run this command

devmgmt.msc

And go to VIEW, select SHOW HIDDEN DEVICES

image


3. Make backup of your VM

Before going to next step MAKE SURE you have a good backup of the current SYSTEM STATE

4. Expanded list

Look at all the GREYED out devices and UNINSTALL these Software and Drives

image

5. Uninstall COM Objects

From the Event Viewer Error I could see we where dealing with a COM related DLL

Use WBEMTest.exe to investigate if the COM Object is still in use.

image

In my case I was sure it would not be needed since the HW was not available anymore

Look for the COM DLL : HPWMITape.dll


image

Run the uninstall command :

regsvr32 /u HPWMITape.dll

Enjoy !


PowerShell – Using PoSH SSH Module to shutdown a Synology NAS

October 29, 2018

 

Shutting down a Synology NAS has to be done using an SSH client. And using ROOT access.

SOLUTION :

This is how this is done using the famous PuTTY SSH client

Connect to your NAS

image

Once connected make sure you change to ROOT Access

This is done using this command :

sudo -i

image

Next enter : Poweroff

Of  course you can use Powershell to obtain the same result using the PoSH-SSH module.

See here for more info :

https://audministrator.wordpress.com/2017/10/21/powershell-using-posh-ssh-module-to-access-synology-nas/

Keep in mind that in order to run ‘sudo’ commands you need to use “Invoke-SSHStreamExpectSecureAction” command.

CLS

New-SSHSession -ComputerName NAS_IPAddress -Port ** -Credential (Get-Credential)
$stream = New-SSHShellStream -Index 0
Invoke-SSHStreamExpectSecureAction -ShellStream $stream -Command 'sudo -i' -ExpectString 'Password:' -SecureAction (read-host -AsSecureString) -Verbose
$stream.Read()

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!