Skip to content

Instantly share code, notes, and snippets.

@bitroniq
bitroniq / Converting-qcow2-to-vmdk-and-vhdx.md
Last active September 9, 2024 21:01
Converting images with qemu-img convert

VM images

vGateway images extensions

  • .qcow2 - KVM type Virtual Machines
  • .vmdk - VMware and VirtualBox and ESXi
  • .vdi - VirtualBox
  • .vhdx - Microsoft Hyper-V
  • .vhd - Azure requires fixed size
@ryanspletzer
ryanspletzer / Install-PowerShellService.ps1
Created July 26, 2019 20:28 — forked from fireflycons/Install-PowerShellService.ps1
Script to install a PowerShell script as a Windows Service using NSSM
<#
.SYNOPSIS
Installs PowerShell scripts as Windows Services.
.DESCRIPTION
Installs or removes PowerShell script services.
When installing, any additional command line arguments besides the mandatory ones are supplied as arguments to the script you are installing, and credentials for the service will be prompted for.
The service will be installed for automatic start, however the initial state is 'Stopped'
This tool will additionally pass the switch -Service to the target script which it should implement to know it is running as a service.