Assorted Powershell scripts for WSL backup, disabling fonts, wake on lan, managing services.
- backup-wsl
- crlf
- services
- win-fonts
- wol
- docker-tidy
Backup wsl directory to your windows home directory using robocopy. Includes Windows Scheduler install script. Full docs found here
Usage: pwsh backup-wsl.ps1
functions for converting CRLF to LF , e.g. dos2unix, unix2dos
Install: Import-Module -force .\scripts\crlf
Available on PSGallery
Install-Module -Name win-fonts -RequiredVersion 0.0.4
or install from repo
Import-Module .\scripts\win-fonts
Module to list services with additional detail.
Install : Import-Module .\scripts\services
Usage:
# list running services that are not published by Microsoft Corporation
> Get-ServiceFileInfo | where-object {$_.Status -eq "Running"} `
|where-object {$_.CompanyName -ne "Microsoft Corporation"}
Name : AMD Crash Defender Service
Status : Running
BinaryPath : C:\WINDOWS\System32\DriverStore\FileRepository\amdfendr.inf_amd64_987f8cede005f427\amdfendrsr.exe
ProductName : AMD Crash Defender Service
FileDescription : AMD Crash Defender Service
CompanyName : Advanced Micro Devices, Inc.
credit: stack-exchange
install: Import-Module .\scripts\wol
Usage:
> Invoke-WakeOnLan -verbose ff:ff:ff:ff:ff:ff
VERBOSE: sent magic packet to ff:ff:ff:ff:ff:ff...
see (/LICENSE.md)