Skip to content

Instantly share code, notes, and snippets.

View TylerLeonhardt's full-sized avatar

Tyler James Leonhardt TylerLeonhardt

View GitHub Profile
#region UX config
Import-Module posh-git
if (Get-Module PSReadLine) {
Import-Module oh-my-posh
$ThemeSettings.MyThemesLocation = "~/.config/powershell/oh-my-posh/Themes"
if (Get-Theme | Where-Object Name -eq Sorin-NL) {
Set-Theme Sorin-NL
@SteveL-MSFT
SteveL-MSFT / demo_os_agnostic.ps1
Last active February 23, 2019 17:59
Demos of writing OS agnostic PowerShell Core scripts
# PowerShell remoting over SSH
## Configuring Windows
### Install SSHD as Feature on Demand
### Modify sshd_config for powershell subsystem
## SSH remoting
ssh –l user@domain computer