Month: May 2020

Linux: How to Set Startup Script

In previous Linux versions, startup scripts can simply be enabled by linking a script into…

CentOS 8: How to Only Apply Security Updates

[cuilo@test-box ~]# sudo yum --security update CentOS-8 - AppStream 12 kB/s | 4.3 kB 00:00…

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,…

Linux: How to Use Tar and Gunzip

Tar is an archival system. It helps bundling many directories and files into a single…

Linux: How to Migrate Users to a New Host

Overview: Linux systems are mostly compatible with one another, even when their kernel versions are…

Linux: How to Install ProFTPd on CentOS 8 as an SFTP Server

Introduction: While this article focuses on the installation and configuration aspects of SFTP via the…

BASH: Basic SED Training

Do you know Sed? If you ask 'who is he', then this little article if…

Hyper-V: Clone Linux Guest VM

There are two methods of cloning an existing guest VM: Templating and Copying. Templating has…

Unix / Linux File Permissions Cheat Sheet

General Permissions Overview: Permissions (base) 1 – execute2 – write4 – read Permissions (octal) 3…

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 }…