Blog

AWS Quick Notes

0. Identity Access Management - IAM is AWS service to centrally manage login credentials: users,…

Linux Cheat Sheet

Below is a quick reference to the most useful commands and techniques for a Linux…

HPe Nimble Storage & Microsoft Failover Cluster with Fileserver Roles

Overview: Microsoft Fail-over Clustering is often deployed in conjunction with SAN storage. In this scenario,…

Cisco Fabric Switch – MDS Zoning Template

<# What this script does: 1. Checks to see if an Internet connection via PowerShell…

Cisco VSAN: MDS Zoning Configuration for ESXi Host – Step by Step

Step 1: gather information A. VSAN Nodes Each site shall have two sets of MDS…

Configuring Virtual Storage Area Networks (VSANs)

NX-OS Overview Source: Storage Area Network (SAN) has been around for ages. During the early…

Fiddler: A HTTPS Debugging Tool

An application support specialist would find this tool useful to intercept HTTPS traffic on a…

Linux: How to Convert HEIC to JPEG

First, install certain utilities: sudo apt-get install libheif-examples Second, navigate to a directory where there…

Long Boot Time Caused by “Scanning for BTRFS file system”

More info about swap files: here Step 1: turn off quiet boot to observe the…

How To Link Containers Using Docker Compose

This yields several advantages:1. Direct linking between containers is architectually efficient to direct traffic between…

Linux: how to bypass login keyring prompts

Error Message:  Something along the line of 'keyring default keyring but it is locked' Resolution:…

Linux: how to make automounts persistent

# Step 1: discover the device using its current mount path mountPath=/media/kim/Data findmnt | grep…

How to Install Brother Printer on a Linux machine (Debian, Ubuntu, Mint)

Below is an example of the installation sequence using a known driver URL: $ wget…

PowerShell: Set Auto Logon

Instead of running the GUI method (netplwiz), there's a more efficient way to set auto…

PowerShell: Maintain Windows Services Remotely via WinRM

# maintainServices.ps1 # FQDN of each computer name (required) $computerList=@' testWindows.intranet.kimconnect.com testWindows.dmz.dragoncoin.com '@ $serviceNames=@( 'windows_exporter',…

PowerShell: Kill a Windows Service Forcefully

# killService.ps1 $serviceName='vmms' function killService($serviceName='Spooler',$restart=$false){ $processId=Get-WmiObject -Class Win32_Service -Filter "Name LIKE '$serviceName'"|Select-Object -ExpandProperty ProcessId if($processId.count…

How to Install PowerShell Module on An Offlined Computer

# Download the desired module onto a 'jump host' (an intermediary computer that has access…

PowerShell: Uninstall Program Using Its Name

# uninstallProgramUsingId.ps1 $appName='Virtual Machine Manager Agent' $uninstallStringRegPaths='HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall','HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall' $uninstallStrings=Get-ChildItem -Path $uninstallStringRegPaths $uninstallString=($uninstallStrings|Get-ItemProperty|Where-Object {$_.DisplayName -match $appName}).UninstallString if($uninstallString.count…

PowerShell: Get Connected Port by Process Name

# getProcessConnectionPort.ps1 $computerlist=@' SQL1 SQL2 '@ $computernames=@($computerList -split "`n")|%{$_.Trim()} $processname='sqlservr' $state='Established' $results=@() foreach ($computername in…

PowerShell: Quickly Test Connectivity from a List of Sources toward a Destination on a Specific Port

# testRemotePort.ps1 $connectFrom=@' windows1 windows2 '@ $connectTo=@' \\servername\sharename '@ $testPort=445 $sources=@($connectFrom -split "`n")|%{$_.Trim()} $destinations=@($connectTo -split…

How To Recover SQLSERVER Service from Being Unable to Start

# startSqlService.ps1 # special provision to deal with SQL Server not starting up due to…

PowerShell: How to Change Guest VM Names in Virtual Machine Manager

# changeGuessVmNameInVmm.ps1 # The following script prepend all VM's matching certain pattern # This is…

Resume All Guest VMs in a Clustered Hyper-V Environment

# resumeAllVms.ps1 # Significance: this script is useful in a Clustered Hyper-V environment # where…

PowerShell: Command to Retrieve Windows Applications List

The following the the PoSH equivalent of appwiz.cpl in Windows: PS> invoke-command TestWindows {Get-Package -Provider…