Skip to content

Instantly share code, notes, and snippets.

View carfesh's full-sized avatar

Torsten Enderling carfesh

  • Düsseldorf, Germany
View GitHub Profile
@ghostinthewires
ghostinthewires / boxstarter.ps1
Last active December 13, 2023 17:22
Boxstarter Commands for a new Windows machine.
# Description: Boxstarter Script
# Author: https://twitter.com/GhostInTheWire5
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# NOTE the "." above is required.
#
# Run this boxstarter by calling the following from **elevated** powershell:
# example: Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/ghostinthewires/033276015ba9d58d1f162e7fd47cdbd3/raw/boxstarter.ps1 -DisableReboots
# Learn more: http://boxstarter.org/Learn/WebLauncher
@janegilring
janegilring / Lability.ps1
Created July 19, 2017 18:57
Example for getting started with Lability which should work on any Windows 10 computer capable of running Hyper-V
# The easiest way to install Lability is to leverage PowerShellGet
Find-Module -Name Lability |
Install-Module
# One advantage of doing so is that Update-Module makes it very convenient to update to the latest version at a later point in time
Update-Module -Name Lability
# Explore available commands
Get-Command -Module Lability
@jdforsythe
jdforsythe / connect.ps1
Last active February 19, 2024 11:05
Remote Desktop Auto Login Powershell Script
cmdkey /list | ForEach-Object{if($_ -like "*target=TERMSRV/*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}
echo "Connecting to 192.168.1.100"
$Server="192.168.1.100"
$User="Administrator"
$Password="AdminPassword"
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server