Send a Notification to Microsoft Teams via PowerShell

If you're not interested in all the words below, you can jump straight to the script here - https://github.com/mikeconjoice/Scripts Having recently moved internally, to Microsoft Teams from Slack, we needed to adapt our scripts and monitoring solutions to send our alerts to our new endpoint. I've created the following small PowerShell function to do all the payload compliation in the background to reduce the work required [Read More]

Upgrade SQL Express to SQL Standard

If you'd like to upgrade a SQL Express instance to a SQL Standard instance via an in place upgrade, it's nice and easy to do through the inbuilt wizard within the SQL Setup GUI. Select Edition Upgrade from the Maintenance menu Click Next Enter the SQL product key Accept the license terms Select the required instance (Usually MSSQLSERVER) Click Next Click Upgrade Upgrade Complete! Run the following query to confirm [Read More]

Rename Windows Server Domain Controllers

To rename a DC with the name from SERVER-DC01 in the domain.local domain to SERVER-DC02 follow the next steps: Open Command Prompt as an Administrator and type: NETDOM computername SERVER-DC01.domain.local /add:SERVER-DC02.domain.local Ensure the computer account updates and DNS registrations are completed, then type: NETDOM computername SERVER-DC01.domain.local /makeprimary:SERVER-DC02.domain.local Restart the computer. From the command prompt, type: NETDOM computername SERVER-DC02.domain. [Read More]

Hyper-V Storage Migration Failed

Whilst trying to migrate the storage location of a 2012 Hyper-V VM, you may encounter the following error: Storage Migration “Operation not allowed for VM because Hyper-V State is yet to be initialized from Virtual Machine Configuration” (0x80070015) To resolve the issue, simply restart the VM Management Service on the Hyper-V host by running the following PowerShell command: Restart-Service VMMS Then retry the migration and the task should complete successfully. [Read More]