brettinternet / windows

My dotfiles for windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows

Setup

git submodule init

PowerShell

Use Windows Terminal

See also PowerShell notes

Modules

  1. Install the latest PowerShellGet with Install-Module PowershellGet -Force
  2. Install posh-git with PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force (this is preferred over installing through Chocolatey since choco puts it in a strange location and doesn't add it to the $PSModulePath)

Profile

  • Copy custom profile - Copy Microsoft.PowerShell_profile.ps1 to ~/Documents/PowerShell/ (or ~/Documents/WindowsPowerShell/ for PowerShell < v6) - A mere shortcut or mklink doesn't appear to work for Windows Terminal to load the $PROFILE

Scripts

HttpGetCmds.ahk runs a local REST server which runs functions from GET requests. I use this to run simple commands in the background from the Stream Deck.

Add shortcuts to scripts to the startup folder - Run (Windows + r) command shell:startup.

Apps

Ansible

Configure winrm

iex(iwr https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1).Content

Chocolatey setup

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Install package collections

Install packages:

choco install -y packages/[name].config

Windows Store versions may need to be uninstalled first. See packages.

Update

Update chocolatey packages with cup all -y or chocolatey update all -y. You may also consider enabling an option to ignore confirmation prompts.

Windows Installation

Use Shift + F10 for command prompt.

To setup Windows 11 without signing into Microsoft, enter command before signing into a network:

oobe\bypassnro

Open settings window:

start ms-settings:

Settings

Time

Configure Windows to use UTC:

reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_QWORD /f

About

My dotfiles for windows


Languages

Language:PowerShell 50.1%Language:AutoHotkey 46.7%Language:Batchfile 3.2%