Skip to main content

Posts

Showing posts from August, 2023

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values."

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values." I tried to install Windows Terminal using the command below - C:\>winget install Microsoft.WindowsTerminal But got the following error message instead. Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values. The following packages were found among the working sources. Please specify one of them using the --source option to proceed. Name Id Source ------------------------------------------------- Windows Terminal Microsoft.WindowsTerminal winget Reason: This is normally caused by SSL inspection used in enterprise environments. Workaround: C:\>winget settings --enable BypassCertificatePinningF

Minimal OPC UA client that auto generates self signed certificate on startup in C#

Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates self signed certificate auto generation on startup. Pre-Req Visual Studio 2022 Community Edition ConsoleReferenceServer running in the another console Steps Using Visual Studio, create C# .Net 6.0 Application Add a nuget reference to OPCFoundation.NetStandard.Opc.Ua.Client Copy/paste code from gist below into Program.cs and run it Full working code can be found here .

OPC UA Read service using C#

OPC UA Read service using C# This is a sample bare bones OPC UA C# application performing a Read service. Pre-Req Visual Studio 2022 Community Edition Run sample ConsoleReferenceServer Steps Using Visual Studio, create C# .Net 6.0 Application Add a nuget reference to OPCFoundation.NetStandard.Opc.Ua.Client Copy/paste code from gist below into Program.cs Full working code can be found here .

Batch convert file line ending from Windows to Linux using Notepad++

Batch convert file line ending from Windows to Linux using Notepad++ Working on cross-platform project means you have to be careful with file line endings. If for some reason the files were not using the correct line endings Notepad++ can be used to do batch conversion of the files. To do so, open Find in Files (Ctrl+Shift+F) and use the following options: Find what: (\r\n) Replace with : \n Filters : *.* Directory : C:\Temp Search Mode: (o) Regular expression

ESXi 6.5.0 fails to start a VM with a message "Maximum virtual machines limit reached: ## (#### worlds)"

Maximum virtual machines limit reached: ## (##### worlds) ESXi 6.5.0 by default determines the maximum number of VMs dynamically at runtime. In certain scenarios this might be too conservative and you will not be able to start a virtual machine. If you are observing a message like below when starting a VM then you have hit the limit. Maximum virtual machines limit reached: ## (##### worlds). This behavior is controlled by VMkernel.Boot.maxVMs in Advanced settings . Change this to a value that might be reasonable based on CPU, memory and network capacity. The same setting can be changed from SSH shell like below: [root@localhost:~] esxcli system settings kernel set -s maxVMs -v 1024 Reboot the server for this change to take effect. Tag: ESXi