(c) 2024, Tobias Düthorn
This repo is my digital brain extension, the purpose is to collect and share some common powershell scripts and lines in order to make my life as a sysadmin easier.
Caution
Please do not run these commands without checking the files first
Trusting random strangers of the internet is the worst idea you can do!
You have been warned.
$installer = Join-Path $env:TEMP "installer.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/kantholy/psmgmt/refs/heads/master/apps/7zip.ps1 -OutFile $installer
. $installer$installer = Join-Path $env:TEMP "installer.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/kantholy/psmgmt/refs/heads/master/apps/firefox.ps1 -OutFile $installer
. $installer# official Microsoft OneLine installer:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
# custom:
$installer = Join-Path $env:TEMP "installer.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/kantholy/psmgmt/refs/heads/master/apps/powershell.ps1 -OutFile $installer
. $installerNote
available flags:
-updateonlyonly updates app if installed already-autoupdate:$false(sometimes) prevents the installation auto update logic