Day: May 26, 2020

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