by hegars | Apr 12, 2020 | Windows
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
by hegars | Sep 4, 2019 | Debian, Install, Linux, Powershell, Windows
https://aka.ms/pscore6 https://aka.ms/pscore6-docs # Install system components sudo apt-get update sudo apt-get install curl gnupg apt-transport-https # Import the public repository GPG keys curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add...
by hegars | Jul 18, 2018 | Install, Windows
Enable it in Windows Options. Setting Bash as the default shell New-ItemProperty -Path “HKLM:\SOFTWARE\OpenSSH” -Name DefaultShell -Value “C:\Windows\System32\bash.exe” -PropertyType String -Force...
by hegars | Jun 20, 2018 | Powershell, Windows
Find a process by its name and and kill it Get-Process VLC | Stop-Process
by hegars | Jun 6, 2018 | Linux, Security, Windows
Importing a SSH key to the PIV smartcard. https://developers.yubico.com/PIV/Guides/SSH_with_PIV_and_PKCS11.html PS C:\Program Files (x86)\Yubico\YubiKey PIV Manager> .\yubico-piv-tool.exe -a import-key -s 9a -i hegars.key.pem -k Enter management key: Successfully...
by hegars | Dec 19, 2017 | Network, Powershell, Windows
Running a VPN server via RADIUS that can not send framed routes so had to manually setup split tunnels, so in windows 10 Powershell ROUTE add Set-VpnConnection -ConnectionName "vpn.host.net" -SplitTunneling 1 Add-VpnConnectionRoute -ConnectionName...