Doing automation script on Windows using PowerShell.
Note
Before executing the scripts you must change the execution policy on running scripts on windows.
-
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUserAllow it to run scripts only for current user. -
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope ProcessAllow it to run scripts only for current session.
- Change output device from speaker to headphones or vice versa.
- Change the output device using the device ID.
- Uses the
AudioDeviceCmdletsPowerShell module.
- Install and configure common software tools used for local setup.
- Can auto-install supported apps via
winget. - Can activate Windows and Office licenses with the
-activationoption. - Helps download and extract installers from Google Drive with
gdownand WinRAR or 7-Zip.
- Download the latest OBS Background Removal installer from GitHub.
- Removes the previous installer before downloading a new one.
- Runs the installer automatically after download.
- Private PowerShell profile file for local folder aliases and custom commands.
- Stores machine-specific paths that should not be committed to Git.
- Dot-sourced from the main profile to expose custom shortcuts like
codefolder,docs, andobsidian.
- Example template for creating your own
PrivateFolderAlias.ps1. - Shows how to define custom aliases and path shortcuts for a personal environment.
- Remove the UTF-8 BOM from
LSP.ps1if it was added by an editor. - Useful for keeping scripts consistent across systems and editors.
- Reset network-related TCP/IP and Winsock settings.
- Runs common
netshreset commands, IP release/renew, and DNS refresh.
- Toggle a Windows service on or off and optionally launch or close an application.
- Useful for service-based tools like VPN clients or productivity apps.
- Toggle Cloudflare WARP connectivity by starting or stopping the service and app.
- Uses
warp-clito disconnect or reconnect the VPN.
- Start or stop required VMware services.
- Auto-launch predefined VMware virtual machines such as Fedora, Arch, Kali, or Windows.
- Can skip service toggling while only launching a VM.
- Code for the classic Matrix-style terminal effect.
- A simple retro script created a long time ago.
- Reset Windows Update and related network services.
- Useful when Windows Update or networking gets stuck.
- Simple script for launching an app or toggling a startup-related workflow.
- Intended for quick app launch automation.
- Start a local file-sharing HTTP server and expose it via a Cloudflare tunnel.
- Uses
simple-http-server.exeandcloudflared.exeto share a folder over the internet.
- Update ScreenCopy (scrcpy) to the latest version.
- Uses GitHub's API to fetch the latest release tag and downloads the matching package.
- Monitor network upload and download speed in real time.
- Useful for checking network performance while transferring files.
- Uninstall default Windows applications.
- Can use
wingetorGet-AppxPackagebased methods. - Use this for
Get-AppxPackagemethod
- Custom PowerShell profile configuration.
- Loads personal aliases and helper functions.
- Expects a
PrivateFolderAlias.ps1file in the same directory as$PROFILE.
- Contains AutoHotkey scripts for desktop automation.
- Scripts are designed to work alongside
DesktopShortcut/.
- Contains desktop shortcut files for launching tools with keyboard shortcuts.
- Intended to improve workflow and quick access to apps.
- Update outdated PowerShell modules.
- Update Windows via the
PSWindowsUpdatemodule. - Update many installed apps with
wingetandchoco. - Scan for corrupted system files and repair them when possible.
- Clean unused files and folders to free up space.
- Same idea as
SystemUpgrade.ps1, but with a simplified GUI and a focused "upgrade all" workflow.
- The older version of the system upgrade script.
- Kept for reference and should not be used as the main script.
- XAML layout used by
SystemUpgrade-GUI.ps1.
- Contains local configuration exports and settings files.
- Includes Windows Terminal and
wingetconfiguration examples.
- Contains simple HTML pages for local quick-access or media-related workflows.
- Contains
yt-dlphelper scripts and presets. - Used for easier downloads and media automation with
yt-dlp. - Use
ytdlpscript.ps1, for some reasonytdlp-made-easy.ps1does not work and is way to complicated
- Quick reference for converting GB and MB values.
- Helpful when working with file sizes or download estimates.
- Launch
scrcpywithout showing a console window. - Used with custom options for screen mirroring and control.
- Repository overview and quick reference for the scripts and folders in this collection.