Blog

Linux: How to Change IP Address of CentOS 8 Machine

# Check the network interface config files ls /etc/sysconfig/network-scripts [cuilo@web02 ~]$ ls /etc/sysconfig/network-scripts ifcfg-ens192 #…

Linux: How to Change Hostname

There are 3 methods:1. hostnamectl command : using systemctl (recommended and shown at the bottom…

Useful Ubuntu Settings for VNC

# Disable screensaver Ubuntu (Gnome) gsettings set org.gnome.desktop.screensaver lock-enabled false # Purge screensaver and update…

Remote Desktop Service Optimizations

Optimize RDP user experience:---------------------------------------------------gpedit.msc > Computer Configuration > Policies > Administrative Templates > Windows Components…

PowerShell: Send Email Notifications to Computer Users Before Maintentance

# sendEmailToUsers.ps1 # Query Active Directory for computers running a Server operating system #$targetServers =…

Hyper-V: How to Convert IDE to SCSI on a Guest VM

Plan A: 1. Clone the existing Guest VM as a full backup2. While having target…

PowerShell: How to Create Multiple Arrays or Columns from an Array

# This snippets scans the localhost for common ports and outputs 4 arrays $limitPorts=10000 $netstat=netstat…

Google G Suite Administrators (GAM) Useful Commands

Install Google GAM if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12Set-ExecutionPolicy Bypass -Scope Process -Force;…

PowerShell: Inter-Domain SMB Shares Mounting

# interDomainFileCopy.ps1 # Note: this is a quick and dirty method. Password security must be…

PowerShell: Get Users and Computers Inside an OU

# getUsersAndComputersInActiveDirectory.ps1 $ouName="Test OU" $ouPath = "ou=$ouName,dc=kimconnect,dc=yoyo" $csvExportFile = 'c:\data\users_in_ou_$ouName.csv' $users=Get-ADUser -Filter * -SearchBase $ouPath…

PowerShell: Detect Whether Computer is Connected To Domain

# The easy method $domainConnected=.{ try { [void]::([System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain()) return $true } catch{ return $false }…

How to Migrate AP From One Controller to Another

Option 1: Backup the configs of the old controller Restore the configs to the new…

How to Install Chrome on Ubuntu 20.04

Ubuntu and its variants are pre-packaged with Mozilla's Firefox Web Browser. Although that is a…

Linux: Use Lubuntu 20.04, TightVNC Server, NoVNC, WebSockify to Create a Terminal Server Accessible via Any Browser!

Use Case:Imagine a virtual classroom with students using Chromebooks, iPads, and other types of computers,…

How to Enable GPUPDATE When Connected via OpenVPN Client

// Explanation: to prevent locking of processes, we set a proxy batch file (on_connect.bat) to…

Ubuntu 20.04: Setting Static IP Address on an Interface

Short Version # Configure networking sudo vim /etc/netplan/*.yaml ### Sample content ### network: version: 2…

Lubuntu 20.04 – Enable SSH

# Install sshd sudo apt install ssh -y sudo systemctl enable --now ssh # Configure…

PowerShell: Disable Forticlient Web Filtering

# disableForticlientWebfiltering.ps1 # Note: untested script - use as sample as this snippet is incomplete…

PowerShell: Resolving URL to Public IP

# URL can be with http, https, full paths, or just domain $url='https://google.com/domains' # This…

Linux: Manual File System Partitioning

Most Linux installation wizards offer the feature of automatic allocation of storage resources as discovered…