Blog

Linux: Manual File System Partitioning

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

How to Add Windows Administrative Templates to Domain Group Policies

Three Quick Steps to Adding ADMX Administrative templates are the blue prints of Windows machines.…

PowerShell: Get Windows OS Name

function getOsBuild($computername=$env:computername){ $build="" $pingable=test-connection $computername -Count 1 -Quiet if($pingable){ $psinfoIsAvailable=get-command psinfo -ea SilentlyContinue # Requires…

PowerShell: Comparing Software Versions

This is a reusable function to enable quick comparisons between two strings representing version control…

PowerShell: Legacy Methods to Save Credentials

PowerShell version 7 or later may already have facilities to store and retrieve credentials without…

PowerShell: Function to Add/Remove Local Host Record

Searching through my 'magic bag of tricks,' there appears to be this little snippet that…

PowerShell: Function to Confirm Certain Contents

It's always a good idea to receive user confirmations prior on proceeding to making important…

PowerShell: Detecting Windows Antivirus

One of the initial tasks of a Windows user is to determine whether a computer…

Networking: Upgrading Legacy Ubiquiti Devices

Step 1: obtain the bin URL from https://www.ui.com/download/unifi/unifi-ap/uaplr Step 2: perform the upgrade rambo@kimlinux:/home/rambo# ssh…

Problem Solving Exercise: Auto Manufacturing Case

Sample Answer 1. Produce a problem statement:We are investigating the root cause of production delays…

PowerShell: File Server Cluster Migration Scripts

<# File-Server-Migration-Intra-Domain.ps1 Purposes: 1. Create Volumes with Labels 2. Create Virtual Clustered File Servers 3.…

PowerShell: Quick EMCopy

# Short Version $arr=@(); $arr+=[PSCustomObject]@{From='D:\Someshare';To='\\NEWSERVER\Someshare'} $arr+=[PSCustomObject]@{From='D:\Test';To='\\NEWSERVER\Test'} # Normal copying # $arr|%{emcopy $_.From $_.To /s /de…

PowerShell: Copying File Share Permissions from Source to Destination

# Copy-SMB-Share-Permissions.ps1 # Set some SMB Share variables $sourceSmbPath="\\FILESERVER002\Home" $destinationSmbPath="\\FILESERVER002-n\Home" $dateStamp = Get-Date -Format "yyyy-MM-dd-hhmmss"…

PowerShell: Expand Volume of Virtual FileServer Role

Option 1: Expanding disk of a Virtual Machine in Hyper-V # ExpandVolumeVirtualFileServerRole.ps1 # Update these…

PowerShell: ADFS Backup and Restore

# AD FS Backup and Restore # Reference documentation: https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/operations/ad-fs-rapid-restore-tool # Set Variables $filePassword="password" $adfsToolDownload="https://download.microsoft.com/download/6/8/A/68AF3CD3-1337-4389-967C-A6751182F286/ADFSRapidRecreationTool.msi"…

PowerShell: Moving Guest VMs in Hyper-V in Conjunction with Microsoft Failover Cluster

This code is outdated. Refactor before reuse.. ############################################################################################################### # HyperV-MoveVM.ps1 # Assumption: Hyper-V has been…

PowerShell: Create Mailbox Report on Office 365

# connect-to-exchange-online.ps1 # How to connect to Office 365 Cloud Services using PowerShell # Office…

PowerShell: Get Active Directory Domain Controller Replication Status

$domaincontroller=(Get-ADForest |Select-Object -ExpandProperty RootDomain |Get-ADDomain |Select-Object -Property PDCEmulator).PDCEmulator; ## Define Objects ## $report = New-Object…

PowerShell: Compressing Files and Folders

# Set variables $compressTarget="C:\Temp\Win2016_Std_Template.ova" $parentFolder=split-path $compressTarget -Parent $grandParentFolder=split-path $parentFolder -Parent $compressedFile=$grandParentFolder+"\compressed.zip" # PowerShell version 5…