Month: February 2020

Linux: Disks & Memory Management

Step 1: Discovery of Disks on a System # Using List hardware to gather general…

Storage: Cohesity(tm) Basics

The intention of this posting is to critique a product known as Cohesity, a trademark…

Linux: Installing Portainer

Step 1: install Dockerhttps://blog.kimconnect.com/linux-installing-docker-community-edition-on-centos-8/ Step 2: install networkThere are two modes: bridge or 802.1q trunk…

Linux: Installing Docker Community Edition on Centos 8

# Switch into Sudo mode sudo su # Disable the built-in firewall as it will…

PowerShell: Purge OneDrive

# purgeOneDrive_v0.0.1.ps1function purgeOneDrive{ write-host "Halting OneDrive and explorer processes..." taskkill.exe /F /IM "OneDrive.exe" taskkill.exe /F…

PowerShell: Creating Scheduled Tasks on Remote Servers

This script is deprecated. Here is a better iteration. # scheduledTasksRemote_V0.0.2.ps1# Purpose: to add a…

PowerShell: Creating VSS Snapshots on Microsoft File Server Clusters

<# VSS-Snapshots-on-Microsoft-File-Server-Clusters_v0.0.1.ps1 # Author: KimConnect.com Functions: 1. Create snapshots of all volumes on a file…

PowerShell: Create New Hybrid On Prem Active Directory User with Office 365 Integration

# createNewHybridUser_v0.0.1.ps1# .Description: this script automates the creation of a user account in a hybrid…

PowerShell: Checking Computer Type

# Determine what type of Windows machine (client or server)switch ((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType){1 {'client'} #…

WGET Error on Windows and Its Quick Resolution

Error:PS C:\temp> Invoke-WebRequest -Uri $fileInvoke-WebRequest : The response content cannot be parsed because the Internet…

PowerShell: Adding Active Directory Module

Windows environments often are controlled by Active Directory; hence, it is useful to include this…

PowerShell: Obtain Domain Admin Credential

function obtainDomainAdminCredentials{ # Legacy domain binding function function isValidCred($u,$p){ # Get current domain using logged-on…

VSS Error: Snapshots were found, but they were outside of your allowed context

Error: PS C:\Windows\system32> vssadmin delete shadows /for=c: /allvssadmin 1.1 - Volume Shadow Copy Service administrative…

PowerShell: Automating Microsoft Failover Cluster Maintenance – FileServer, SQL AlwaysOn, Hyper-V Guest VMs, Disks Operations

##################################################################################################### # MsClusterMaintenance_v0.0.2.ps1 # Author: KimConnect.com # License: GPLv3 # Description: this program automates the…

PowerShell: Set Application CPU Affinity on Remote and Local Computers

# setProcessNameToCpuNumber.ps1$computerName =$env:computername$processname="Chrome";function getProcessors{ param( $computerName=$env:computername ) [int]$processors = 0; $cpuObject = Get-WmiObject -computername $computerName…

PowerShell: File Copy Script using EmCopy & VSS (Legacy)

The script below is for informational purposes. Here is a better version <#.Description FileCopyScript_v1.1.8.ps1 Note: this…

PowerShell: Add Windows TrustedHosts Remotely

<# AddTrustedHostsRemote.ps1Solves this problem:enter-pssession : Connecting to remote server REMOTESHERVER failed with the following error…

PowerShell: Optimize RAM on Remote Computers

# simultaneousExec_v0.01.ps1# Requirement: must run as Administrator$computerNames="SHERER1","SHERER2"function installEmptyStandbyList{ $emptyStandbyListAvailable=(Get-Command EmptyStandbyList.exe -ErrorAction SilentlyContinue); if(!($emptyStandbyListAvailable)){ # Set…

PowerShell: Function to Execute Function Remotely

Function this function that - this quick snippet is to invoke those func things remotely...…

PowerShell: Synchronize Directories with File Signature Comparisons

<# fileCompare_v0.01.ps1- Requires that the source and destination paths are hosted on Windows machines, not…