Author: kimconnect

PowerShell: How to Replace a System File – For Experimentation Purposes

# When attempting to rename a system protected file such as notepad.exe $notepadExe='C:\Windows\system32\notepad.exe' $newNotePadExe='C:\Users\rambo\Desktop\notepad.exe' rename-item…

Enabling Unix Newline ‘LF’ Support for Windows 10 Version 1706 or Higher

Please note that the following PoSH commands won't work on earlier versions of Windows (e.g.…

PowerShell: Check File Encoding UTF7, UTF8, UTF16, UTF32, ASCII

$filePath='C:\Windows\System32\Drivers\etc\hosts' function getFileEncoding($filePath) { # Checking the byte order mark (BOM) or first 4 bytes…

How to Set Default UTF-8 encoding for New Notepad Documents When Saving File

Part 1: Set Default UTF-8 encoding for New Notepad Documents When Saving File for Legacy…

Microsoft Dynamics 365: System Administrator Profile Corruption Problem

Symptoms: Field Security Profile Does Not List Enabled Custom Fields Certain forms would show a…

PowerShell: Rebooting a List of Computers

Recommended Method to Process a List of Computers: $computernames='web01','web02','web03' restart-computer -computername $computernames -force -wait Get-WmiObject…

Installing ScreenConnect Client on Ubuntu 20.04

Installation: # CLI installation method after setup file has been downloaded sudo apt install default-jre…

How to Enable XRDP Session Sharing

# Edit the xrdp init file sudo vim /etc/xrdp/xrdp.ini # Add this at the bottom…

Linux: Init Process in the Background and Detach

# Define program program=remmina # Method 1 nohup $program & # Method 2 $program &…

How to Fix a Broken Ubuntu Upgrade

Sometimes, a power failure or manual interruption during a Linux OS upgrade can render the…

How To Create a 64-bit Linux Bootable USB Thumb Drive with 32-bit UEFI Compatibility

Part 1: Making the USB Booting Thumb Drive Download Rufus: https://rufus.ie/ Download Linux ISO -…

A Simple Home Network Setup Using SonicWall & Ubiquiti Equipment

Overview: Internet Service Providers would terminate their wiring at the customer premise equipments (CPE) as…

How to Install Ubiquiti Unifi Controller on Ubuntu 20.04

I have a scenario where an existing Unifi controller has been running on a Windows…

Ubuntu 20.04 Initial Setup

Basic Setup: # Set hostname and ip nmtui # remember to deactive/reactive a connection after…

Random Notes about WSUS

#Install the PowerShell Windows Update module $checkModule=Get-Module -ListAvailable -Name PSWindowsUpdate if(!($checkModule)){ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #…

How to Install Secured Shell SSH on Windows

# Windows 10 & Server 2019 # Install the OpenSSH Server Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0…

Linux: How to Display the SSL Certificate of a Remote Server URL

Command: server=test.kimconnect.comecho | openssl s_client -showcerts -servername $server -connect $server:443 2>/dev/null | openssl x509 -inform…

PowerShell: Test LDAPS Connection

Function testLdap { [CmdletBinding()] Param( [Parameter(Position=0,ValueFromPipeline=$true)]$dcs=$($ENV:LOGONSERVER -replace '\\',''), [Parameter(Position=1,ValueFromPipeline=$true)]$port='636' ) $ErrorActionPreference = "Stop" $results =…

Explorer: Can’t connect securely to this page – GoogleChrome: This site can’t be reached

Symptom: Test Site: https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2F&emr=1&followup=https%3A%2F%2Fdrive.google.com%2F&ifkv=ARpgrqdWOPosYfd4Jy3FsLv7iFkQq-EqxoTQtHu9eAzFomc8wIN9kPxsLLmDLvUmlVsSSWCPimVg_Q&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-1724044505%3A1728052151359801&ddm=0 Internet Explorer: Can't connect securely to this pageThis might be because…

PowerShell: 1-Liner to Restore All Windows 10 Default Apps

Issue: A user has complained that many of the default Windows applications such as the…