Hyper-V: Merge snapshot vhdx

If you because of a restore suddenly get stuck with one “disk0.vhdx” and one “disk0-snapshot.vhdx” virtual disk, and you are not able to merge them using Hyper-V Manager?

You can merge them with PowerShell

Merge-VHD -Path *PathToSnapshotFile*\disk0-snapshot.vhd -DestinationPath *PathToDestinationFile*\disk0.vhd

ex:

Merge-VHD -Path c:\VM\VM01\Virtual Hard Disks\disk0-snapshot.vhd -DestinationPath c:\VM\VM01\Virtual Hard Disks\disk0.vhd

Windows: Create a bootable USB flash drive

  1. Insert a USB flash drive into a running computer.
  2. Open a Command Prompt window as an administrator.
  3. Type diskpart.
  4. In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk, and then click ENTER. The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive.
  5. At the command prompt, type select disk <X>, where X is the drive number or drive letter of the USB flash drive, and then click ENTER.
  6. Type clean, and the click ENTER. This command deletes all data from the USB flash drive.
  7. To create a new primary partition on the USB flash drive, type create part pri, and then click ENTER.
  8. To select the partition that you just created, type select part 1, and then click ENTER.
  9. To format the partition, type format fs=ntfs quick, and then click ENTER.
    ImportantImportant
    If your server platform supports Unified Extensible Firmware Interface (UEFI), you should format the USB flash drive as FAT32 rather than as NTFS. To format the partition as FAT32, type format fs=fat32 quick, and then click ENTER.
  10. Type active, and then click ENTER.
  11. Type exit, and then click ENTER.
  12. When you finish preparing your custom image, save it to the root of the USB flash drive.

JAVA: Disable Auto Update

Create the following Registry Item

Action: Update
Hive: HKEY_LOCAL_MACHINE
Key Path: SOFTWARE\JavaSoft\Java Update\Policy
Value name: EnableJavaUpdate
Value type: REG_DWORD
Value data: 00000000

HP: Error codes

CAPS LOCK/NUM LOCK LED
LEDs blink 1 time – CPU not functional
LEDs blink 2 times – BIOS corruption failure
LEDs blink 3 times – Module error not functional
LEDs blink 4 times – Graphics controller not functional
LEDs blink 5 times – General system board failure
LEDs blink 6 times – BIOS authentication failure

Source : Blink codes on this page

SCCM: Computer collection based on Computer Name

This will list all computers where the name starts with IT or HQ

select
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System where
SMS_R_System.Name like “IT%” or
SMS_R_System.Name like “HQ%”