Month: September 2020

PowerShell: Get Spectre Meltdown Patching Versions of Hyper-V Hosts

function getHyperVHostsInForest{ function includeRSAT{ $ErrorActionPreference='stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #$rsatWindows7x32='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x86-RefreshPkg.msu' $rsatWindows7x64='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x64-RefreshPkg.msu' $rsatWindows81='https://download.microsoft.com/download/1/8/E/18EA4843-C596-4542-9236-DE46F780806E/Windows8.1-KB2693643-x64.msu' $rsat1709 = "https://download.microsoft.com/download/1/D/8/1D8B5022-5477-4B9A-8104-6A71FF9D98AB/WindowsTH-RSAT_WS_1709-x64.msu" $rsat1803…

Ubuntu Linux: Unable to Write to a Mounted Media

Issue: Unable to create an object in a certain mounted media directory Resolution: Discover mounted…

Hyper-V Set CompatibilityForMigrationEnabled

$vmName='TESTVM' function enableCpuCompatibility($vmName){ $compatibilityForMigration=(Get-VMProcessor $vmName).CompatibilityForMigrationEnabled if(!$compatibilityForMigration){ $vmIsRunning=(get-vm $vmname).State -eq 'Running' if($vmIsRunning){stop-vm $vmName} Set-VMProcessor$vmName -CompatibilityForMigrationEnabled 1…

Hyper-V Live Migration Error 0x8007003B

Symptom: Live migration of 'Virtual Machine TESTVM' failed.Virtual machine migration operation for 'TESTVM' failed at…

PowerShell: Set Virtual Machine Default Paths on Hyper-V Host of a Cluster

$newVirtualMachinePath='D:\VirtualMachines' $newVirtualHardDiskPath='D:\VirtualMachines' function getHyperVHostsInForest{ function includeRSAT{ $ErrorActionPreference='stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #$rsatWindows7x32='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x86-RefreshPkg.msu' $rsatWindows7x64='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x64-RefreshPkg.msu' $rsatWindows81='https://download.microsoft.com/download/1/8/E/18EA4843-C596-4542-9236-DE46F780806E/Windows8.1-KB2693643-x64.msu' $rsat1709 =…

How To Change Default Backup Directory of Microsoft SQL Server

Option 1: Use the GUI Run Ssms.exe > login as sa > Right-click SQL Server…

PowerShell: Restore SQL Database from Full and/or Differential Backups

$databaseName='BALOO_MSCRM' $newDatabaseName='BALOO_MSCRM' $dbData='mscrm' # set this value to $null for autogen defaults $dbLog='mscrm_log' # set…

Microsoft SQL Cloning Database to a Different DB Name

# User defined variables $sourceSqlServer='DEV-SQL01' $sourceDatabaseName='TEST_MSCRM' $sourceSaCredential=$(get-credential) $destinationSqlServer='DEV-SQL01' $destinationDatabaseName='Test_MSCRM' $destinationSaCredential=$(get-credential) function copyDatabase{ param( $sourceSqlServer, $sourceDatabaseName,…

Microsoft Dynamics Audit History Data Missing After Org Migration

Issue: We have recently moved some Orgs from CRM version 8.x to 9.x, and audit…

Domain Controller Vulnerability Scan for ZeroLogon VCE-2000-1472

function vce2020-1472{ # Source: # Original script has been modified to fix a couple of…

Windows 10 Missing Icons Problem

This sometimes happen when a certain app takes over icons cache in Windows, such as…

Ubuntu/Lubuntu 20.04 GRUB_TIME=0 Defaults to 10 Seconds Instead of Zero

# GRUB configuration that still resulted in a count-down of 14 seconds GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=0…

Virtual Machine Queue: Assigning Processors to Network Interfaces

Microsoft Hyper-V Virtual Machine Queuing is useful to maximize high-bandwidth network cards. However, configuring this…

How to Use Windows Built-in Packet Tracer

Update: although this is a fun exercise to use Microsoft tools to analyze traffic, it…

Microsoft Dynamics 365 Error with Send-As

Symptoms: Recurring error in Event Log #61346 - An error occurred while checking for outgoing…

RDP Connection Error: CredSSP encryption oracle remediation

The Symptom: [Window Title]Remote Desktop Connection[Content]An authentication error has occurred.The function requested is not supportedRemote…

Filezilla SFTP Connection ‘FATAL ERROR: Network error: Software caused connection abort’

Symptom: fzSftp started, protocol_version=9FATAL_ERROR: Network error: Software caused connection abortCould Not connect to server Path…

How to Use the ‘Advanced Find’ Feature in Dynamics 365

Step 1: Login and click on Le Button Access your CRM portal with a valid…

How to Use XrmToolBox for Microsoft Dynamics 365

The following is an illustration of the usage of this nice and free utility to…