Path:
C:\Users\{username}\AppData\Roaming\Microsoft\Windows\Hyper-V\Client\1.0
The configuration of each VM is stored in a vmconnect.rdp.{uuid} file which is an XML document containing various settings including
Moving from Windows 1809's OpenSSH to OpenSSH Portable
Remove-WindowsCapability -Online -Name "OpenSSH.Client~~~~0.0.1.0"
Remove-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0"
Run the following to set GIT_SSH required for git to use ssh-agent thus avoiding multiple prompts for password (which is less secure so take care)
[Environment]::SetEnvironmentVariable("GIT_SSH", "$((Get-Command ssh).Source)", [System.EnvironmentVariableTarget]::User)
run the following to ensure automatic startup
Get-ChildItem cert:\LocalMachine\My
$rootCert = New-SelfSignedCertificate -Subject 'CN=TestRootCA,O=TestRootCA,OU=TestRootCA' -KeyExportPolicy Exportable -KeyUsage CertSign,CRLSign,DigitalSignature -KeyLength 2048 -KeyUsageProperty All -KeyAlgorithm 'RSA' -HashAlgorithm 'SHA256' -Provider 'Microsoft Enhanced RSA and AES Cryptographic Provider'
$CertPassword = ConvertTo-SecureString -String $Password -Force -AsPlainText
Export-PfxCertificate -cert cert:\LocalMachine\My\$Thumbprint -FilePath c:\test.pfx -Password $CertPassword
Export-Certificate -Cert Cert:\LocalMachine\My\$Thumprint -FilePath C:\testcert.cer
template <typename T, typename... Args, std::enable_if_t<std::is_invocable_v<T&&, Args&&...>, int> = 0>
auto invoke(F&&, Args&&...);
git config --global init.defaultBranch main
git config --global alias.lg "log --first-parent --graph --pretty=format:'%C(yellow)%h%Creset -%C(auto)%d%Creset %s %C(cyan)(%cr) %Cresetby %C(bold blue)%aN%Creset' --abbrev-commit --date=relative" (edited)