Skip to content

Instantly share code, notes, and snippets.

View techie2000's full-sized avatar

techie2000

  • Probably somewhere quiet
  • 05:21 (UTC +01:00)
View GitHub Profile
@techie2000
techie2000 / WSL_SetupScript.ps1
Created May 30, 2022 17:41 — forked from crutkas/WSL_SetupScript.ps1
WSL_SetupScript.ps1
# Things to note
# Single script, will survive reboot
# Script needs to be run under admin (will auto correct if not)
# Script needs internet access to download files
# Script assumes WinGet is installed
#
# Why aren't we using wsl --install -d Ubuntu
# Well, we want to WSL.exe install a bunch of stuff
# Ubuntu2004 install --root can't be done above so it requires user interaction
# if you don't need to install items on linux without setting root, this script becomes much simplier
@techie2000
techie2000 / RegEditSuite.psm1
Created May 27, 2022 15:30 — forked from cameronove/RegEditSuite.psm1
PowerShell module to manage Windows Registry.
<#
2010 Scripting Games PowerShell: Advanced Event 1
Author: Cameron Ove
Date: 4/30/2010
Copyright: NONE :-D
Synopsis of functions:
I really wanted to the ability to provide credentials when contacting remote workstations.
.Net seems limited in that regard. So I used WMI.
In paticular I used the root\default namespace and StdRegProv thus enabing the ability for credentials across the network.
@techie2000
techie2000 / KnownFolderPathPS5.ps1
Last active May 27, 2022 08:17 — forked from YoraiLevi/KnownFolderPathPS5.ps1
Change windows user folders with powershell
<#
.SYNOPSIS
Requires powershell 5 or later
Provides Get and Set functions for KnownFolders
.EXAMPLE
PS> Set-KnownFolderPath Desktop $ENV:USERPROFILE/Desktop
.EXAMPLE
PS> $Path=""
PS> Get-KnownFolderPath Desktop ([ref]$Path)
.LINK