Blog

Install Apps on Remote Computers via WinRM & Chocolatey

Version A: [string[]]$computers=@( 'SERVER01', 'SERVER02', 'SERVER03' ) [string]$chocoAppName='pgadmin4' [version]$minVersion='6.0' $results=[hashtable]@{} foreach ($computer in $computers){ $session=new-pssession…

Active Directory Domain Accounts Security Hardening

1. Disable or rename Administrator account1a. Create an alternate service account1b. Discover where it's being…

WordPress PHP Fatal error: Maximum execution time of 30 seconds exceeded

Error: [Tue Oct 12 05:57:03.088314 2021] [php7:error] [pid 167] [client 172.16.90.64:39776] PHP Fatal error: Maximum…

How To Increase WordPress Memory Limit

It's are lesser known fact that WordPress overrides PHP's memory_limit settings. Thus, it is possible…

Kubernetes: Use Helm to Deploy WordPress

Deploying WordPress in a Kubernetes cluster isn't as straight-forward is one might expect. As the…

How To Hide Featured Image in Blog Posts in Single View

In WordPress, single posts can have a featured image to help with displaying in List…

Disable and Enable Sleep Mode on a Linux Workstation

The following commands would work on any Linux machine with SystemD (Ubuntu, Linux Mint, Redhat,…

Linux SMB Mount via Command Line Bash Shell

Install smbfs to include these functions smbmount smbunmount Here is a demonstration of smbmount to…

Linux: How To Repair Corrupted Zip File

kimconnect@linuxbox:/media/data/newPhotos $ zip -FF corrupted.zip --out fixed.zip Fix archive (-FF) - salvage what can zip…

How to Remove Windows Junk via GPO – Chat, Weather, Hello, Shopping

Download and install Administrative Templates (.admx) Windows 11 October 2021 Update [21H2] - https:// www.microsoft.com/en-us/download/details.aspx?id=103507…

Lightbox Javascript Contents

These JavaScript codes are open source and part of many applications, such as NextGen Gallery.…

Quick 1-liner to Get a User’s Group Memberships

PS C:\Windows\system32> Get-ADPrincipalGroupMembership kimconnect|select name name ---- Domain Admins Enterprise Admins Cloud Admins Kimconnect Admins

Linux: Copy File Contents Into Clipboard

Install XCLIP (if not already installed) sudo apt install xclip -y Reading package lists... Done…

How To Add JavaScript Functions into WordPress

Assuming that the 'Code Snippets' plugin has already been installed, here's a demonstration of adding…

WordPress Code Snippet Crashed My Site

Error Message: ParseError thrown syntax error, unexpected '$', expecting variable (T_VARIABLE) Resolution:1. If still login…

How to List All DNS Servers in a Domain

CMD Method: PS C:\Windows\system32> nslookup Default Server: dc02.intranet.kimconnect.com Address: 10.20.10.10 > set type=ns > intranet.kimconnect.com…

WordPress Plugin to Customize How Posts are Displayed

A. Install the 'Display Posts' plugin B. Install the 'Code Snippets' plugin C. Add this…

PowerShell: Set Windows Scheduled Task to Send a Pop-up Message

# Set variables $taskName='Bi-weekly Meeting Reminder' $time='11:50am' $daily=New-ScheduledTaskTrigger -Daily -At $time $everyOtherDay=New-ScheduledTaskTrigger -Daily -DaysInterval 2…

PowerShell: Rename Hyper-V Object and Clustered Role Resource

$oldName='testWindows' $newName='server01.intranet.kimconnect.com' # Rename Hyper-V Clustered Resource: Guess VM $vm=Get-clustergroup -Cluster (get-cluster).Name -Name $oldName $vm.Name=$newName…

PowerShell: Detect Microsoft SQL Version and Installed Location

function getSqlInfo{ $results=@() $instances=(get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances foreach ($i in $instances){ $p=(Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance…